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:
Dave Airlie 2024-11-21 06:25:08 +10:00
parent 3e2599d475
commit 0d15376647

View File

@ -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);