Track waitlist TimestampPackets to avoid too early return to the pool

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2022-05-11 14:34:38 +00:00
committed by Compute-Runtime-Automation
parent 83a9037640
commit e722afbefb
5 changed files with 77 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2021 Intel Corporation
* Copyright (C) 2020-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -16,4 +16,10 @@ void CsrDependencies::makeResident(CommandStreamReceiver &commandStreamReceiver)
timestampPacketContainer->makeResident(commandStreamReceiver);
}
}
void CsrDependencies::copyNodesToNewContainer(TimestampPacketContainer &newTimestampPacketContainer) {
for (auto &timestampPacketContainer : timestampPacketContainer) {
newTimestampPacketContainer.assignAndIncrementNodesRefCounts(*timestampPacketContainer);
}
}
} // namespace NEO

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2021 Intel Corporation
* Copyright (C) 2020-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -25,5 +25,6 @@ class CsrDependencies {
StackVec<TimestampPacketContainer *, 32> timestampPacketContainer;
void makeResident(CommandStreamReceiver &commandStreamReceiver) const;
void copyNodesToNewContainer(TimestampPacketContainer &newTimestampPacketContainer);
};
} // namespace NEO