From 6f3d9cba75ca0ec7cd1b11f73185620d307392e0 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 2 Oct 2024 20:22:26 -0400 Subject: [PATCH] hk: fail probing silently so we don't spam qualcomm devices Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/vulkan/hk_physical_device.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/asahi/vulkan/hk_physical_device.c b/src/asahi/vulkan/hk_physical_device.c index 1c01bb2db7a..a364f5351b0 100644 --- a/src/asahi/vulkan/hk_physical_device.c +++ b/src/asahi/vulkan/hk_physical_device.c @@ -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; }