Skip to content

Commit 7c0a48e

Browse files
authored
workgroup_size validation: support devices limited to 256 invocations (#4491)
On devices with maxComputeInvocationsPerWorkgroup=256, the webgpu:shader,validation,shader_io,workgroup_size:workgroup_size:attr="override_expr" test can fail when requesting a workgroup larger than 256. Adjust the override expression case to generate no more than 256 invocations.
1 parent 07253dd commit 7c0a48e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webgpu/shader/validation/shader_io/workgroup_size.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ const kWorkgroupSizeTests = {
162162
},
163163

164164
override_expr: {
165-
src: `override a = 5;
165+
src: `override a = 3;
166166
override b = 6;
167167
@workgroup_size(a, b, a + b)`,
168168
pass: true,

0 commit comments

Comments
 (0)