anv/pipeline: Allow the user to pass a null MultisampleCreateInfo
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 16 Dec 2015 00:26:08 +0000 (16:26 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 16 Dec 2015 00:26:10 +0000 (16:26 -0800)
According to section 5.2 of the Vulkan spec, this is allowed for color-only
rendering pipelines.

src/vulkan/anv_pipeline.c

index bf243cdb6b4316cbfdfd432e8dae080609e83d2e..bf983ed8f2ab7107b4cca04b241880f42572ac4a 100644 (file)
@@ -900,7 +900,6 @@ anv_pipeline_validate_create_info(const VkGraphicsPipelineCreateInfo *info)
    assert(info->pInputAssemblyState);
    assert(info->pViewportState);
    assert(info->pRasterizationState);
-   assert(info->pMultisampleState);
 
    if (subpass && subpass->depth_stencil_attachment != VK_ATTACHMENT_UNUSED)
       assert(info->pDepthStencilState);