mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 17:13:29 +08:00
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:
committed by
Compute-Runtime-Automation
parent
83a9037640
commit
e722afbefb
@@ -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 ×tampPacketContainer : timestampPacketContainer) {
|
||||
newTimestampPacketContainer.assignAndIncrementNodesRefCounts(*timestampPacketContainer);
|
||||
}
|
||||
}
|
||||
} // namespace NEO
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user