mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
performance: Optimize heap handling when mitigate dc flush
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
c0cec096a5
commit
9249c5c65c
@@ -689,6 +689,10 @@ IndirectHeap &CommandStreamReceiver::getIndirectHeap(IndirectHeap::Type heapType
|
||||
internalAllocationStorage->storeAllocation(std::unique_ptr<GraphicsAllocation>(heapMemory), REUSABLE_ALLOCATION);
|
||||
heapMemory = nullptr;
|
||||
this->heapStorageRequiresRecyclingTag = true;
|
||||
|
||||
if (this->peekRootDeviceEnvironment().getProductHelper().isDcFlushMitigated()) {
|
||||
this->registerDcFlushForDcMitigation();
|
||||
}
|
||||
}
|
||||
|
||||
if (!heapMemory) {
|
||||
|
||||
Reference in New Issue
Block a user