From 9f7088fd7f0aac84b565f8a9494bf9de4bab85ea Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Fri, 15 Jan 2021 18:06:10 +0100 Subject: rhi: Stop hardcoding the Vulkan backend's desired instance extensions Instead, have a static function in QRhiVulkanInitParams then Qt Quick and anyone else who creates a QVulkanInstance that is then used in combination with QRhi can query. Change-Id: I046e0d84541fc00f5487a7527c97be262221527f Reviewed-by: Andy Nichols --- tests/auto/gui/rhi/qrhi/tst_qrhi.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/auto/gui/rhi/qrhi/tst_qrhi.cpp') diff --git a/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp b/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp index db83f7955f..1b473ed023 100644 --- a/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp +++ b/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp @@ -165,8 +165,7 @@ void tst_QRhi::initTestCase() QByteArrayLiteral("VK_LAYER_LUNARG_swapchain"), QByteArrayLiteral("VK_LAYER_GOOGLE_unique_objects") }); #endif - vulkanInstance.setExtensions(QByteArrayList() - << "VK_KHR_get_physical_device_properties2"); + vulkanInstance.setExtensions(QRhiVulkanInitParams::preferredInstanceExtensions()); vulkanInstance.create(); initParams.vk.inst = &vulkanInstance; #endif -- cgit v1.2.3