radv: Always enable PERFECT_ZPASS_COUNTS.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 5 Jul 2020 16:57:35 +0000 (18:57 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 6 Jul 2020 13:54:38 +0000 (13:54 +0000)
commitad913a18b14f25b4f6995cb8a8b0c55c747029d8
tree26f6f4b66af7042aa1f32d61dda9dc16cd823a91
parentad151499583f1814280218bf2eae4eaf1e7090a4
radv: Always enable PERFECT_ZPASS_COUNTS.

We have an issue with early depth testing and discard, where
non-perfect counts count the tile if the early depth test succeeds.

We could spend a lot of effort to set this conditionally based
on the presence of the two conditions, but in the presence of
inherited queries let's try this first.

Changing PERFECT_ZPASS_COUNTS since I'm pretty sure this has a lower
performance impact than always using late depth testing.

CC: <mesa-stable@lists.freedesktop.org>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3218
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5757>
src/amd/vulkan/radv_cmd_buffer.c