intel: Enable Xe KMD support by default

Xe KMD landed on drm-next, uAPI is now stable and we can remove
the build time parameter to enable support to it but platforms
older than Lunar lake will have experimental support with Xe KMD.

Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20418>
This commit is contained in:
José Roberto de Souza
2024-01-04 11:55:18 -08:00
committed by Marge Bot
parent 97aec40111
commit 31920cb60c
4 changed files with 3 additions and 15 deletions

View File

@@ -1525,11 +1525,6 @@ if with_any_intel and ['x86', 'x86_64'].contains(host_machine.cpu_family())
pre_args += '-DSUPPORT_INTEL_INTEGRATED_GPUS'
endif
if get_option('intel-xe-kmd').enabled()
pre_args += '-DINTEL_XE_KMD_SUPPORTED'
endif
if with_gallium_i915 and host_machine.cpu_family().startswith('x86') == false
error('Intel "i915" Gallium driver requires x86 or x86_64 CPU family')
endif

View File

@@ -710,11 +710,4 @@ option(
description : 'Build custom xmlconfig (driconf) support. If disabled, ' +
'the default driconf file is hardcoded into Mesa. ' +
'Requires expat.'
)
option (
'intel-xe-kmd',
type : 'feature',
value : 'disabled',
description: 'Enable Intel Xe KMD support.'
)
)

View File

@@ -1693,6 +1693,8 @@ 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.");
break;
default:
ret = false;

View File

@@ -37,10 +37,8 @@ intel_get_kmd_type(int fd)
if (strcmp(version->name, "i915") == 0)
type = INTEL_KMD_TYPE_I915;
#ifdef INTEL_XE_KMD_SUPPORTED
else if (strcmp(version->name, "xe") == 0)
type = INTEL_KMD_TYPE_XE;
#endif
drmFreeVersion(version);
return type;