From f817870aa923f21734cb950c1190a1fa2a81fb4b Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Wed, 4 Sep 2024 00:33:40 -0700 Subject: [PATCH] anv: Don't warn about unsupported devices if INTEL_FORCE_PROBE was used The user must have used INTEL_FORCE_PROBE to force the device to be loaded, so they specifically opted-in to enabled unsupported device support. Signed-off-by: Jordan Justen Reviewed-by: Sagar Ghuge Part-of: --- src/intel/vulkan/anv_physical_device.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/intel/vulkan/anv_physical_device.c b/src/intel/vulkan/anv_physical_device.c index 6fffa0177b0..50ba46b8983 100644 --- a/src/intel/vulkan/anv_physical_device.c +++ b/src/intel/vulkan/anv_physical_device.c @@ -2257,6 +2257,10 @@ anv_physical_device_try_create(struct vk_instance *vk_instance, /* Silently fail here, hasvk should pick up this device. */ result = VK_ERROR_INCOMPATIBLE_DRIVER; goto fail_fd; + } else if (devinfo.probe_forced) { + /* If INTEL_FORCE_PROBE was used, then the user has opted-in for + * unsupported device support. No need to print a warning message. + */ } else if (devinfo.ver > 20) { result = vk_errorf(instance, VK_ERROR_INCOMPATIBLE_DRIVER, "Vulkan not yet supported on %s", devinfo.name);