summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/gen7_pipeline.c
diff options
context:
space:
mode:
authorAnuj Phogat <anuj.phogat@gmail.com>2016-09-27 12:24:56 -0700
committerAnuj Phogat <anuj.phogat@gmail.com>2016-10-04 13:20:34 -0700
commit2c7e1165faa30f0b859090900bcc422a33710f22 (patch)
tree42609277315a8498f8f4b8622914f6233bd4c3d9 /src/intel/vulkan/gen7_pipeline.c
parentf75a93f6102763c04858582f2d890f6d2f27ff0e (diff)
downloadexternal_mesa3d-2c7e1165faa30f0b859090900bcc422a33710f22.zip
external_mesa3d-2c7e1165faa30f0b859090900bcc422a33710f22.tar.gz
external_mesa3d-2c7e1165faa30f0b859090900bcc422a33710f22.tar.bz2
anv/gen7_pipeline: Use MSDISPMODE_PERSAMPLE for non-multisampled fbo
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'src/intel/vulkan/gen7_pipeline.c')
-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 86d01e4..8d133b6 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;
}
}