anv/gen7_pipeline: Use MSDISPMODE_PERSAMPLE for non-multisampled fbo
authorAnuj Phogat <anuj.phogat@gmail.com>
Tue, 27 Sep 2016 19:24:56 +0000 (12:24 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Tue, 4 Oct 2016 20:20:34 +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 86d01e4fccaad02c3522b4863d004d2a5e6fbe21..8d133b6c0f27d9fb4ea927f102d63242c8fb1ff3 100644 (file)
@@ -268,7 +268,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;
       }
    }