Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b7f96d97a9a51fb3a5263b422ecd01ea4f0a61d5
https://github.com/WebKit/WebKit/commit/b7f96d97a9a51fb3a5263b422ecd01ea4f0a61d5
Author: Tadeu Zagallo <[email protected]>
Date: 2026-03-10 (Tue, 10 Mar 2026)
Changed paths:
M
LayoutTests/http/tests/webgpu/webgpu/shader/execution/expression/call/builtin/workgroupUniformLoad-expected.txt
M
LayoutTests/http/tests/webgpu/webgpu/shader/validation/functions/restrictions-expected.txt
M
LayoutTests/http/tests/webgpu/webgpu/shader/validation/parse/diagnostic-expected.txt
M
LayoutTests/http/tests/webgpu/webgpu/shader/validation/uniformity/uniformity-expected.txt
M LayoutTests/platform/mac-wk2/TestExpectations
M Source/WebGPU/WGSL/AST/ASTFunction.h
M Source/WebGPU/WGSL/AST/ASTLoopStatement.h
M Source/WebGPU/WGSL/AST/ASTStatement.h
M Source/WebGPU/WGSL/AttributeValidator.cpp
M Source/WebGPU/WGSL/CMakeLists.txt
M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp
M Source/WebGPU/WGSL/TypeCheck.cpp
M Source/WebGPU/WGSL/TypeDeclarations.rb
A Source/WebGPU/WGSL/UniformityAnalysis.cpp
A Source/WebGPU/WGSL/UniformityAnalysis.h
M Source/WebGPU/WGSL/WGSL.cpp
M Source/WebGPU/WGSL/WGSLShaderModule.h
M Source/WebGPU/WebGPU.xcodeproj/project.pbxproj
Log Message:
-----------
[WGSL] webgpu:shader,validation,uniformity,uniformity:* is failing
https://bugs.webkit.org/show_bug.cgi?id=309199
rdar://171757884
Reviewed by Mike Wyrzykowski.
Introduce the UniformityAnalysis pass that verifies whether the shader satifies
the uniformity rules according to the spec[1]. The pass builds a control flow
graph and uses the algorithm outline in section 15.2.3.
[1]: https://www.w3.org/TR/WGSL/#uniformity
*
LayoutTests/http/tests/webgpu/webgpu/shader/validation/uniformity/uniformity-expected.txt:
* LayoutTests/platform/mac-wk2/TestExpectations:
* Source/WebGPU/WGSL/AST/ASTLoopStatement.h:
* Source/WebGPU/WGSL/AST/ASTStatement.h:
(WGSL::AST::Statement::behaviors const):
(WGSL::AST::Statement::setBehaviors):
* Source/WebGPU/WGSL/AttributeValidator.cpp:
(WGSL::AttributeValidator::visit):
* Source/WebGPU/WGSL/CMakeLists.txt:
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::analyze):
* Source/WebGPU/WGSL/TypeDeclarations.rb:
* Source/WebGPU/WGSL/UniformityAnalysis.cpp: Added.
(WGSL::uniformityAnalysis):
* Source/WebGPU/WGSL/UniformityAnalysis.h: Added.
* Source/WebGPU/WGSL/WGSL.cpp:
(WGSL::staticCheck):
* Source/WebGPU/WebGPU.xcodeproj/project.pbxproj:
Canonical link: https://commits.webkit.org/309007@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications