mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
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:
committed by
Compute-Runtime-Automation
parent
e4158208ae
commit
377b99e741
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user