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

committed by
sys_ocldev

parent
bee2150c45
commit
e88371ceff
@ -612,4 +612,24 @@ bool CommandQueue::isBlockedCommandStreamRequired(uint32_t commandType, const Ev
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void CommandQueue::aubCaptureHook(bool &blocking, bool &clearAllDependencies, const MultiDispatchInfo &multiDispatchInfo) {
|
||||
if (DebugManager.flags.AUBDumpSubCaptureMode.get()) {
|
||||
auto status = getGpgpuCommandStreamReceiver().checkAndActivateAubSubCapture(multiDispatchInfo);
|
||||
if (!status.isActive) {
|
||||
// make each enqueue blocking when subcapture is not active to split batch buffer
|
||||
blocking = true;
|
||||
} else if (!status.wasActiveInPreviousEnqueue) {
|
||||
// omit timestamp packet dependencies dependencies upon subcapture activation
|
||||
clearAllDependencies = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (getGpgpuCommandStreamReceiver().getType() > CommandStreamReceiverType::CSR_HW) {
|
||||
for (auto &dispatchInfo : multiDispatchInfo) {
|
||||
auto kernelName = dispatchInfo.getKernel()->getKernelInfo().name;
|
||||
getGpgpuCommandStreamReceiver().addAubComment(kernelName.c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
} // namespace NEO
|
||||
|
Reference in New Issue
Block a user