Partial clears are not supported and we may end up having LRZ enabled
from past commands.
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5146>
.component_enable = COND(clear_rts & (1 << i), 0xf)));
}
+ if (z_clear) {
+ tu_cs_emit_regs(cs, A6XX_GRAS_LRZ_CNTL(0));
+ tu_cs_emit_regs(cs, A6XX_RB_LRZ_CNTL(0));
+ }
+
tu_cs_emit_regs(cs, A6XX_RB_DEPTH_PLANE_CNTL());
tu_cs_emit_regs(cs, A6XX_RB_DEPTH_CNTL(
.z_enable = z_clear,