Repository navigation
WGSL scoping bug hides a duplicate @binding, undersizing the argument buffer and forging a shader device pointer - #78752
Merged
webkit-commit-queue merged 1 commit intoOct 29, 2026
Conversation
webkit-opensource-integration
requested a review
from mwyrzykowski
as a code owner
October 29, 2026 01:17
Author
|
Integration performed the following cherry-picks: 7e32e6e for rdar://191050941. |
webkit-opensource-integration
requested review from
djg and
tadeuzagallo
as code owners
October 29, 2026 01:17
Collaborator
|
EWS run on previous version of this PR (hash 2dc081b) Details |
djg
force-pushed
the
integration/ci/7e32e6e1ffe3_7e32e6e1ffe3_main
branch
from
October 29, 2026 03:19
2dc081b to
85d2e1e
Compare
Collaborator
|
EWS run on current version of this PR (hash 85d2e1e) Details |
… buffer and forging a shader device pointer https://bugs.webkit.org/show_bug.cgi?id=323904 rdar://186926179 Reviewed by Gerald Squelart. Visit the declaration before introducing its name in both visitors, and turn the duplicate-binding ASSERT in determineUsedGlobals into a hard error so a future divergence between the validator and the rewriter cannot produce a shader whose argument buffer disagrees with its layout in a release build. Tests: sar3/fast/webgpu/regression/repro_186926179.html sar3/fast/webgpu/regression/shader-module-declaration-scope.html * LayoutTests/sar3/fast/webgpu/regression/repro_186926179-expected.txt: Added. * LayoutTests/sar3/fast/webgpu/regression/repro_186926179.html: Added. * LayoutTests/sar3/fast/webgpu/regression/shader-module-declaration-scope-expected.txt: Added. * LayoutTests/sar3/fast/webgpu/regression/shader-module-declaration-scope.html: Added. * Source/WebGPU/WGSL/GlobalSorting.cpp: (WGSL::GraphBuilder::visit): * Source/WebGPU/WGSL/GlobalVariableRewriter.cpp: (WGSL::RewriteGlobalVariables::determineUsedGlobals): * Source/WebGPU/WGSL/IOValidator.cpp: (WGSL::IOValidator::visit): * Tools/TestWebKitAPI/Tests/WGSL/TypeCheckingTests.mm: (TestWebKitAPI::expectStaticCheckErrorContaining): (TestWebKitAPI::TEST): Originally-landed-as: 316606.692@safari-7625-branch (7e32e6e). rdar://191050941 Canonical link: https://commits.webkit.org/325176@main
webkit-commit-queue
force-pushed
the
integration/ci/7e32e6e1ffe3_7e32e6e1ffe3_main
branch
from
October 29, 2026 21:37
85d2e1e to
9589788
Compare
Collaborator
|
Committed 325176@main (9589788): https://commits.webkit.org/325176@main Reviewed commits have been landed. Closing PR #78752 and removing active labels. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🧪 ios-wk2-wpt
9589788
85d2e1e