performance: Optimize heap handling when mitigate dc flush

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2024-09-02 13:11:04 +00:00
committed by Compute-Runtime-Automation
parent c0cec096a5
commit 9249c5c65c
11 changed files with 53 additions and 14 deletions

View File

@@ -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) {