From: Kenneth Graunke Date: Thu, 12 Jul 2018 17:42:49 +0000 (-0700) Subject: iris: fix sample mask for MSAA-off X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bc1b4db3b318aaa83ab1faa21c186c88dbe46483;p=mesa.git iris: fix sample mask for MSAA-off --- diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index e4ecba68254..3e646584045 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -1169,7 +1169,7 @@ iris_set_sample_mask(struct pipe_context *ctx, unsigned sample_mask) { struct iris_context *ice = (struct iris_context *) ctx; - ice->state.sample_mask = sample_mask; + ice->state.sample_mask = sample_mask == 0xffffffff ? 1 : sample_mask; ice->state.dirty |= IRIS_DIRTY_SAMPLE_MASK; }