v3dv: fix depth clipping then Z scale is too small in V3D 7.x
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 14 Feb 2023 09:09:53 +0000 (10:09 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 13 Oct 2023 22:37:43 +0000 (22:37 +0000)
commit48383668a7c53f3edda9ab266a0ef00ca20fbf95
treee35da9dbcd43e2e5f1998e0fdc833e9540e41b1a
parent662d6e296e44a4be499a10b6046bc67dd98050a3
v3dv: fix depth clipping then Z scale is too small in V3D 7.x

When the Z scale is too small guardband clipping may not clip
correctly, so disable it, which is a new option in V3D 7.x.

This fixes this test in V3D 7.x without needing any workarounds:
dEQP-VK.draw.renderpass.inverted_depth_ranges.nodepthclamp_deltazero

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25450>
src/broadcom/vulkan/v3dvx_cmd_buffer.c