forked from WebKit/WebKit
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WebGPU] validation,render_pipeline,depth_stencil_state:* is failing
https://bugs.webkit.org/show_bug.cgi?id=266668 <radar://119898641> Reviewed by Tadeu Zagallo. Add validation for the RenderPipeline. CTS test validation/render_pipeline/depth_stencil_state is now passing after this change. * LayoutTests/http/tests/webgpu/webgpu/api/validation/render_pipeline/depth_stencil_state-expected.txt: Add passing expectations. * LayoutTests/http/tests/webgpu/webgpu/api/validation/render_pipeline/depth_stencil_state.spec.js: Update to latest version of this test. * Source/WebCore/Modules/WebGPU/GPUDepthStencilState.h: (WebCore::GPUDepthStencilState::convertToBacking const): * Source/WebCore/Modules/WebGPU/GPUDepthStencilState.idl: depthCompare and depthWriteEnabled are now optional. * Source/WebCore/Modules/WebGPU/GPUInternalError.h: (WebCore::GPUInternalError::stack const): * Source/WebCore/Modules/WebGPU/GPUInternalError.idl: * Source/WebCore/Modules/WebGPU/GPUPipelineError.h: * Source/WebCore/Modules/WebGPU/GPUPipelineError.idl: * Source/WebCore/Modules/WebGPU/GPUValidationError.h: (WebCore::GPUValidationError::stack const): * Source/WebCore/Modules/WebGPU/GPUValidationError.idl: Workaround lack of stack property until gpuweb/cts#3222 is addressed as it causes too many false failures in the live version of the CTS. * Source/WebCore/Modules/WebGPU/Implementation/WebGPUDeviceImpl.cpp: (WebCore::WebGPU::convertToBacking): * Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUDepthStencilState.h: * Source/WebGPU/WGSL/Parser.cpp: (WGSL::Parser<Lexer>::parseAttribute): * Source/WebGPU/WGSL/WGSLShaderModule.h: (WGSL::ShaderModule::usesFragDepth const): (WGSL::ShaderModule::setUsesFragDepth): * Source/WebGPU/WebGPU/RenderPipeline.mm: (WebGPU::returnInvalidRenderPipeline): (WebGPU::name): (WebGPU::errorValidatingDepthStencilState): (WebGPU::Device::createRenderPipeline): * Source/WebGPU/WebGPU/Texture.h: * Source/WebGPU/WebGPU/Texture.mm: (WebGPU::Texture::isRenderableFormat): (WebGPU::Texture::supportsMultisampling): (WebGPU::Texture::supportsBlending): (WebGPU::Device::errorValidatingTextureCreation): (WebGPU::isRenderableFormat): Deleted. (WebGPU::supportsMultisampling): Deleted. * Source/WebGPU/WebGPU/WebGPU.h: * Source/WebKit/Shared/WebGPU/WebGPUDepthStencilState.h: * Source/WebKit/Shared/WebGPU/WebGPUDepthStencilState.serialization.in: Implement validation in render pipeline creation. Canonical link: https://commits.webkit.org/272562@main
- Loading branch information
1 parent
cab109e
commit b797eac
Showing
20 changed files
with
1,731 additions
and
275 deletions.
There are no files selected for viewing
1,215 changes: 1,214 additions & 1 deletion
1,215
.../http/tests/webgpu/webgpu/api/validation/render_pipeline/depth_stencil_state-expected.txt
Large diffs are not rendered by default.
Oops, something went wrong.
505 changes: 269 additions & 236 deletions
505
...Tests/http/tests/webgpu/webgpu/api/validation/render_pipeline/depth_stencil_state.spec.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.