From 945aaf9cb5b0c7f836afe2321840fce592f97b97 Mon Sep 17 00:00:00 2001 From: Shrek Shao Date: Thu, 23 Jan 2025 16:05:48 -0800 Subject: [PATCH] Compat: fix float16(32)-renderable tests (compat) --- .../validation/encoding/cmds/copyTextureToTexture.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/webgpu/compat/api/validation/encoding/cmds/copyTextureToTexture.spec.ts b/src/webgpu/compat/api/validation/encoding/cmds/copyTextureToTexture.spec.ts index aac5aaa941d1..e930b5dc7cec 100644 --- a/src/webgpu/compat/api/validation/encoding/cmds/copyTextureToTexture.spec.ts +++ b/src/webgpu/compat/api/validation/encoding/cmds/copyTextureToTexture.spec.ts @@ -51,13 +51,16 @@ g.test('multisample') .desc(`Test that you can not call copyTextureToTexture with multisample textures in compat mode.`) .params(u => u - .beginSubcases() .combine('format', kAllTextureFormats) + .beginSubcases() .filter(({ format }) => { const info = kTextureFormatInfo[format]; return info.multisample && !info.feature; }) ) + .beforeAllSubcases(t => { + t.selectDeviceForRenderableColorFormatOrSkipTestCase(t.params.format); + }) .fn(t => { const { format } = t.params; const { blockWidth, blockHeight } = kTextureFormatInfo[format];