iris: sample mask...not 0.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 31 Jan 2018 01:44:26 +0000 (17:44 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:05 +0000 (10:26 -0800)
We now have a first triangle!

src/gallium/drivers/iris/iris_state.c

index ae07c3a05189ae8c2e07c9ae1688b559f1541ef9..5d63c21b0bcfdb4792b48446918878152203337a 100644 (file)
@@ -1999,7 +1999,7 @@ iris_upload_render_state(struct iris_context *ice,
 
    if (dirty & IRIS_DIRTY_SAMPLE_MASK) {
       iris_emit_cmd(batch, GENX(3DSTATE_SAMPLE_MASK), ms) {
-         ms.SampleMask = ice->state.sample_mask;
+         ms.SampleMask = MAX2(ice->state.sample_mask, 1);
       }
    }