Request GPDP2 extension if required in shared presentable image tests
authorChris Forbes <chrisforbes@google.com>
Thu, 12 Apr 2018 15:54:00 +0000 (08:54 -0700)
committerChris Forbes <chrisforbes@google.com>
Thu, 12 Apr 2018 17:26:09 +0000 (10:26 -0700)
Change-Id: Ifa4b19c6046d4f0b95a5fc65443bcd1df051b6a5
Components: Vulkan
Affects: dEQP-VK.wsi.*.shared_presentable_image.*
VK-GL-CTS: 1078

external/vulkancts/modules/vulkan/wsi/vktWsiSharedPresentableImageTests.cpp

index f14d171..bb473fe 100644 (file)
@@ -83,6 +83,9 @@ vk::Move<vk::VkInstance> createInstanceWithWsi (const vk::PlatformInterface&          vk
 {
        vector<string>  extensions;
 
+       if (!vk::isCoreInstanceExtension(version, "VK_KHR_get_physical_device_properties2"))
+               extensions.push_back("VK_KHR_get_physical_device_properties2");
+
        extensions.push_back("VK_KHR_surface");
        extensions.push_back("VK_KHR_get_surface_capabilities2");
        // Required for device extension to expose new physical device bits (in this