mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-11 06:28:09 +02:00
turnip: always set LRZ registers to zero for 3d clear/blit
Apparently LRZ will be read/written regardless of depth being enabled or not, so we have to make sure these registers are zero. Fixes:1d83f5ae84("turnip: disable LRZ on vkCmdClearattachments() 3D fallback path") Signed-off-by: Jonathan Marek <jonathan@marek.ca> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7899> (cherry picked from commitfa16e66a3f)
This commit is contained in:
parent
e9407a0a4f
commit
b9dbeb597f
2 changed files with 6 additions and 5 deletions
|
|
@ -742,7 +742,7 @@
|
|||
"description": "turnip: always set LRZ registers to zero for 3d clear/blit",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "1d83f5ae8435c428a20fa947d6a2b22ae453e80c"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -785,6 +785,9 @@ r3d_setup(struct tu_cmd_buffer *cmd,
|
|||
tu_cs_emit_regs(cs, A6XX_RB_SRGB_CNTL(vk_format_is_srgb(vk_format)));
|
||||
tu_cs_emit_regs(cs, A6XX_SP_SRGB_CNTL(vk_format_is_srgb(vk_format)));
|
||||
|
||||
tu_cs_emit_regs(cs, A6XX_GRAS_LRZ_CNTL(0));
|
||||
tu_cs_emit_regs(cs, A6XX_RB_LRZ_CNTL(0));
|
||||
|
||||
if (cmd->state.predication_active) {
|
||||
tu_cs_emit_pkt7(cs, CP_DRAW_PRED_ENABLE_LOCAL, 1);
|
||||
tu_cs_emit(cs, 0);
|
||||
|
|
@ -1905,10 +1908,8 @@ 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_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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue