From e20aa7eb3a07afd4ace5fac82c931c52fa3b8223 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 23 Jun 2022 17:02:59 -0400 Subject: [PATCH] zink: set program pipeline array idx earlier in zink_get_gfx_pipeline no functional changes Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_program.c b/src/gallium/drivers/zink/zink_program.c index ccb85219cbb..b40d2accf01 100644 --- a/src/gallium/drivers/zink/zink_program.c +++ b/src/gallium/drivers/zink/zink_program.c @@ -861,6 +861,7 @@ zink_get_gfx_pipeline(struct zink_context *ctx, } state->modules_changed = false; state->uses_dynamic_stride = uses_dynamic_stride; + state->idx = idx; ctx->vertex_state_changed = false; entry = _mesa_hash_table_search_pre_hashed(&prog->pipelines[idx], state->final_hash, state); @@ -887,7 +888,6 @@ zink_get_gfx_pipeline(struct zink_context *ctx, struct gfx_pipeline_cache_entry *cache_entry = entry->data; state->pipeline = cache_entry->pipeline; - state->idx = idx; return state->pipeline; }