Skip to content

Commit

Permalink
Compat: Fix storage texture read_write test (#3328)
Browse files Browse the repository at this point in the history
* Compat: Fix storage texture read_write test

The test used 256 invocations but compat only supports 128
  • Loading branch information
greggman authored Jan 25, 2024
1 parent 85bbfe1 commit 49dd714
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/webgpu/api/operation/storage_texture/read_write.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 49dd714

Please sign in to comment.