Module: Mesa Branch: main Commit: e20aa7eb3a07afd4ace5fac82c931c52fa3b8223 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e20aa7eb3a07afd4ace5fac82c931c52fa3b8223
Author: Mike Blumenkrantz <[email protected]> Date: Thu Jun 23 17:02:59 2022 -0400 zink: set program pipeline array idx earlier in zink_get_gfx_pipeline no functional changes Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17225> --- 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; }
