mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
Add support for batched dispatch to userspace AUBs
This commit as aimed to add support for batched dispatch, but doesn't make it the default mode for AubCSR yet. Change-Id: I4dc366ec5f01adf2c4793009da2100ba0230c60a
This commit is contained in:
committed by
sys_ocldev
parent
920d952a4a
commit
7c42353c4c
@@ -72,12 +72,16 @@ void CommandStreamReceiver::makeNonResident(GraphicsAllocation &gfxAllocation) {
|
||||
gfxAllocation.residencyTaskCount = ObjectNotResident;
|
||||
}
|
||||
|
||||
void CommandStreamReceiver::makeSurfacePackNonResident() {
|
||||
auto &surfacesForResidency = getMemoryManager()->getResidencyAllocations();
|
||||
for (auto &surface : surfacesForResidency) {
|
||||
void CommandStreamReceiver::makeSurfacePackNonResident(ResidencyContainer *allocationsForResidency) {
|
||||
auto &residencyAllocations = allocationsForResidency ? *allocationsForResidency : this->getMemoryManager()->getResidencyAllocations();
|
||||
for (auto &surface : residencyAllocations) {
|
||||
this->makeNonResident(*surface);
|
||||
}
|
||||
getMemoryManager()->clearResidencyAllocations();
|
||||
if (allocationsForResidency) {
|
||||
residencyAllocations.clear();
|
||||
} else {
|
||||
this->getMemoryManager()->clearResidencyAllocations();
|
||||
}
|
||||
this->processEviction();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user