From b06b62bb133f2f4eb61cef950451d243543f860e Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Wed, 1 Jan 2025 14:57:46 +0100 Subject: [PATCH] panvk: Silence warning on incompatible DRM render devices This message is printed on non-panfrost/panthor systems on every physical device enumeration when panvk is present like in distribution mesa builds. This "breaks" gtk-4 tests in the default configuration since they fail on warning log messages. gtk-4 still forwards the vulkan debug report as warning messages after fixes for issue 11451 to stop handling it as critical message. Signed-off-by: Janne Grunau Reviewed-by: Erik Faye-Lund Fixes: d970fe2e9d6 ("panfrost: Add a Vulkan driver for Midgard/Bifrost GPUs") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11451 Part-of: --- src/panfrost/vulkan/panvk_physical_device.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/panfrost/vulkan/panvk_physical_device.c b/src/panfrost/vulkan/panvk_physical_device.c index b1a8403b123..bfa6a10a24e 100644 --- a/src/panfrost/vulkan/panvk_physical_device.c +++ b/src/panfrost/vulkan/panvk_physical_device.c @@ -68,9 +68,7 @@ create_kmod_dev(struct panvk_physical_device *device, if (strcmp(version->name, "panfrost") && strcmp(version->name, "panthor")) { drmFreeVersion(version); close(fd); - return panvk_errorf(instance, VK_ERROR_INCOMPATIBLE_DRIVER, - "device %s does not use the panfrost kernel driver", - path); + return VK_ERROR_INCOMPATIBLE_DRIVER; } drmFreeVersion(version);