Check for VK 1.1 for protected memory tests
authorDaniel Koch <dkoch@nvidia.com>
Wed, 4 Oct 2017 03:59:39 +0000 (23:59 -0400)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 4 Oct 2017 07:46:02 +0000 (03:46 -0400)
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

external/vulkancts/modules/vulkan/protected_memory/vktProtectedMemUtils.cpp

index 2ded874..7af33bb 100644 (file)
@@ -150,7 +150,9 @@ vk::Move<vk::VkDevice> makeProtectedMemDevice       (const vk::InstanceDriver&                      vkd,
        const Extensions                                        supportedExtensions     (vk::enumerateDeviceExtensionProperties(vkd, physicalDevice, DE_NULL));
        std::vector<std::string>                        requiredExtensions;
        std::vector<std::string>                        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)