mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 15:03:02 +08:00
Move stamps allocators from memory manager to CSR.
Change-Id: Ib399e462cdddad89fcc470df4c4f0f5e4591a6b2
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user