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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user