intel/dev: Provide a toggle to avoid warnings about unsupported devices

Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33282>
This commit is contained in:
Valentine Burley 2025-01-27 08:33:33 +01:00 committed by Marge Bot
parent fcd5d25888
commit 0d1fa0f1a3

View file

@ -1923,8 +1923,10 @@ intel_get_device_info_from_fd(int fd, struct intel_device_info *devinfo, int min
break;
case INTEL_KMD_TYPE_XE:
ret = intel_device_info_xe_get_info_from_fd(fd, devinfo);
if (devinfo->verx10 < 200)
mesa_logw("Support for this platform is experimental with Xe KMD, bug reports may be ignored.");
if (devinfo->verx10 < 200) {
if (!debug_get_bool_option("INTEL_XE_IGNORE_EXPERIMENTAL_WARNING", false))
mesa_logw("Support for this platform is experimental with Xe KMD, bug reports may be ignored.");
}
break;
default:
ret = false;