etnaviv: fix ETNA_MESA_DEBUG=no_early_z

This feature bit has inverted polarity from most other feature bits:
if the bit is present the driver should not use early Z. So the bit
must be set when the debug option to disable early Z is enabled.

Fixes: d600b45ccc ("etnaviv: Switch to etna_core APIs")
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34064>
This commit is contained in:
Lucas Stach
2025-03-13 23:43:51 +01:00
committed by Marge Bot
parent 2a07237b6b
commit 4608eef0a0
+1 -1
View File
@@ -1006,7 +1006,7 @@ etna_screen_create(struct etna_device *dev, struct etna_gpu *gpu,
/* apply debug options that disable individual features */
if (DBG_ENABLED(ETNA_DBG_NO_EARLY_Z))
etna_core_disable_feature(screen->info, ETNA_FEATURE_NO_EARLY_Z);
etna_core_enable_feature(screen->info, ETNA_FEATURE_NO_EARLY_Z);
if (DBG_ENABLED(ETNA_DBG_NO_TS))
etna_core_disable_feature(screen->info, ETNA_FEATURE_FAST_CLEAR);
if (DBG_ENABLED(ETNA_DBG_NO_AUTODISABLE))