etnaviv: fix late Z with MSAA active
authorLucas Stach <l.stach@pengutronix.de>
Mon, 7 Nov 2022 13:22:21 +0000 (14:22 +0100)
committerEric Engestrom <eric@engestrom.ch>
Thu, 17 Nov 2022 14:05:03 +0000 (14:05 +0000)
commit0bcf214da32438ab8bf722ee8d9fea8940b6fcf9
treea33777734124dc00040f16a11c6f915d86618b39
parentaa63bf1834500c5201511f7c3ca443543ad6f6c6
etnaviv: fix late Z with MSAA active

On RA_WRITE_DEPTH GPUs the RA stage needs to be told that MSAA is active
when the PE Z/S stage is needed. Not sure what it does exactly, but this
fixes broken late Z on those GPUs when performing MSAA rendering.

Cc: 22.3 mesa-stable
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19571>
(cherry picked from commit 2f85d9095e3559597bc1cf0051ab6d7bc18faecd)
.pick_status.json
src/gallium/drivers/etnaviv/etnaviv_state.c