Skip to content

Commit 49dd714

Browse files
authored
Compat: Fix storage texture read_write test (#3328)
* Compat: Fix storage texture read_write test The test used 256 invocations but compat only supports 128
1 parent 85bbfe1 commit 49dd714

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/webgpu/api/operation/storage_texture/read_write.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,9 @@ g.test('basic')
318318
.fn(t => {
319319
const { format, shaderStage, textureDimension, depthOrArrayLayers } = t.params;
320320

321-
const kWidth = 16;
321+
// In compatibility mode the lowest maxComputeInvocationsPerWorkgroup is 128 vs non-compat which is 256
322+
// So in non-compat we get 16 * 8 * 2, vs compat where we get 8 * 8 * 2
323+
const kWidth = t.isCompatibility ? 8 : 16;
322324
const height = textureDimension === '1d' ? 1 : 8;
323325
const textureSize = [kWidth, height, depthOrArrayLayers] as const;
324326
const storageTexture = t.device.createTexture({

0 commit comments

Comments
 (0)