mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 15:03:02 +08:00
Obtain new TimestampPacket before releasing old node
Change-Id: I243d50e32967a0accea2d73fdd5ff4935bc03449 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
049ba5c625
commit
7ec0989eea
@@ -599,9 +599,10 @@ void CommandQueue::dispatchAuxTranslation(MultiDispatchInfo &multiDispatchInfo,
|
||||
void CommandQueue::obtainNewTimestampPacketNode() {
|
||||
auto allocator = device->getMemoryManager()->getTimestampPacketAllocator();
|
||||
|
||||
if (timestampPacketNode) {
|
||||
allocator->returnTag(timestampPacketNode);
|
||||
}
|
||||
auto oldNode = timestampPacketNode;
|
||||
timestampPacketNode = allocator->getTag();
|
||||
if (oldNode) {
|
||||
allocator->returnTag(oldNode);
|
||||
}
|
||||
}
|
||||
} // namespace OCLRT
|
||||
|
||||
Reference in New Issue
Block a user