From b05d93e71ed4e27214ae90a4962f07f05f25df4c Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 29 Oct 2025 09:57:11 -0400 Subject: [PATCH] zink: set gfx_pipeline_state::mesh_pipeline when updating pipeline this otherwise returns null for successive draws without state change Part-of: --- src/gallium/drivers/zink/zink_program_state.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_program_state.hpp b/src/gallium/drivers/zink/zink_program_state.hpp index 7b604c1cf8f..584ec854d53 100644 --- a/src/gallium/drivers/zink/zink_program_state.hpp +++ b/src/gallium/drivers/zink/zink_program_state.hpp @@ -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; - state->pipeline = cache_entry->pipeline; + if (IS_MESH) + state->mesh_pipeline = cache_entry->pipeline; + else + state->pipeline = cache_entry->pipeline; /* update states for fastpath */ if (DYNAMIC_STATE >= ZINK_DYNAMIC_VERTEX_INPUT) { prog->last_finalized_hash[idx] = final_hash;