intel/dev: Add INTEL_KMD_TYPE_XE

As mentioned in the previous patch, if intel-xe-kmd is disabled
it will fail to detected in run time but it will still compile all
Xe files.

Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21368>
This commit is contained in:
José Roberto de Souza 2023-02-09 07:28:07 -08:00 committed by Marge Bot
parent 7d34ec4691
commit 545d7e07ca
2 changed files with 5 additions and 0 deletions

View file

@ -37,6 +37,10 @@ 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;

View file

@ -26,6 +26,7 @@
enum intel_kmd_type {
INTEL_KMD_TYPE_INVALID = 0,
INTEL_KMD_TYPE_I915,
INTEL_KMD_TYPE_XE,
INTEL_KMD_TYPE_STUB, /* Only used by ANV to run tests */
INTEL_KMD_TYPE_LAST
};