aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2019-01-15 23:22:48 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:11 -0800
commit3b336a15139f30dcfa1a7f8191153807609860c3 (patch)
tree489dd3d81114c234c1256cfdbd98dc821b45b87a /src/gallium/drivers
parente17333ea1e57cbf40ad3dd5c75e5caef24d0feb4 (diff)
iris: Allow sample mask of 0
I think this was an attempt to work around various sample mask bugs I had early on. It's not correct. A sample mask of 0 is legal and means to disable all samples. Fixes dEQP-GLES31.functional.texture.multisample.*.*sample_mask*
Diffstat (limited to 'src/gallium/drivers')
-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 74a84e5065c..e77c991ecc1 100644
--- a/src/gallium/drivers/iris/iris_state.c
+++ b/src/gallium/drivers/iris/iris_state.c
@@ -4316,7 +4316,7 @@ iris_upload_dirty_render_state(struct iris_context *ice,
if (dirty & IRIS_DIRTY_SAMPLE_MASK) {
iris_emit_cmd(batch, GENX(3DSTATE_SAMPLE_MASK), ms) {
- ms.SampleMask = MAX2(ice->state.sample_mask, 1);
+ ms.SampleMask = ice->state.sample_mask;
}
}