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>
(cherry picked from commit 31920cb60c)
This commit is contained in:
José Roberto de Souza 2024-01-04 11:55:18 -08:00 committed by Eric Engestrom
parent cbbf9d781b
commit 066c61c748
5 changed files with 4 additions and 16 deletions

View File

@ -15094,7 +15094,7 @@
"description": "intel: Enable Xe KMD support by default",
"nominated": false,
"nomination_type": 3,
"resolution": 4,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View File

@ -1523,11 +1523,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

@ -682,11 +682,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

@ -1667,6 +1667,8 @@ intel_get_device_info_from_fd(int fd, struct intel_device_info *devinfo)
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;