mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +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
@@ -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(nullptr);
|
||||
this->makeSurfacePackNonResident(this->getResidencyAllocations());
|
||||
} else {
|
||||
auto commandBuffer = new CommandBuffer(device);
|
||||
commandBuffer->batchBuffer = batchBuffer;
|
||||
@@ -447,7 +447,7 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTask(
|
||||
this->submissionAggregator->recordCommandBuffer(commandBuffer);
|
||||
}
|
||||
} else {
|
||||
this->makeSurfacePackNonResident(nullptr);
|
||||
this->makeSurfacePackNonResident(this->getResidencyAllocations());
|
||||
}
|
||||
|
||||
//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);
|
||||
resourcePackage.clear();
|
||||
}
|
||||
this->totalMemoryUsed = 0;
|
||||
|
||||
Reference in New Issue
Block a user