Mesa (master): anv/gen7_pipeline: Set sample mask field in 3DSTATE_PS

Anuj Phogat aphogat at kemper.freedesktop.org
Tue Oct 4 20:28:03 UTC 2016


Module: Mesa
Branch: master
Commit: 1ffcf95fc4a63c56471eeee268d1a973daa55d7a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1ffcf95fc4a63c56471eeee268d1a973daa55d7a

Author: Anuj Phogat <anuj.phogat at gmail.com>
Date:   Mon Sep 26 11:40:00 2016 -0700

anv/gen7_pipeline: Set sample mask field in 3DSTATE_PS

Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

---

 src/intel/vulkan/gen7_pipeline.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/intel/vulkan/gen7_pipeline.c b/src/intel/vulkan/gen7_pipeline.c
index 8de9749..d4d494f 100644
--- a/src/intel/vulkan/gen7_pipeline.c
+++ b/src/intel/vulkan/gen7_pipeline.c
@@ -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 ?




More information about the mesa-commit mailing list