Add missing makeResident call on debug surface.

Change-Id: I9c2d1bcf608dbfc71a3859b237e249d41810c153
This commit is contained in:
Mrozek, Michal
2018-11-15 16:08:22 +01:00
committed by sys_ocldev
parent a49b1950eb
commit b102f8556e
2 changed files with 6 additions and 1 deletions

View File

@@ -394,6 +394,9 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTask(
if (dispatchFlags.preemptionMode == PreemptionMode::MidThread || device.isSourceLevelDebuggerActive()) {
auto sipType = SipKernel::getSipKernelType(device.getHardwareInfo().pPlatform->eRenderCoreFamily, device.isSourceLevelDebuggerActive());
makeResident(*device.getExecutionEnvironment()->getBuiltIns()->getSipKernel(sipType, device).getSipAllocation());
if (debugSurface) {
makeResident(*debugSurface);
}
}
if (experimentalCmdBuffer.get() != nullptr) {