Skip to content

panfrost: Discard fix for 20.1

Backport of 0dd24b38 for staging/20.1.

This fixes problems in a number of games, including SuperTuxKart,
OpenMW and RVGL.

v2: Use MALI_READS_ZS | 0x20 instead of MALI_WRITES_Z to match with
the blob. Keep using 0x400 | 0x20 when depth is disabled.

Closes: #2620
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5001>
(cherry picked from commit 0dd24b381c52e0b20fe70041e95611aad6b0d258)

Merge request reports