mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
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:
committed by
Compute-Runtime-Automation
parent
b2ea1d98e6
commit
228da24b38
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user