mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 03:28:09 +02:00
anv/cmd: Dirty descriptor sets when a new pipeline is bound
Ever sincec2581a9375, the binding table layout has depended on the pipeline. This means that whenever we change pipelines we also need to re-emit binding tables for the new layout. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Cc: "12.0" <mesa-stable@lists.freedesktop.org> (cherry picked from commit35b53c8d47)
This commit is contained in:
parent
6fd7d618f4
commit
15d06d4d61
1 changed files with 6 additions and 0 deletions
|
|
@ -512,6 +512,12 @@ genX(cmd_buffer_flush_state)(struct anv_cmd_buffer *cmd_buffer)
|
|||
|
||||
anv_batch_emit_batch(&cmd_buffer->batch, &pipeline->batch);
|
||||
|
||||
/* The exact descriptor layout is pulled from the pipeline, so we need
|
||||
* to re-emit binding tables on every pipeline change.
|
||||
*/
|
||||
cmd_buffer->state.descriptors_dirty |=
|
||||
cmd_buffer->state.pipeline->active_stages;
|
||||
|
||||
/* If the pipeline changed, we may need to re-allocate push constant
|
||||
* space in the URB.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue