diff options
author | Anuj Phogat <[email protected]> | 2016-09-27 12:24:56 -0700 |
---|---|---|
committer | Anuj Phogat <[email protected]> | 2016-10-04 13:20:34 -0700 |
commit | 2c7e1165faa30f0b859090900bcc422a33710f22 (patch) | |
tree | 42609277315a8498f8f4b8622914f6233bd4c3d9 /src/intel/vulkan | |
parent | f75a93f6102763c04858582f2d890f6d2f27ff0e (diff) |
anv/gen7_pipeline: Use MSDISPMODE_PERSAMPLE for non-multisampled fbo
Signed-off-by: Anuj Phogat <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r-- | src/intel/vulkan/gen7_pipeline.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } } |