mirror of
https://gitee.com/openharmony/third_party_vulkan-loader
synced 2024-11-24 07:39:52 +00:00
loader: Try to handle ICD failure in vkEnumeratePhysicalDevices
If any ICD failed to enumerate device groups here, we would fail the call entirely, which means a broken driver for device A could prevent you from using device B. Just skip over the failing ICD instead.
This commit is contained in:
parent
fbea18e178
commit
5ccc3563ea
@ -6846,7 +6846,7 @@ VkResult setup_loader_term_phys_dev_groups(struct loader_instance *inst) {
|
||||
"setup_loader_term_phys_dev_groups: Failed during dispatch call of "
|
||||
"\'EnumeratePhysicalDevices\' to ICD %d to get plain phys dev count.",
|
||||
icd_idx);
|
||||
goto out;
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
// Query the actual group info
|
||||
@ -6856,10 +6856,11 @@ VkResult setup_loader_term_phys_dev_groups(struct loader_instance *inst) {
|
||||
"setup_loader_term_phys_dev_groups: Failed during dispatch call of "
|
||||
"\'EnumeratePhysicalDeviceGroups\' to ICD %d to get count.",
|
||||
icd_idx);
|
||||
goto out;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
total_count += cur_icd_group_count;
|
||||
|
||||
}
|
||||
|
||||
if (total_count == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user