mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
zink: use the "set" optimal key for prog last_variant_hash for consistency
this is the key that has been set during program update for reuse everywhere else, and everything else in the driver uses it Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24831>
This commit is contained in:
parent
d5157356ce
commit
dae144aeac
1 changed files with 2 additions and 2 deletions
|
|
@ -469,7 +469,7 @@ generate_gfx_program_modules_optimal(struct zink_context *ctx, struct zink_scree
|
|||
}
|
||||
|
||||
state->modules_changed = true;
|
||||
prog->last_variant_hash = state->shader_keys_optimal.key.val;
|
||||
prog->last_variant_hash = state->optimal_key;
|
||||
}
|
||||
|
||||
static uint32_t
|
||||
|
|
@ -693,7 +693,7 @@ update_gfx_program_optimal(struct zink_context *ctx, struct zink_gfx_program *pr
|
|||
bool changed = update_gfx_shader_module_optimal(ctx, prog, MESA_SHADER_TESS_CTRL);
|
||||
ctx->gfx_pipeline_state.modules_changed |= changed;
|
||||
}
|
||||
prog->last_variant_hash = ctx->gfx_pipeline_state.shader_keys_optimal.key.val;
|
||||
prog->last_variant_hash = ctx->gfx_pipeline_state.optimal_key;
|
||||
}
|
||||
|
||||
static struct zink_gfx_program *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue