[Mesa-dev] [PATCH] anv/gen7_pipeline: Use MSDISPMODE_PERSAMPLE for non-multisampled fbo

Anuj Phogat anuj.phogat at gmail.com
Wed Sep 21 18:13:53 UTC 2016


Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
---
 src/intel/vulkan/gen7_pipeline.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/intel/vulkan/gen7_pipeline.c b/src/intel/vulkan/gen7_pipeline.c
index 878308b..5150ef9 100644
--- a/src/intel/vulkan/gen7_pipeline.c
+++ b/src/intel/vulkan/gen7_pipeline.c
@@ -267,7 +267,8 @@ genX(graphics_pipeline_create)(
 
          wm.MultisampleRasterizationMode        = samples > 1 ?
                                                   MSRASTMODE_ON_PATTERN : MSRASTMODE_OFF_PIXEL;
-         wm.MultisampleDispatchMode             = wm_prog_data->persample_dispatch ?
+         wm.MultisampleDispatchMode             = ((samples == 1) ||
+                                                   (samples > 1 && wm_prog_data->persample_dispatch)) ?
                                                   MSDISPMODE_PERSAMPLE : MSDISPMODE_PERPIXEL;
       }
    }
-- 
2.5.5



More information about the mesa-dev mailing list