v3dv: implement workaround for GFXH-1461
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 24 Sep 2020 07:23:29 +0000 (09:23 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:33 +0000 (21:21 +0000)
commit1e81bb05aeb8bf070652b3c7406dfd1ac61a8c99
tree809728d332293aaac50cc3613d40cfc072364f97
parent6fb45a04ab333dfcde1e00bb1b2d35559c567cc4
v3dv: implement workaround for GFXH-1461

If a subpass clears one aspect of Depth/Stencil but loads the other
the clear might get lost. Fix this by emitting the clear as a draw
call instead of relying on the TLB clear.

Fixes:
dEQP-VK.renderpass.suballocation.attachment.3.307

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