<p dir="ltr">This seems odd... When can it even happen that we have persample_dispatch set in wm_surface_state and have only one sample?  Does this fix a test case?</p>
<div class="gmail_extra"><br><div class="gmail_quote">On Sep 21, 2016 9:14 PM, "Anuj Phogat" <<a href="mailto:anuj.phogat@gmail.com">anuj.phogat@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Signed-off-by: Anuj Phogat <<a href="mailto:anuj.phogat@gmail.com">anuj.phogat@gmail.com</a>><br>
---<br>
 src/intel/vulkan/gen7_<wbr>pipeline.c | 3 ++-<br>
 1 file changed, 2 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/intel/vulkan/gen7_<wbr>pipeline.c b/src/intel/vulkan/gen7_<wbr>pipeline.c<br>
index 878308b..5150ef9 100644<br>
--- a/src/intel/vulkan/gen7_<wbr>pipeline.c<br>
+++ b/src/intel/vulkan/gen7_<wbr>pipeline.c<br>
@@ -267,7 +267,8 @@ genX(graphics_pipeline_create)<wbr>(<br>
<br>
          wm.<wbr>MultisampleRasterizationMode        = samples > 1 ?<br>
                                                   MSRASTMODE_ON_PATTERN : MSRASTMODE_OFF_PIXEL;<br>
-         wm.MultisampleDispatchMode             = wm_prog_data->persample_<wbr>dispatch ?<br>
+         wm.MultisampleDispatchMode             = ((samples == 1) ||<br>
+                                                   (samples > 1 && wm_prog_data->persample_<wbr>dispatch)) ?<br>
                                                   MSDISPMODE_PERSAMPLE : MSDISPMODE_PERPIXEL;<br>
       }<br>
    }<br>
--<br>
2.5.5<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</blockquote></div></div>