From 3855eee3de3a6c6aa7d180cb60e021e282c2a8ae Mon Sep 17 00:00:00 2001 From: Shrek Shao Date: Thu, 14 Nov 2024 11:00:22 -0800 Subject: [PATCH] [Compat] Skip depthBiasClamp !== 0 cases --- .../validation/render_pipeline/depth_stencil_state.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/webgpu/api/validation/render_pipeline/depth_stencil_state.spec.ts b/src/webgpu/api/validation/render_pipeline/depth_stencil_state.spec.ts index 165e6f9c405b..73467657eedc 100644 --- a/src/webgpu/api/validation/render_pipeline/depth_stencil_state.spec.ts +++ b/src/webgpu/api/validation/render_pipeline/depth_stencil_state.spec.ts @@ -232,6 +232,10 @@ g.test('depth_bias') .fn(t => { const { isAsync, topology, depthBias, depthBiasSlopeScale, depthBiasClamp } = t.params; + if (t.isCompatibility && !!depthBiasClamp) { + t.skip('depthBiasClamp must be 0 on compatibility mode'); + } + const isTriangleTopology = topology === 'triangle-list' || topology === 'triangle-strip'; const hasDepthBias = !!depthBias || !!depthBiasSlopeScale || !!depthBiasClamp; const shouldSucceed = !hasDepthBias || isTriangleTopology;