From 49dd714fbf0c9f2050f50a83cbfb99929e8e13b2 Mon Sep 17 00:00:00 2001 From: Greggman Date: Fri, 26 Jan 2024 06:58:23 +0900 Subject: [PATCH] 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 --- src/webgpu/api/operation/storage_texture/read_write.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/webgpu/api/operation/storage_texture/read_write.spec.ts b/src/webgpu/api/operation/storage_texture/read_write.spec.ts index b0a2256d9243..5daac5d6fe56 100644 --- a/src/webgpu/api/operation/storage_texture/read_write.spec.ts +++ b/src/webgpu/api/operation/storage_texture/read_write.spec.ts @@ -318,7 +318,9 @@ g.test('basic') .fn(t => { const { format, shaderStage, textureDimension, depthOrArrayLayers } = t.params; - const kWidth = 16; + // In compatibility mode the lowest maxComputeInvocationsPerWorkgroup is 128 vs non-compat which is 256 + // So in non-compat we get 16 * 8 * 2, vs compat where we get 8 * 8 * 2 + const kWidth = t.isCompatibility ? 8 : 16; const height = textureDimension === '1d' ? 1 : 8; const textureSize = [kWidth, height, depthOrArrayLayers] as const; const storageTexture = t.device.createTexture({