Skip GPU that doesn't support Vulkan 1.3 or above 42/320742/3
authorRichard Huang <r.huang@samsung.com>
Thu, 21 Nov 2024 14:32:00 +0000 (14:32 +0000)
committerRichard Huang <r.huang@samsung.com>
Thu, 21 Nov 2024 14:45:42 +0000 (14:45 +0000)
Change-Id: I61964212e086c848160be3e477444a36ca42a808

dali/internal/graphics/vulkan/vulkan-device.cpp

index f8228484048ae5c220d3375d51ecf33b8a088d03..372d93f7f2af414ab80c82b9b69655c7546c3dbb 100644 (file)
@@ -640,6 +640,13 @@ void Device::PreparePhysicalDevice(SurfaceImpl* surface)
     for(auto& device : devices)
     {
       auto properties = device.getProperties();
+
+      // We only want to choose a device that supports Vulkan 1.3 or above.
+      if(properties.apiVersion < VK_API_VERSION_1_3)
+      {
+        continue;
+      }
+
       if(properties.deviceType == vk::PhysicalDeviceType::eDiscreteGpu ||
          properties.deviceType == vk::PhysicalDeviceType::eIntegratedGpu)
       {