mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
anv: Better handle return codes from anv_physical_device_init
The case where we just want the loop to continue is INCOMPATIBLE_DRIVER because that simply means that whatever FD we opened isn't a supported Intel chip. Other error codes such as OUT_OF_HOST_MEMORY are actual errors and we should be returning early in that case. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> Cc: "13.0" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
daeb21e478
commit
a5f8ff6ca1
1 changed files with 1 additions and 1 deletions
|
|
@ -350,7 +350,7 @@ VkResult anv_EnumeratePhysicalDevices(
|
|||
snprintf(path, sizeof(path), "/dev/dri/renderD%d", 128 + i);
|
||||
result = anv_physical_device_init(&instance->physicalDevice,
|
||||
instance, path);
|
||||
if (result == VK_SUCCESS)
|
||||
if (result != VK_ERROR_INCOMPATIBLE_DRIVER)
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue