mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
zink: flag vertex buffers for rebind after vstate draws
vstate draws bind their own vertex buffers unrelated to the bound
gallium buffers, so any draw occurring after a vstate draw must
rebind vertex buffers to ensure the correct ones are bound
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22116>
(cherry picked from commit 4be5caba67)
This commit is contained in:
parent
a09d1d6bfa
commit
2ce6652a7a
2 changed files with 3 additions and 1 deletions
|
|
@ -1219,7 +1219,7 @@
|
|||
"description": "zink: flag vertex buffers for rebind after vstate draws",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -974,6 +974,8 @@ zink_draw_vertex_state(struct pipe_context *pctx,
|
|||
ctx->gfx_pipeline_state.element_state = &((struct zink_vertex_state*)vstate)->velems.hw_state;
|
||||
|
||||
zink_draw<HAS_MULTIDRAW, DYNAMIC_STATE, BATCH_CHANGED, true>(pctx, &dinfo, 0, NULL, draws, num_draws, vstate, partial_velem_mask);
|
||||
/* ensure ctx->vertex_buffers gets rebound on next non-vstate draw */
|
||||
ctx->vertex_buffers_dirty = true;
|
||||
ctx->gfx_pipeline_state.element_state = hw_state;
|
||||
|
||||
if (info.take_vertex_state_ownership)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue