mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
tu: Make cs writeable for GMEM loads when FDM is enabled
This was accidentally dropped.
Fixes: 21334e3b53 ("turnip: Move gmem clears and loads to the first subpass that uses them.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29938>
This commit is contained in:
parent
6185134f28
commit
bd179e6213
1 changed files with 7 additions and 0 deletions
|
|
@ -4308,6 +4308,9 @@ tu_emit_subpass_begin_gmem(struct tu_cmd_buffer *cmd)
|
|||
cmd->state.pass->has_cond_load_store &&
|
||||
!cmd->state.rp.draw_cs_writes_to_cond_pred;
|
||||
|
||||
if (cmd->state.pass->has_fdm)
|
||||
tu_cs_set_writeable(cs, true);
|
||||
|
||||
tu_cond_exec_start(cs, CP_COND_EXEC_0_RENDER_MODE_GMEM);
|
||||
|
||||
/* Emit gmem loads that are first used in this subpass. */
|
||||
|
|
@ -4337,6 +4340,10 @@ tu_emit_subpass_begin_gmem(struct tu_cmd_buffer *cmd)
|
|||
}
|
||||
|
||||
tu_cond_exec_end(cs); /* CP_COND_EXEC_0_RENDER_MODE_GMEM */
|
||||
|
||||
if (cmd->state.pass->has_fdm)
|
||||
tu_cs_set_writeable(cs, false);
|
||||
|
||||
}
|
||||
|
||||
/* Emits sysmem clears that are first used in this subpass. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue