zink: set current compute prog after comparing against current compute prog

not sure how this was never caught before now?

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37139>
(cherry picked from commit e21438192a)
This commit is contained in:
Mike Blumenkrantz 2025-09-08 15:33:47 -04:00 committed by Eric Engestrom
parent c99a6f8470
commit d9094cf0cd
2 changed files with 2 additions and 2 deletions

View file

@ -6794,7 +6794,7 @@
"description": "zink: set current compute prog after comparing against current compute prog",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -2102,11 +2102,11 @@ zink_bind_cs_state(struct pipe_context *pctx,
ctx->compute_pipeline_state.module_hash = 0;
}
ctx->compute_pipeline_state.dirty = true;
ctx->curr_compute = comp;
if (comp && comp != ctx->curr_compute) {
if (ctx->compute_pipeline_state.key.base.nonseamless_cube_mask)
ctx->compute_dirty = true;
}
ctx->curr_compute = comp;
zink_select_launch_grid(ctx);
}