mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Obtain completionStamp from enqueueCommandWithoutKernel
Change-Id: I045d4acc37a3c1d7376eaf87b1ed163c968f1266 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
cfe9a5a231
commit
be7087ec66
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user