From: Chad Versace Date: Wed, 7 Oct 2015 01:55:16 +0000 (-0700) Subject: vk/pipeline: Emit MSAA finishme only if samples > 1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=37bf120930aa9e3ccf455efc633f2edbdec9dfc1;p=mesa.git 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. --- 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;