mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
hk: fail probing silently
so we don't spam qualcomm devices Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31532>
This commit is contained in:
parent
921aeeaf5d
commit
6f3d9cba75
1 changed files with 4 additions and 4 deletions
|
|
@ -1099,9 +1099,8 @@ hk_create_drm_physical_device(struct vk_instance *_instance,
|
|||
drmFreeVersion(version);
|
||||
|
||||
if (!is_asahi) {
|
||||
result =
|
||||
vk_errorf(instance, VK_ERROR_INCOMPATIBLE_DRIVER,
|
||||
"device %s does not use the asahi kernel driver", path);
|
||||
/* Fail silently */
|
||||
result = VK_ERROR_INCOMPATIBLE_DRIVER;
|
||||
goto fail_fd;
|
||||
}
|
||||
|
||||
|
|
@ -1149,7 +1148,8 @@ hk_create_drm_physical_device(struct vk_instance *_instance,
|
|||
pdev->dev.fd = fd;
|
||||
|
||||
if (!agx_open_device(NULL, &pdev->dev)) {
|
||||
result = vk_error(instance, VK_ERROR_UNKNOWN);
|
||||
/* Fail silently, for virtgpu */
|
||||
result = VK_ERROR_INCOMPATIBLE_DRIVER;
|
||||
goto fail_pdev_alloc;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue