From 478c2f65812e4136de1a8d8eb1d50ccc9ae7f4ae Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Wed, 28 Feb 2024 14:31:06 -0800 Subject: [PATCH] Compat: Texture Intra Invocation Coherence Handle maxComputeInvocationsPerWorkgroup being lower in compat. --- .../memory_model/texture_intra_invocation_coherence.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webgpu/shader/execution/memory_model/texture_intra_invocation_coherence.spec.ts b/src/webgpu/shader/execution/memory_model/texture_intra_invocation_coherence.spec.ts index c48d8f95e57c..0db0f8d8fbe6 100644 --- a/src/webgpu/shader/execution/memory_model/texture_intra_invocation_coherence.spec.ts +++ b/src/webgpu/shader/execution/memory_model/texture_intra_invocation_coherence.spec.ts @@ -147,7 +147,7 @@ g.test('texture_intra_invocation_coherence') t.skipIfLanguageFeatureNotSupported('readonly_and_readwrite_storage_textures'); const wgx = 16; - const wgy = 16; + const wgy = t.device.limits.maxComputeInvocationsPerWorkgroup / wgx; const num_wgs_x = 2; const num_wgs_y = 2; const invocations = wgx * wgy * num_wgs_x * num_wgs_y;