mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 17:33:00 +08:00
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:
committed by
sys_ocldev
parent
2d7077e138
commit
bc4700a193
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user