From 14bf10c1adce11c9e208d9269e9e048eef61ef8b Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 14 Jun 2023 08:29:24 -0400 Subject: [PATCH] zink: no-op redundant samplemask changes Part-of: --- src/gallium/drivers/zink/zink_context.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c index 0fc845f..2e63a09 100644 --- a/src/gallium/drivers/zink/zink_context.c +++ b/src/gallium/drivers/zink/zink_context.c @@ -3546,6 +3546,8 @@ static void zink_set_sample_mask(struct pipe_context *pctx, unsigned sample_mask) { struct zink_context *ctx = zink_context(pctx); + if (ctx->gfx_pipeline_state.sample_mask == sample_mask) + return; ctx->gfx_pipeline_state.sample_mask = sample_mask; zink_flush_dgc_if_enabled(ctx); if (zink_screen(pctx->screen)->have_full_ds3) -- 2.7.4