[3/n] Optimize indirect allocations handling.

Add new debug variable to trigger new mode.

Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
Michal Mrozek
2022-01-25 13:24:45 +00:00
committed by Compute-Runtime-Automation
parent 0424f30782
commit 6df17f5a30
9 changed files with 103 additions and 9 deletions

View File

@@ -242,7 +242,10 @@ void DrmCommandStreamReceiver<GfxFamily>::makeNonResident(GraphicsAllocation &gf
gfxAllocation.fragmentsStorage.fragmentStorageData[fragmentId].residency->resident[osContext->getContextId()] = false;
}
}
gfxAllocation.releaseResidencyInOsContext(this->osContext->getContextId());
if (!gfxAllocation.isAlwaysResident(this->osContext->getContextId())) {
gfxAllocation.releaseResidencyInOsContext(this->osContext->getContextId());
}
}
template <typename GfxFamily>