Obtain completionStamp from enqueueCommandWithoutKernel

Change-Id: I045d4acc37a3c1d7376eaf87b1ed163c968f1266
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2019-06-18 14:04:23 +02:00
committed by sys_ocldev
parent cfe9a5a231
commit be7087ec66

View File

@ -247,7 +247,7 @@ void CommandQueueHw<GfxFamily>::enqueueHandler(Surface **surfacesForResidency,
}
}
CompletionStamp completionStamp;
CompletionStamp completionStamp = {Event::eventNotReady, taskLevel, 0};
if (!blockQueue) {
if (parentKernel) {
processDeviceEnqueue(parentKernel, devQueueHw, multiDispatchInfo, hwTimeStamps, preemption, blocking);
@ -293,7 +293,7 @@ void CommandQueueHw<GfxFamily>::enqueueHandler(Surface **surfacesForResidency,
}
}
} else if (isCacheFlushCommand(commandType)) {
enqueueCommandWithoutKernel(
completionStamp = enqueueCommandWithoutKernel(
surfacesForResidency,
numSurfaceForResidency,
commandStream,
@ -325,9 +325,6 @@ void CommandQueueHw<GfxFamily>::enqueueHandler(Surface **surfacesForResidency,
eventBuilder.getEvent()->setStartTimeStamp();
}
}
} else {
CompletionStamp cmplStamp = {Event::eventNotReady, taskLevel, 0};
completionStamp = cmplStamp;
}
updateFromCompletionStamp(completionStamp);