mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 02:18:05 +08:00
feature: replace in-order sync allocation with TimestampPacket
Related-To: NEO-7966 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f8b375cae5
commit
814de81aca
@@ -51,6 +51,14 @@ void TimestampPacketContainer::moveNodesToNewContainer(TimestampPacketContainer
|
||||
timestampPacketContainer.assignAndIncrementNodesRefCounts(tempContainer);
|
||||
}
|
||||
|
||||
void TimestampPacketContainer::releaseNodes() {
|
||||
for (auto node : timestampPacketNodes) {
|
||||
node->returnTag();
|
||||
}
|
||||
|
||||
timestampPacketNodes.clear();
|
||||
}
|
||||
|
||||
void TimestampPacketDependencies::moveNodesToNewContainer(TimestampPacketContainer ×tampPacketContainer) {
|
||||
cacheFlushNodes.moveNodesToNewContainer(timestampPacketContainer);
|
||||
previousEnqueueNodes.moveNodesToNewContainer(timestampPacketContainer);
|
||||
|
||||
@@ -27,6 +27,7 @@ class TimestampPacketContainer : public NonCopyableClass {
|
||||
void assignAndIncrementNodesRefCounts(const TimestampPacketContainer &inputTimestampPacketContainer);
|
||||
void makeResident(CommandStreamReceiver &commandStreamReceiver);
|
||||
void moveNodesToNewContainer(TimestampPacketContainer ×tampPacketContainer);
|
||||
void releaseNodes();
|
||||
|
||||
protected:
|
||||
StackVec<TagNodeBase *, 32u> timestampPacketNodes;
|
||||
|
||||
Reference in New Issue
Block a user