Revert "fix: do not align to 64kb when requested alignment is bigger"

This reverts commit 33749b8b5a.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
Compute-Runtime-Validation
2025-07-15 13:26:49 +02:00
committed by Compute-Runtime-Automation
parent e4158208ae
commit 377b99e741
2 changed files with 1 additions and 32 deletions

View File

@@ -876,7 +876,7 @@ GraphicsAllocation *MemoryManager::allocateGraphicsMemory(const AllocationData &
if (allocationData.gpuAddress) {
return allocateGraphicsMemoryWithGpuVa(allocationData);
}
if (peek64kbPagesEnabled(allocationData.rootDeviceIndex) && allocationData.flags.allow64kbPages && MemoryConstants::pageSize64k >= allocationData.alignment) {
if (peek64kbPagesEnabled(allocationData.rootDeviceIndex) && allocationData.flags.allow64kbPages) {
return allocateGraphicsMemory64kb(allocationData);
}
return allocateGraphicsMemoryWithAlignment(allocationData);