Check for toplevel sparse binding support bit in sparse pipeline tests
authorChris Forbes <chrisforbes@google.com>
Mon, 3 Jun 2019 14:38:47 +0000 (07:38 -0700)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 6 Jun 2019 15:09:18 +0000 (11:09 -0400)
VK-GL-CTS Issue: 1806
Components: Vulkan
Bug: b/130838280
Affects: dEQP-VK.pipeline.multisample.*sparse
Change-Id: I18f0960228e24dddcfee6d85c2c4ae647439a3c6

external/vulkancts/modules/vulkan/pipeline/vktPipelineMultisampleTests.cpp

index a41594b..020019f 100644 (file)
@@ -2018,6 +2018,9 @@ void MultisampleRenderer::initialize (Context&                                                                    context,
        const VkSharingMode                     sharingMode                             = (sparse && context.getUniversalQueueFamilyIndex() != context.getSparseQueueFamilyIndex()) ? VK_SHARING_MODE_CONCURRENT : VK_SHARING_MODE_EXCLUSIVE;
        Allocator&                                      memAlloc                                = m_context.getDefaultAllocator();
 
+       if (sparse && !context.getDeviceFeatures().sparseBinding)
+               throw tcu::NotSupportedError("No sparseBinding support");
+
        // Create color image
        {
                const VkImageUsageFlags imageUsageFlags         = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_SRC_BIT |