-
Notifications
You must be signed in to change notification settings - Fork 1.7k
GPUBindGroupDescriptor::externalTextureMatches is implemented incorrectly #48376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
EWS run on previous version of this PR (hash 88f7452) |
88f7452 to
b7a170d
Compare
|
EWS run on previous version of this PR (hash b7a170d) |
Safer C++ Build #45187 (b7a170d)❌ Found 1 failing file with 1 issue. Please address these issues before landing. See WebKit Guidelines for Safer C++ Programming. |
b7a170d to
9f07cb1
Compare
|
EWS run on previous version of this PR (hash 9f07cb1) |
| WebGPU::BindGroup& backing() { return m_backing; } | ||
| const WebGPU::BindGroup& backing() const { return m_backing; } | ||
| bool updateExternalTextures(GPUExternalTexture&); | ||
| uint64_t autogeneratedPipelineLayout() const { return m_autogeneratedPipelineLayout; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a nit, but I find the name a bit confusing, since I'd expect this to return an actual layout object. If I understood correctly, isn't this a unique identifier for the pipeline?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yes, let me update that name
9f07cb1 to
32af205
Compare
|
EWS run on previous version of this PR (hash 32af205) |
|
|
||
| Ref<GPUBindGroupLayout> GPUComputePipeline::getBindGroupLayout(uint32_t index) | ||
| { | ||
| // "A new GPUBindGroupLayout wrapper is returned each time" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this comment a TODO/FIXME? Or documenting the spec?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documenting the spec
32af205 to
f34ad83
Compare
|
EWS run on current version of this PR (hash f34ad83) |
…ctly https://bugs.webkit.org/show_bug.cgi?id=296062 rdar://155971582 Reviewed by Tadeu Zagallo. Auto-generated layouts can not be used interchangably, rather they are fixed to a specific bind group layout and therefore bind group. Prevent different auto-generated layouts from being intermixed, even when their entries are otherwise identical. This would previously always fail validation layer and is currently preventing the drop down box on https://webgpu.github.io/webgpu-samples/?sample=videoUploading from functioning. * LayoutTests/fast/webgpu/regression/repro_296062-expected.txt: Added. * LayoutTests/fast/webgpu/regression/repro_296062.html: Added. Add regression test. * Source/WebCore/Modules/WebGPU/GPUBindGroup.cpp: (WebCore::GPUBindGroup::GPUBindGroup): * Source/WebCore/Modules/WebGPU/GPUBindGroup.h: (WebCore::GPUBindGroup::create): (WebCore::GPUBindGroup::autogeneratedPipelineLayout const): (WebCore::GPUBindGroup::GPUBindGroup): Deleted. * Source/WebCore/Modules/WebGPU/GPUBindGroupLayout.h: (WebCore::GPUBindGroupLayout::create): (WebCore::GPUBindGroupLayout::autogeneratedPipelineLayout const): (WebCore::GPUBindGroupLayout::GPUBindGroupLayout): * Source/WebCore/Modules/WebGPU/GPUComputePipeline.cpp: (WebCore::GPUComputePipeline::getBindGroupLayout): * Source/WebCore/Modules/WebGPU/GPUComputePipeline.h: (WebCore::GPUComputePipeline::create): (WebCore::GPUComputePipeline::GPUComputePipeline): * Source/WebCore/Modules/WebGPU/GPUDevice.cpp: * Source/WebCore/Modules/WebGPU/GPUPipelineDescriptorBase.h: (WebCore::nextUniqueAutogeneratedPipelineIdentifier): (WebCore::GPUPipelineDescriptorBase::uniqueAutogeneratedId const): * Source/WebCore/Modules/WebGPU/GPURenderPipeline.cpp: (WebCore::GPURenderPipeline::getBindGroupLayout): * Source/WebCore/Modules/WebGPU/GPURenderPipeline.h: (WebCore::GPURenderPipeline::create): (WebCore::GPURenderPipeline::GPURenderPipeline): Ensure auto-generated layouts don't allow mismatches. Canonical link: https://commits.webkit.org/297771@main
f34ad83 to
ed52872
Compare
|
Committed 297771@main (ed52872): https://commits.webkit.org/297771@main Reviewed commits have been landed. Closing PR #48376 and removing active labels. |
🧪 services
ed52872
f34ad83
🧪 win-tests🛠 playstation