mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
[15/n] Internal 4GB allocator.
- Make resident on kernel ISA for blocked and non blocked path. Change-Id: I1fc4948f1abb73c6f7028ae15dccad820101b8dc
This commit is contained in:
committed by
sys_ocldev
parent
a1a20a3b34
commit
93fc48339b
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user