mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 16:00:08 +01:00
zink: set gfx_pipeline_state::mesh_pipeline when updating pipeline
this otherwise returns null for successive draws without state change Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38134>
This commit is contained in:
parent
364208f754
commit
b05d93e71e
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
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 */
|
/* update states for fastpath */
|
||||||
if (DYNAMIC_STATE >= ZINK_DYNAMIC_VERTEX_INPUT) {
|
if (DYNAMIC_STATE >= ZINK_DYNAMIC_VERTEX_INPUT) {
|
||||||
prog->last_finalized_hash[idx] = final_hash;
|
prog->last_finalized_hash[idx] = final_hash;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue