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:
Mateusz Jablonski
2024-12-18 14:03:21 +00:00
committed by Compute-Runtime-Automation
parent b0b2f2fd07
commit ac42206e0a
3 changed files with 5 additions and 11 deletions

View File

@@ -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);