From 843b90e95cce597d7693677e2a4306b80c6b91cd Mon Sep 17 00:00:00 2001 From: Daniel Koch Date: Tue, 3 Oct 2017 23:59:39 -0400 Subject: [PATCH] Check for VK 1.1 for protected memory tests instead of the non-existant VK_KHR_protected_memory extension VK-GL-CTS issue: 737 Component: Vulkan Affects: dEQP-VK.protected_memory.* Change-Id: Ie28a51497ec4bd507d6b6380f1012f445169ed35 --- .../modules/vulkan/protected_memory/vktProtectedMemUtils.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/external/vulkancts/modules/vulkan/protected_memory/vktProtectedMemUtils.cpp b/external/vulkancts/modules/vulkan/protected_memory/vktProtectedMemUtils.cpp index 2ded874..7af33bb 100644 --- a/external/vulkancts/modules/vulkan/protected_memory/vktProtectedMemUtils.cpp +++ b/external/vulkancts/modules/vulkan/protected_memory/vktProtectedMemUtils.cpp @@ -150,7 +150,9 @@ vk::Move makeProtectedMemDevice (const vk::InstanceDriver& vkd, const Extensions supportedExtensions (vk::enumerateDeviceExtensionProperties(vkd, physicalDevice, DE_NULL)); std::vector requiredExtensions; std::vector extensions = extraExtensions; - extensions.push_back("VK_KHR_protected_memory"); + + if (apiVersion < VK_API_VERSION_1_1) + TCU_THROW(NotSupportedError, "Vulkan 1.1 is not supported"); // Check if the physical device supports the protected memory extension name for (deUint32 ndx = 0; ndx < extensions.size(); ++ndx) -- 2.7.4