v3dv: work around viewport Z scale hardware bug
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 12 Mar 2020 08:36:24 +0000 (09:36 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:28 +0000 (21:21 +0000)
commita1337c027cd4c8afd2454286eee7e9a04850b485
treee2618794cbdd772bd14f173d369a4a15c2472ac4
parentdb629c0f4b0b1e09e1cf29e9eb5ca14c8cf9436c
v3dv: work around viewport Z scale hardware bug

It looks like when the Z scale is small enough the hardware clipper
won't work properly.

Fixes:
dEQP-VK.draw.inverted_depth_ranges.nodepthclamp_deltazero

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
src/broadcom/vulkan/v3dv_cmd_buffer.c