[15/n] Internal 4GB allocator.

- Make resident on kernel ISA for blocked and non blocked path.

Change-Id: I1fc4948f1abb73c6f7028ae15dccad820101b8dc
This commit is contained in:
Mrozek, Michal
2018-03-13 10:44:35 +01:00
committed by sys_ocldev
parent a1a20a3b34
commit 93fc48339b
8 changed files with 48 additions and 22 deletions

View File

@@ -941,6 +941,11 @@ void Kernel::makeResident(CommandStreamReceiver &commandStreamReceiver) {
makeArgsResident(commandStreamReceiver);
auto kernelIsaAllocation = this->kernelInfo.kernelAllocation;
if (kernelIsaAllocation) {
commandStreamReceiver.makeResident(*kernelIsaAllocation);
}
gtpinNotifyMakeResident(this, &commandStreamReceiver);
}
@@ -980,6 +985,12 @@ void Kernel::getResidency(std::vector<Surface *> &dst) {
}
}
auto kernelIsaAllocation = this->kernelInfo.kernelAllocation;
if (kernelIsaAllocation) {
GeneralSurface *surface = new GeneralSurface(kernelIsaAllocation);
dst.push_back(surface);
}
gtpinNotifyUpdateResidencyList(this, &dst);
}