From 67370e29aa0cf0ae3d6111998721ffd07454e121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 18 Jun 2026 11:56:30 +0200 Subject: [PATCH] loader: Change incompatible driver warning to debug level Some Linux distros (at least Fedora 44) ship Mesa's Dozen driver, even though it's not compatible as is on Linux. So the loader would systematically warn about it, and Vulkan application users are confused by the message: ``` terminator_CreateInstance: Received return code -9 from call to vkCreateInstance in ICD /usr/lib64/libvulkan_dzn.so. Skipping this driver. ``` --- loader/loader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/loader/loader.c b/loader/loader.c index 62092e80f..6561ee60f 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -6023,7 +6023,8 @@ VKAPI_ATTR VkResult VKAPI_CALL terminator_CreateInstance(const VkInstanceCreateI res = VK_ERROR_OUT_OF_HOST_MEMORY; goto out; } else if (VK_SUCCESS != icd_result) { - loader_log(ptr_instance, VULKAN_LOADER_WARN_BIT, 0, + VkFlags log_level = VK_ERROR_INCOMPATIBLE_DRIVER == icd_result ? VULKAN_LOADER_DEBUG_BIT : VULKAN_LOADER_WARN_BIT; + loader_log(ptr_instance, log_level, 0, "terminator_CreateInstance: Received return code %i from call to vkCreateInstance in ICD %s. Skipping " "this driver.", icd_result, icd_term->scanned_icd->lib_name);