From c25f9a5cc38d97d95f26c4ef32a53ce015d0aad3 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Fri, 10 Nov 2023 15:54:53 +0900 Subject: [PATCH] Compat: fix in_pass tests. These tests test combinations of texture bindings that are not allowed in compat mode. Note: That these combination fail in compat is tested in the webgpu:compat,* tests --- .../resource_usages/texture/in_pass_encoder.spec.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/webgpu/api/validation/resource_usages/texture/in_pass_encoder.spec.ts b/src/webgpu/api/validation/resource_usages/texture/in_pass_encoder.spec.ts index d316f26c063d..6c8dafac594f 100644 --- a/src/webgpu/api/validation/resource_usages/texture/in_pass_encoder.spec.ts +++ b/src/webgpu/api/validation/resource_usages/texture/in_pass_encoder.spec.ts @@ -428,6 +428,11 @@ g.test('subresources_and_binding_types_combination_for_color') _resourceSuccess, } = t.params; + t.skipIf( + t.isCompatibility, + 'multiple views of the same texture in a single draw/dispatch are not supported in compat, nor are sub ranges of layers' + ); + const texture = t.createTexture({ arrayLayerCount: TOTAL_LAYERS, mipLevelCount: TOTAL_LEVELS, @@ -653,6 +658,8 @@ g.test('subresources_and_binding_types_combination_for_aspect') _usageSuccess, } = t.params; + t.skipIf(t.isCompatibility, 'sub ranges of layers are not supported in compat mode'); + const texture = t.createTexture({ arrayLayerCount: TOTAL_LAYERS, mipLevelCount: TOTAL_LEVELS,