v3dv: fix depth/stencil clears on hardware
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 14 May 2020 10:09:57 +0000 (12:09 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:30 +0000 (21:21 +0000)
commit57d0ff8d481bda738cbc41fad5fb2c62a825d83d
treef8bd578742061905b73c03880c4ae93b54a6b722
parentce681aac70f81a94971c75beaec4f017954fee64
v3dv: fix depth/stencil clears on hardware

There is a hw bug by which the only way to clear the depth/stencil
tile buffers is to emit a clear of all tile buffers, so if we have
to do any such clears, we just emit a single clear of all tile
buffers and skip doing any per-buffer clears, even for color buffers,
since they would be redundant.

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