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>
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;
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
};