vk/pipeline: Emit MSAA finishme only if samples > 1
authorChad Versace <chad.versace@intel.com>
Wed, 7 Oct 2015 01:55:16 +0000 (18:55 -0700)
committerChad Versace <chad.versace@intel.com>
Wed, 7 Oct 2015 04:22:18 +0000 (21:22 -0700)
If samples == 1, then there's nothing for Mesa to do, and the finishme
message is only noise.

src/vulkan/anv_pipeline.c

index 4af4b663c87404722567768d648aa60800a36aa8..192a4b17ae0fb11cdf11738fb4a21e4a4d492229 100644 (file)
@@ -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;