[17/n] Internal 4GB allocator.

- Make sure that blocks ISA is made resident
- both blocked & non blocked path
- fix a bug where private surface was not made resident in blocked path.

Change-Id: Ie564595b176b94ecc7c79d7efeae20598c5874fb
This commit is contained in:
Mrozek, Michal
2018-03-27 09:24:26 +02:00
committed by sys_ocldev
parent 51fdd2a18f
commit 09923fcb39
6 changed files with 107 additions and 9 deletions

View File

@@ -306,14 +306,7 @@ void CommandQueueHw<GfxFamily>::enqueueHandler(Surface **surfacesForResidency,
// Update SLM usage
slmUsed |= scheduler.slmTotalSize > 0;
size_t count = parentKernel->getProgram()->getBlockKernelManager()->getCount();
for (uint32_t surfaceIndex = 0; surfaceIndex < count; surfaceIndex++) {
auto surface = parentKernel->getProgram()->getBlockKernelManager()->getPrivateSurface(surfaceIndex);
if (surface) {
commandStreamReceiver.makeResident(*surface);
}
}
parentKernel->getProgram()->getBlockKernelManager()->makeInternalAllocationsResident(commandStreamReceiver);
}
auto submissionRequired = isCommandWithoutKernel(commandType) ? false : true;