Vulkan: Hide devices of failing drivers

Devices reported by failing drivers were still part of the device
selection list. When selected they would never be picked.

This change hides these devices from the UI

Pull Request: https://projects.blender.org/blender/blender/pulls/131431
This commit is contained in:
Jeroen Bakker
2024-12-05 13:29:55 +01:00
parent 4fd49ae9f3
commit 55495b6224

View File

@@ -270,7 +270,9 @@ void VKBackend::platform_init()
vkEnumeratePhysicalDevices(vk_instance, &physical_devices_count, vk_physical_devices.data());
int index = 0;
for (VkPhysicalDevice vk_physical_device : vk_physical_devices) {
if (missing_capabilities_get(vk_physical_device).is_empty()) {
if (missing_capabilities_get(vk_physical_device).is_empty() &&
GPU_vulkan_is_supported_driver(vk_physical_device))
{
VkPhysicalDeviceProperties vk_properties = {};
vkGetPhysicalDeviceProperties(vk_physical_device, &vk_properties);
std::stringstream identifier;