summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/intel/vulkan/gen7_pipeline.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/intel/vulkan/gen7_pipeline.c b/src/intel/vulkan/gen7_pipeline.c
index 86d01e4fcc..8d133b6c0f 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;
}
}