From: Anuj Phogat Date: Tue, 27 Sep 2016 19:24:56 +0000 (-0700) Subject: anv/gen7_pipeline: Use MSDISPMODE_PERSAMPLE for non-multisampled fbo X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2c7e1165faa30f0b859090900bcc422a33710f22;p=mesa.git anv/gen7_pipeline: Use MSDISPMODE_PERSAMPLE for non-multisampled fbo Signed-off-by: Anuj Phogat Reviewed-by: Jason Ekstrand --- diff --git a/src/intel/vulkan/gen7_pipeline.c b/src/intel/vulkan/gen7_pipeline.c index 86d01e4fcca..8d133b6c0f2 100644 --- a/src/intel/vulkan/gen7_pipeline.c +++ b/src/intel/vulkan/gen7_pipeline.c @@ -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; } }