From 8836e302f1713d750d840b4be3636b30c9c03cd1 Mon Sep 17 00:00:00 2001 From: Matthew Netsch Date: Thu, 6 May 2021 15:30:22 -0400 Subject: [PATCH] Fixes image sparse tests Tests use sparseImageLoadARB in shader but not checking for sparse_residency Components: Vulkan VK-GL-CTS Issue: 2913 Affects: dEQP-VK.image.mismatched_formats.sparse_image_read* Change-Id: I6896c7cec530a69be8ea172205d9155ff71873f9 --- .../modules/vulkan/image/vktImageMismatchedFormatsTests.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/external/vulkancts/modules/vulkan/image/vktImageMismatchedFormatsTests.cpp b/external/vulkancts/modules/vulkan/image/vktImageMismatchedFormatsTests.cpp index ec29a43f2..4911b8f33 100644 --- a/external/vulkancts/modules/vulkan/image/vktImageMismatchedFormatsTests.cpp +++ b/external/vulkancts/modules/vulkan/image/vktImageMismatchedFormatsTests.cpp @@ -233,6 +233,11 @@ void MismatchedFormatTest::checkSupport (Context& context) const { TCU_THROW(NotSupportedError, "Sparse partially resident buffers not supported"); } + + if (!getPhysicalDeviceFeatures(context.getInstanceInterface(), context.getPhysicalDevice()).shaderResourceResidency) + { + TCU_THROW(NotSupportedError, "Shader resource residency not supported"); + } } VkFormatProperties formatProperties = getPhysicalDeviceFormatProperties(context.getInstanceInterface(), context.getPhysicalDevice(), m_format); -- 2.34.1