zink: don't set gfx_pipeline_state.dirty if min_samples didn't change

This helps reduce the upcoming pipeline check conditions.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39381>
This commit is contained in:
Utku Iseri 2026-01-16 11:37:04 +01:00 committed by Marge Bot
parent f2273866b1
commit 7103457acb

View file

@ -4206,6 +4206,8 @@ static void
zink_set_min_samples(struct pipe_context *pctx, unsigned min_samples)
{
struct zink_context *ctx = zink_context(pctx);
if (ctx->gfx_pipeline_state.min_samples == (min_samples - 1))
return;
ctx->gfx_pipeline_state.min_samples = min_samples - 1;
ctx->gfx_pipeline_state.dirty = ctx->gfx_pipeline_state.mesh_dirty = true;
}