Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WGSL] Concretizing atomic types shouldn't assert
https://bugs.webkit.org/show_bug.cgi?id=263402 rdar://117223889 Reviewed by Dan Glastonbury. When concretization was originally implemented it was only used when initializing variables, and since variables can't initialized with atomic values, it just asserted that we never tried to concretize an atomic type. However, we also need to concretize array elements when accessing an array with a non-constant index. That was implemented in 269416@main, and now we can crash if indexing into array of atomics. The fix is simple, concretizing an atomic type should just return the same type. * Source/WebGPU/WGSL/Constraints.cpp: (WGSL::concretize): * Source/WebGPU/WGSL/tests/valid/concretization.wgsl: Canonical link: https://commits.webkit.org/269579@main
- Loading branch information