From e79e140e725da21fea32126b34176ee977d7e493 Mon Sep 17 00:00:00 2001 From: Gregg Tavares <github@greggman.com> Date: Tue, 9 Jan 2024 09:58:57 -0800 Subject: [PATCH] Compat: Skip tests with depth_bias clamp != 0 --- .../api/operation/rendering/depth_bias.spec.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/webgpu/api/operation/rendering/depth_bias.spec.ts b/src/webgpu/api/operation/rendering/depth_bias.spec.ts index 03caff3b25d9..17e80c5da94c 100644 --- a/src/webgpu/api/operation/rendering/depth_bias.spec.ts +++ b/src/webgpu/api/operation/rendering/depth_bias.spec.ts @@ -304,6 +304,12 @@ g.test('depth_bias') }, ] as const) ) + .beforeAllSubcases(t => { + t.skipIf( + t.isCompatibility && t.params.biasClamp !== 0, + 'non zero depthBiasClamp is not supported in compatibility mode' + ); + }) .fn(t => { t.runDepthBiasTest('depth32float', t.params); }); @@ -346,6 +352,12 @@ g.test('depth_bias_24bit_format') }, ] as const) ) + .beforeAllSubcases(t => { + t.skipIf( + t.isCompatibility && t.params.biasClamp !== 0, + 'non zero depthBiasClamp is not supported in compatibility mode' + ); + }) .fn(t => { const { format } = t.params; t.runDepthBiasTestFor24BitFormat(format, t.params);