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:
Dunajski, Bartosz
2023-05-24 15:23:48 +00:00
committed by Compute-Runtime-Automation
parent f8b375cae5
commit 814de81aca
16 changed files with 157 additions and 105 deletions

View File

@@ -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 &timestampPacketContainer) {
cacheFlushNodes.moveNodesToNewContainer(timestampPacketContainer);
previousEnqueueNodes.moveNodesToNewContainer(timestampPacketContainer);

View File

@@ -27,6 +27,7 @@ class TimestampPacketContainer : public NonCopyableClass {
void assignAndIncrementNodesRefCounts(const TimestampPacketContainer &inputTimestampPacketContainer);
void makeResident(CommandStreamReceiver &commandStreamReceiver);
void moveNodesToNewContainer(TimestampPacketContainer &timestampPacketContainer);
void releaseNodes();
protected:
StackVec<TagNodeBase *, 32u> timestampPacketNodes;