From 3942dc8fd4423277e8e478f10324f71d29abf9a0 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Wed, 6 Dec 2023 13:12:10 -0800 Subject: [PATCH] Comapt: Fix createTexture:'viewFormats' test for compat --- src/webgpu/api/validation/createTexture.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/webgpu/api/validation/createTexture.spec.ts b/src/webgpu/api/validation/createTexture.spec.ts index 265b40a6cdc7..1b2041682446 100644 --- a/src/webgpu/api/validation/createTexture.spec.ts +++ b/src/webgpu/api/validation/createTexture.spec.ts @@ -1096,7 +1096,9 @@ g.test('viewFormats') t.skipIfTextureFormatNotSupported(format, viewFormat); - const compatible = viewCompatible(format, viewFormat); + const compatible = t.isCompatibility + ? viewFormat === format + : viewCompatible(format, viewFormat); // Test the viewFormat in the list. t.expectValidationError(() => {