mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 23:33:20 +08:00
fix: do not align to 64kb when requested alignment is bigger
Related-To: NEO-14082 Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4b9010b87d
commit
33749b8b5a
@@ -876,7 +876,7 @@ GraphicsAllocation *MemoryManager::allocateGraphicsMemory(const AllocationData &
|
||||
if (allocationData.gpuAddress) {
|
||||
return allocateGraphicsMemoryWithGpuVa(allocationData);
|
||||
}
|
||||
if (peek64kbPagesEnabled(allocationData.rootDeviceIndex) && allocationData.flags.allow64kbPages) {
|
||||
if (peek64kbPagesEnabled(allocationData.rootDeviceIndex) && allocationData.flags.allow64kbPages && MemoryConstants::pageSize64k >= allocationData.alignment) {
|
||||
return allocateGraphicsMemory64kb(allocationData);
|
||||
}
|
||||
return allocateGraphicsMemoryWithAlignment(allocationData);
|
||||
|
||||
Reference in New Issue
Block a user