mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 04:30:10 +01:00
turnip: Fix crashes in compute with no descriptors to load.
Found when trying to rebase cheza VK CI on top of this change.
Fixes: 334204823e ("tu: Fix context faults loading unused descriptor sets")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5266>
This commit is contained in:
parent
b2324f4560
commit
58dd904c59
1 changed files with 3 additions and 1 deletions
|
|
@ -3906,8 +3906,10 @@ tu_dispatch(struct tu_cmd_buffer *cmd,
|
|||
if (ib.size)
|
||||
tu_cs_emit_ib(cs, &ib);
|
||||
|
||||
if (cmd->state.dirty & TU_CMD_DIRTY_COMPUTE_DESCRIPTOR_SETS)
|
||||
if ((cmd->state.dirty & TU_CMD_DIRTY_COMPUTE_DESCRIPTOR_SETS) &&
|
||||
pipeline->load_state.state_ib.size > 0) {
|
||||
tu_cs_emit_ib(cs, &pipeline->load_state.state_ib);
|
||||
}
|
||||
|
||||
cmd->state.dirty &=
|
||||
~(TU_CMD_DIRTY_COMPUTE_DESCRIPTOR_SETS | TU_CMD_DIRTY_COMPUTE_PIPELINE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue