anv: Properly enumerate physical devices when none are present
This commit is contained in:
parent
9d559ba39d
commit
aed2714145
|
@ -412,8 +412,11 @@ VkResult anv_EnumeratePhysicalDevices(
|
|||
}
|
||||
}
|
||||
|
||||
vk_outarray_append(&out, i) {
|
||||
*i = anv_physical_device_to_handle(&instance->physicalDevice);
|
||||
if (instance->physicalDeviceCount > 0) {
|
||||
assert(instance->physicalDeviceCount == 1);
|
||||
vk_outarray_append(&out, i) {
|
||||
*i = anv_physical_device_to_handle(&instance->physicalDevice);
|
||||
}
|
||||
}
|
||||
|
||||
return vk_outarray_status(&out);
|
||||
|
|
Loading…
Reference in New Issue