performance: align alloc size to 2MB on XeKMD/iGPU

Related-To: NEO-15905

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
Szymon Morek
2025-08-25 13:22:55 +00:00
committed by Compute-Runtime-Automation
parent b2ea1d98e6
commit 228da24b38
9 changed files with 101 additions and 3 deletions

View File

@@ -1896,4 +1896,18 @@ bool IoctlHelperXe::retrieveMmapOffsetForBufferObject(BufferObject &bo, uint64_t
return true;
}
bool IoctlHelperXe::is2MBSizeAlignmentRequired(AllocationType allocationType) const {
if (debugManager.flags.Disable2MBSizeAlignment.get()) {
return false;
}
auto &rootDeviceEnvironment = drm.getRootDeviceEnvironment();
auto hwInfo = rootDeviceEnvironment.getHardwareInfo();
auto memoryManager = rootDeviceEnvironment.executionEnvironment.memoryManager.get();
if (hwInfo->capabilityTable.isIntegratedDevice) {
return memoryManager->isExternalAllocation(allocationType);
}
return false;
}
} // namespace NEO