Move stamps allocators from memory manager to CSR.

Change-Id: Ib399e462cdddad89fcc470df4c4f0f5e4591a6b2
This commit is contained in:
Piotr Fusik
2018-11-27 13:07:41 +01:00
committed by sys_ocldev
parent 2d77b86e70
commit 87bb6afa56
20 changed files with 159 additions and 228 deletions

View File

@@ -82,7 +82,7 @@ CommandQueue::CommandQueue(Context *context,
if (device) {
engine = &device->getEngine(engineId);
if (getCommandStreamReceiver().peekTimestampPacketWriteEnabled()) {
timestampPacketContainer = std::make_unique<TimestampPacketContainer>(device->getMemoryManager());
timestampPacketContainer = std::make_unique<TimestampPacketContainer>();
}
}
}
@@ -580,9 +580,7 @@ void CommandQueue::dispatchAuxTranslation(MultiDispatchInfo &multiDispatchInfo,
}
void CommandQueue::obtainNewTimestampPacketNodes(size_t numberOfNodes, TimestampPacketContainer &previousNodes) {
auto preferredPoolSize = getCommandStreamReceiver().getPreferredTagPoolSize();
auto allocator = device->getMemoryManager()->obtainTimestampPacketAllocator(preferredPoolSize);
auto allocator = getCommandStreamReceiver().getTimestampPacketAllocator();
previousNodes.swapNodes(*timestampPacketContainer);
previousNodes.resolveDependencies(isOOQEnabled());

View File

@@ -198,7 +198,7 @@ void CommandQueueHw<GfxFamily>::enqueueHandler(Surface **surfacesForResidency,
blocking = true;
}
TimestampPacketContainer previousTimestampPacketNodes(device->getMemoryManager());
TimestampPacketContainer previousTimestampPacketNodes;
EventsRequest eventsRequest(numEventsInWaitList, eventWaitList, event);
if (multiDispatchInfo.empty() == false) {