mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
refactor: include xe header in dedicated namespace
avoid redefinition issue in case of integrating multiple xe drm versions define mock drm xe in inl file to provide xe definitions for mock members Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ee2a688323
commit
07a11e640f
@@ -26,10 +26,9 @@
|
||||
#include "shared/source/os_interface/linux/memory_info.h"
|
||||
#include "shared/source/os_interface/linux/os_context_linux.h"
|
||||
#include "shared/source/os_interface/linux/sys_calls.h"
|
||||
#include "shared/source/os_interface/linux/xe/xedrm.h"
|
||||
#include "shared/source/os_interface/os_time.h"
|
||||
|
||||
#include "xe_drm.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
#include <limits>
|
||||
@@ -178,7 +177,10 @@ bool IoctlHelperXe::initialize() {
|
||||
hwInfo->platform.usRevId = static_cast<int>((config->info[DRM_XE_QUERY_CONFIG_REV_AND_DEVICE_ID] >> 16) & 0xff);
|
||||
hwInfo->capabilityTable.gpuAddressSpace = (1ull << config->info[DRM_XE_QUERY_CONFIG_VA_BITS]) - 1;
|
||||
|
||||
hwInfo->capabilityTable.cxlType = getCxlType(config);
|
||||
hwInfo->capabilityTable.cxlType = 0;
|
||||
if (getCxlType() && config->num_params > *getCxlType()) {
|
||||
hwInfo->capabilityTable.cxlType = static_cast<uint32_t>(config->info[*getCxlType()]);
|
||||
}
|
||||
|
||||
queryGtListData = queryData<uint64_t>(DRM_XE_DEVICE_QUERY_GT_LIST);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user