performance: do not free deferred allocations when not needed

Level Zero doesn't use deferred allocations so no point in paying the
price to check for them in cleanAllocationList.

Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
Michal Mrozek
2023-10-27 16:43:33 +00:00
committed by Compute-Runtime-Automation
parent 39cf653959
commit 80e3632c41
5 changed files with 9 additions and 6 deletions

View File

@@ -1265,6 +1265,7 @@ TaskCountType CommandStreamReceiverHw<GfxFamily>::flushBcsTask(const BlitPropert
if (blocking) {
const auto waitStatus = waitForTaskCountWithKmdNotifyFallback(newTaskCount, flushStampToWait, false, QueueThrottle::MEDIUM);
internalAllocationStorage->cleanAllocationList(newTaskCount, TEMPORARY_ALLOCATION);
internalAllocationStorage->cleanAllocationList(newTaskCount, DEFERRED_DEALLOCATION);
if (waitStatus == WaitStatus::GpuHang) {
return CompletionStamp::gpuHang;