etnaviv: Fix disabling early-z rejection on GC7000L (HALTI5)
authorLukas F. Hartmann <lukas@mntre.com>
Sat, 13 Jun 2020 18:55:44 +0000 (20:55 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 26 Aug 2020 08:23:31 +0000 (08:23 +0000)
commit785e2707b0d181967ca8986346fa7482d4fbed0b
treef285f0ad83abb9b97be4b873047e50d336eca280
parent0d8ae4ac15034cf91e53a7258aae920532e72abd
etnaviv: Fix disabling early-z rejection on GC7000L (HALTI5)

The VIVS_PE_DEPTH_CONFIG_DISABLE_ZS in PE_DEPTH_CONFIG caused depth
write hangs on HALTI5.
This is because the 0x11000000 bits in RA have to be toggled on
when setting this bit to zero. This combination will disable
early-z rejection on GC7000L, which was previously done through
a different bit.
Tested only on GC7000L so far.

Signed-off-by: Lukas F. Hartmann <lukas@mntre.com>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5456>
src/gallium/drivers/etnaviv/etnaviv_context.c
src/gallium/drivers/etnaviv/etnaviv_emit.c
src/gallium/drivers/etnaviv/etnaviv_state.c
src/gallium/drivers/etnaviv/etnaviv_zsa.c
src/gallium/drivers/etnaviv/etnaviv_zsa.h