zink: set program pipeline array idx earlier in zink_get_gfx_pipeline
no functional changes Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17225>
This commit is contained in:
committed by
Marge Bot
parent
ed733d934e
commit
e20aa7eb3a
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user