mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
Change makeSurfacePackNonResident argument to a reference
Change-Id: Ic95ad2406184e91a78c152fad3fe6f0f4ebb24ae Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
4ea9f496d5
commit
41e8d70363
@@ -81,14 +81,13 @@ void CommandStreamReceiver::makeNonResident(GraphicsAllocation &gfxAllocation) {
|
||||
gfxAllocation.residencyTaskCount[deviceIndex] = ObjectNotResident;
|
||||
}
|
||||
|
||||
void CommandStreamReceiver::makeSurfacePackNonResident(ResidencyContainer *allocationsForResidency) {
|
||||
auto &residencyAllocations = allocationsForResidency ? *allocationsForResidency : this->getResidencyAllocations();
|
||||
void CommandStreamReceiver::makeSurfacePackNonResident(ResidencyContainer &allocationsForResidency) {
|
||||
this->waitBeforeMakingNonResidentWhenRequired();
|
||||
|
||||
for (auto &surface : residencyAllocations) {
|
||||
for (auto &surface : allocationsForResidency) {
|
||||
this->makeNonResident(*surface);
|
||||
}
|
||||
residencyAllocations.clear();
|
||||
allocationsForResidency.clear();
|
||||
this->processEviction();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user