Add OsContext argument to MemoryManager::makeNonResidentEvictionAllocations

OsContext has to propagate through following calls first:
- WddmCommandStreamReceiver<GfxFamily>::processEviction
- CommandStreamReceiver::makeSurfacePackNonResident

Change-Id: I7559c7406b2860c51905c9961cec251fac231b08
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
Maciej Dziuban
2018-10-03 17:48:59 +02:00
committed by sys_ocldev
parent 2d7077e138
commit bc4700a193
14 changed files with 28 additions and 28 deletions

View File

@@ -434,7 +434,7 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTask(
if (this->dispatchMode == DispatchMode::ImmediateDispatch) {
flushStamp->setStamp(this->flush(batchBuffer, engineType, this->getResidencyAllocations(), *device.getOsContext()));
this->latestFlushedTaskCount = this->taskCount + 1;
this->makeSurfacePackNonResident(this->getResidencyAllocations());
this->makeSurfacePackNonResident(this->getResidencyAllocations(), *device.getOsContext());
} else {
auto commandBuffer = new CommandBuffer(device);
commandBuffer->batchBuffer = batchBuffer;
@@ -447,7 +447,7 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTask(
this->submissionAggregator->recordCommandBuffer(commandBuffer);
}
} else {
this->makeSurfacePackNonResident(this->getResidencyAllocations());
this->makeSurfacePackNonResident(this->getResidencyAllocations(), *device.getOsContext());
}
//check if we are not over the budget, if we are do implicit flush
@@ -562,7 +562,7 @@ inline void CommandStreamReceiverHw<GfxFamily>::flushBatchedSubmissions() {
this->latestFlushedTaskCount = lastTaskCount;
this->flushStamp->setStamp(flushStamp);
this->makeSurfacePackNonResident(surfacesForSubmit);
this->makeSurfacePackNonResident(surfacesForSubmit, *device.getOsContext());
resourcePackage.clear();
}
this->totalMemoryUsed = 0;