mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-23 10:14:13 +08:00
v3dv: report correct error on failure to probe
When probing ICDs, the broadcom driver returns the wrong error code which spews on the console instead of silently failing. Cc: mesa-stable Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32266>
This commit is contained in:
parent
3e2599d475
commit
0d15376647
@ -1585,7 +1585,7 @@ enumerate_devices(struct vk_instance *vk_instance)
|
||||
}
|
||||
|
||||
if (render_fd < 0)
|
||||
result = VK_ERROR_INITIALIZATION_FAILED;
|
||||
result = VK_ERROR_INCOMPATIBLE_DRIVER;
|
||||
else
|
||||
result = create_physical_device(instance, render_fd, primary_fd);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user