WSL - fixing alignment for 32bit path

Signed-off-by: Jaroslaw Chodor <jaroslaw.chodor@intel.com>
This commit is contained in:
Jaroslaw Chodor
2021-10-26 20:31:59 +02:00
committed by Compute-Runtime-Automation
parent be2f8dc4b9
commit 4b7811d061
2 changed files with 20 additions and 0 deletions

View File

@@ -346,6 +346,8 @@ GraphicsAllocation *WddmMemoryManager::allocate32BitGraphicsMemoryImpl(const All
return nullptr;
}
ptrAligned = pSysMem;
} else {
sizeAligned = alignUp(sizeAligned, MemoryConstants::allocationAlignment);
}
auto wddmAllocation = std::make_unique<WddmAllocation>(allocationData.rootDeviceIndex,