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>
This commit is contained in:
committed by
Marge Bot
parent
a03a79aa9d
commit
5fefb9e795
@@ -1021,6 +1021,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);
|
||||
|
||||
Reference in New Issue
Block a user