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 <jordan.l.justen@intel.com> Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31011>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user