mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 08:10:09 +01:00
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:
parent
2f79e00664
commit
1d83f5ae84
1 changed files with 5 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue