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:
Alyssa Rosenzweig 2024-10-02 20:22:26 -04:00 committed by Marge Bot
parent 921aeeaf5d
commit 6f3d9cba75

View file

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