mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 15:12:56 +08:00
fix: defer creation of IoctlHelperXe
create IoctlHelperXe within Drm::setupIoctlHelper Related-To: NEO-13527 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
b0b2f2fd07
commit
ac42206e0a
@@ -1959,13 +1959,10 @@ TEST_F(IoctlHelperXeTest, whenInitializeThenProperHwInfoIsSet) {
|
||||
|
||||
auto hwInfo = executionEnvironment->rootDeviceEnvironments[0]->getMutableHardwareInfo();
|
||||
|
||||
hwInfo->platform.usDeviceID = defaultHwInfo->platform.usDeviceID + 1;
|
||||
hwInfo->platform.usRevId = defaultHwInfo->platform.usRevId + 1;
|
||||
hwInfo->capabilityTable.gpuAddressSpace = 0;
|
||||
|
||||
ioctlHelper->initialize();
|
||||
EXPECT_EQ(defaultHwInfo->platform.usRevId, hwInfo->platform.usRevId);
|
||||
EXPECT_EQ(defaultHwInfo->platform.usDeviceID, hwInfo->platform.usDeviceID);
|
||||
|
||||
EXPECT_EQ((1ull << 48) - 1, hwInfo->capabilityTable.gpuAddressSpace);
|
||||
EXPECT_EQ(static_cast<uint32_t>(DrmMockXe::mockDefaultCxlType), hwInfo->capabilityTable.cxlType);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user