turnip: disable LRZ on vkCmdClearattachments() 3D fallback path
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>
This commit is contained in:

committed by
Marge Bot

parent
2f79e00664
commit
1d83f5ae84
@@ -1907,6 +1907,11 @@ tu_clear_sysmem_attachments(struct tu_cmd_buffer *cmd,
|
||||
.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,
|
||||
|
Reference in New Issue
Block a user