mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 23:40:10 +01:00
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:
parent
ed733d934e
commit
e20aa7eb3a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue