Fix gpu address alignment for SVM CPU allocations

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2021-06-09 08:03:22 +00:00
committed by Compute-Runtime-Automation
parent 52f736c048
commit 13632ebbc9
2 changed files with 18 additions and 7 deletions

View File

@@ -3896,6 +3896,8 @@ TEST_F(DrmMemoryManagerTest, givenSvmCpuAllocationWhenSizeAndAlignmentProvidedTh
EXPECT_EQ(reinterpret_cast<void *>(allocation->getGpuAddress()), alignUp(allocation->getReservedAddressPtr(), allocationData.alignment));
EXPECT_EQ(alignUp(allocationData.size, allocationData.alignment) + allocationData.alignment, allocation->getReservedAddressSize());
EXPECT_GT(allocation->getReservedAddressSize(), bo->peekSize());
memoryManager->freeGraphicsMemory(allocation);
}