From ec0b11613fcfec12bbcd6511e9cdac4db5e9a8cd Mon Sep 17 00:00:00 2001 From: ShrekShao <5031596+shrekshao@users.noreply.github.com> Date: Thu, 14 Nov 2024 11:39:47 -0800 Subject: [PATCH] [Compat] Skip depthBiasClamp !== 0 cases (#4043) --- .../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;