mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
zink: flag vertex element state for rebind after vstate draws
vstate draws bind their own elements unrelated to the bound
gallium elements, so any draw occurring after a vstate draw must
rebind to ensure the correct ones are bound
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13570
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37274>
(cherry picked from commit 5fefb9e795)
This commit is contained in:
parent
693b12113d
commit
09043aba63
2 changed files with 3 additions and 1 deletions
|
|
@ -6344,7 +6344,7 @@
|
|||
"description": "zink: flag vertex element state for rebind after vstate draws",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -1018,6 +1018,8 @@ zink_draw_vertex_state(struct pipe_context *pctx,
|
|||
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;
|
||||
/* ensure ctx->element_state gets rebound on next non-vstate draw */
|
||||
ctx->vertex_state_changed = true;
|
||||
|
||||
if (info.take_vertex_state_ownership)
|
||||
pipe_vertex_state_reference(&vstate, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue