mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 06:40:11 +01:00
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:
parent
7d34ec4691
commit
545d7e07ca
2 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue