mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 02:18:05 +08:00
TagAllocator to accept multiple root devices
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
153cdf738e
commit
e53202e96b
@@ -856,10 +856,10 @@ HWTEST_TEMPLATED_F(BcsBufferTests, givenInputAndOutputTimestampPacketWhenBlitCal
|
||||
cl_int retVal = CL_SUCCESS;
|
||||
|
||||
auto memoryManager = bcsCsr->getMemoryManager();
|
||||
bcsCsr->timestampPacketAllocator = std::make_unique<TagAllocator<TimestampPackets<uint32_t>>>(device->getRootDeviceIndex(), memoryManager, 1,
|
||||
MemoryConstants::cacheLineSize,
|
||||
sizeof(TimestampPackets<uint32_t>),
|
||||
false, device->getDeviceBitfield());
|
||||
bcsCsr->timestampPacketAllocator = std::make_unique<MockTagAllocator<TimestampPackets<uint32_t>>>(device->getRootDeviceIndex(), memoryManager, 1,
|
||||
MemoryConstants::cacheLineSize,
|
||||
sizeof(TimestampPackets<uint32_t>),
|
||||
false, device->getDeviceBitfield());
|
||||
|
||||
auto buffer = clUniquePtr<Buffer>(Buffer::create(bcsMockContext.get(), CL_MEM_READ_WRITE, 1, nullptr, retVal));
|
||||
buffer->forceDisallowCPUCopy = true;
|
||||
|
||||
Reference in New Issue
Block a user