zink: set gfx_pipeline_state::mesh_pipeline when updating pipeline

this otherwise returns null for successive draws without state change

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38134>
This commit is contained in:
Mike Blumenkrantz 2025-10-29 09:57:11 -04:00 committed by Marge Bot
parent 364208f754
commit b05d93e71e

View file

@ -285,7 +285,10 @@ zink_get_gfx_pipeline(struct zink_context *ctx,
} }
struct zink_gfx_pipeline_cache_entry *cache_entry = (struct zink_gfx_pipeline_cache_entry *)entry->data; struct zink_gfx_pipeline_cache_entry *cache_entry = (struct zink_gfx_pipeline_cache_entry *)entry->data;
state->pipeline = cache_entry->pipeline; if (IS_MESH)
state->mesh_pipeline = cache_entry->pipeline;
else
state->pipeline = cache_entry->pipeline;
/* update states for fastpath */ /* update states for fastpath */
if (DYNAMIC_STATE >= ZINK_DYNAMIC_VERTEX_INPUT) { if (DYNAMIC_STATE >= ZINK_DYNAMIC_VERTEX_INPUT) {
prog->last_finalized_hash[idx] = final_hash; prog->last_finalized_hash[idx] = final_hash;