From 2c7e1165faa30f0b859090900bcc422a33710f22 Mon Sep 17 00:00:00 2001 From: Anuj Phogat Date: Tue, 27 Sep 2016 12:24:56 -0700 Subject: [PATCH] anv/gen7_pipeline: Use MSDISPMODE_PERSAMPLE for non-multisampled fbo Signed-off-by: Anuj Phogat Reviewed-by: Jason Ekstrand --- 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 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; } } -- 2.30.2