summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_pipeline.c
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-10-06 18:55:16 -0700
committerChad Versace <[email protected]>2015-10-06 21:22:18 -0700
commit37bf120930aa9e3ccf455efc633f2edbdec9dfc1 (patch)
treeb3ff7bcb1e8616f987d649fe5552f906d67af847 /src/vulkan/anv_pipeline.c
parent3fc2b1f32540ee8c3fa994814b69568c64c74d81 (diff)
vk/pipeline: Emit MSAA finishme only if samples > 1
If samples == 1, then there's nothing for Mesa to do, and the finishme message is only noise.
Diffstat (limited to 'src/vulkan/anv_pipeline.c')
-rw-r--r--src/vulkan/anv_pipeline.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vulkan/anv_pipeline.c b/src/vulkan/anv_pipeline.c
index 4af4b663c87..192a4b17ae0 100644
--- a/src/vulkan/anv_pipeline.c
+++ b/src/vulkan/anv_pipeline.c
@@ -209,7 +209,8 @@ anv_pipeline_init(struct anv_pipeline *pipeline, struct anv_device *device,
anv_finishme("VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_STATE_CREATE_INFO");
if (pCreateInfo->pViewportState)
anv_finishme("VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO");
- if (pCreateInfo->pMultisampleState)
+ if (pCreateInfo->pMultisampleState &&
+ pCreateInfo->pMultisampleState->rasterSamples > 1)
anv_finishme("VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO");
pipeline->use_repclear = extra && extra->use_repclear;