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