mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00

committed by
Compute-Runtime-Automation

parent
137959c647
commit
d29abb7955
@ -1078,7 +1078,7 @@ TEST_F(WddmMemoryManagerTest, GivenOffsetsWhenAllocatingGpuMemHostThenAllocatedO
|
||||
ASSERT_NE(nullptr, ptr);
|
||||
|
||||
size_t baseOffset = 1024;
|
||||
// misalligned buffer spanning accross 3 pages
|
||||
// misaligned buffer spanning across 3 pages
|
||||
auto *gpuAllocation = memoryManager->allocateGraphicsMemoryWithProperties(MockAllocationProperties{rootDeviceIndex, false, 2 * MemoryConstants::pageSize}, (char *)ptr + baseOffset);
|
||||
// Should be same cpu ptr and gpu ptr
|
||||
EXPECT_EQ((char *)ptr + baseOffset, gpuAllocation->getUnderlyingBuffer());
|
||||
|
Reference in New Issue
Block a user