mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +08:00
[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:
committed by
Compute-Runtime-Automation
parent
0424f30782
commit
6df17f5a30
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user