mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 17:33:00 +08:00
Refactor linear/tiled Images logic
Change-Id: I1deac70e95c6953645e9f52fb75f103b62927066 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
d4571d685a
commit
3e4dd67f09
@@ -673,6 +673,7 @@ TEST(OsAgnosticMemoryManager, givenHostPointerNotRequiringCopyWhenAllocateGraphi
|
||||
imgInfo.rowPitch = imgDesc.image_width * 4;
|
||||
imgInfo.slicePitch = imgInfo.rowPitch * imgDesc.image_height;
|
||||
imgInfo.size = imgInfo.slicePitch;
|
||||
imgInfo.linearStorage = true;
|
||||
|
||||
auto hostPtr = alignedMalloc(imgDesc.image_width * imgDesc.image_height * 4, MemoryConstants::pageSize);
|
||||
|
||||
@@ -1875,4 +1876,4 @@ TEST(MemoryManagerTest, givenMemoryManagerWhenGetReservedMemoryIsCalledManyTimes
|
||||
memoryManager.getReservedMemory(MemoryConstants::cacheLineSize, MemoryConstants::cacheLineSize);
|
||||
memoryManager.getReservedMemory(MemoryConstants::cacheLineSize, MemoryConstants::cacheLineSize);
|
||||
EXPECT_EQ(reservedMemory, memoryManager.reservedMemory);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user