aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-07-12 10:42:49 -0700
committerKenneth Graunke <[email protected]>2019-02-21 10:26:07 -0800
commitbc1b4db3b318aaa83ab1faa21c186c88dbe46483 (patch)
tree3e2435af672eb7e09ea6a9d20de6041efcdbab21 /src/gallium/drivers/iris
parent7b8c0f058e6fef783136ef4aecc13fc10aac9a46 (diff)
iris: fix sample mask for MSAA-off
Diffstat (limited to 'src/gallium/drivers/iris')
-rw-r--r--src/gallium/drivers/iris/iris_state.c2
1 files changed, 1 insertions, 1 deletions
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;
}