mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
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:
committed by
Compute-Runtime-Automation
parent
39cf653959
commit
80e3632c41
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user