anv/gen7_pipeline: Set sample mask field in 3DSTATE_PS
authorAnuj Phogat <anuj.phogat@gmail.com>
Mon, 26 Sep 2016 18:40:00 +0000 (11:40 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Tue, 4 Oct 2016 20:20:35 +0000 (13:20 -0700)
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/gen7_pipeline.c

index 8de9749043dd6414b44373a5a23ad5a33cf20035..d4d494f6210dd01b4228bf74ebb2396d0334b2f1 100644 (file)
@@ -237,6 +237,9 @@ genX(graphics_pipeline_create)(
          /* Haswell requires the sample mask to be set in this packet as well as
           * in 3DSTATE_SAMPLE_MASK; the values should match. */
          /* _NEW_BUFFERS, _NEW_MULTISAMPLE */
+#if GEN_IS_HASWELL
+         ps.SampleMask                    = 0xff;
+#endif
       }
 
       uint32_t samples = pCreateInfo->pMultisampleState ?