From 6c82a4c8e26903f2f764344b1c1ff677338796cd Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Mon, 3 Jun 2019 07:38:47 -0700 Subject: [PATCH] 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 --- .../vulkancts/modules/vulkan/pipeline/vktPipelineMultisampleTests.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 | -- 2.7.4