mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
Pass root device index to all MockAllocationProperties constructors
Related-To: NEO-4512, NEO-3691 Change-Id: I631228191ca472e883b5233cb41ae8b6254588e9 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
b3553c36dc
commit
0f0a42de89
@@ -2015,7 +2015,7 @@ TEST(SharedBuffersTest, whenBuffersIsCreatedWithSharingHandlerThenItIsSharedBuff
|
||||
MockContext context;
|
||||
auto memoryManager = context.getDevice(0)->getMemoryManager();
|
||||
auto handler = new SharingHandler();
|
||||
auto graphicsAlloaction = memoryManager->allocateGraphicsMemoryWithProperties(MockAllocationProperties{MemoryConstants::pageSize});
|
||||
auto graphicsAlloaction = memoryManager->allocateGraphicsMemoryWithProperties(MockAllocationProperties{context.getDevice(0)->getRootDeviceIndex(), MemoryConstants::pageSize});
|
||||
auto buffer = Buffer::createSharedBuffer(&context, CL_MEM_READ_ONLY, handler, graphicsAlloaction);
|
||||
ASSERT_NE(nullptr, buffer);
|
||||
EXPECT_EQ(handler, buffer->peekSharingHandler());
|
||||
|
||||
Reference in New Issue
Block a user