From: Chris Forbes Date: Mon, 3 Jun 2019 14:38:47 +0000 (-0700) Subject: Check for toplevel sparse binding support bit in sparse pipeline tests X-Git-Tag: upstream/1.3.5~2002^2~4^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c82a4c8e26903f2f764344b1c1ff677338796cd;p=platform%2Fupstream%2FVK-GL-CTS.git Check for toplevel sparse binding support bit in sparse pipeline tests VK-GL-CTS Issue: 1806 Components: Vulkan Bug: b/130838280 Affects: dEQP-VK.pipeline.multisample.*sparse Change-Id: I18f0960228e24dddcfee6d85c2c4ae647439a3c6 --- diff --git a/external/vulkancts/modules/vulkan/pipeline/vktPipelineMultisampleTests.cpp b/external/vulkancts/modules/vulkan/pipeline/vktPipelineMultisampleTests.cpp index a41594b..020019f 100644 --- a/external/vulkancts/modules/vulkan/pipeline/vktPipelineMultisampleTests.cpp +++ b/external/vulkancts/modules/vulkan/pipeline/vktPipelineMultisampleTests.cpp @@ -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 |