Remove OCL Events concept from EnqueueOperation and dispatchWalker

Change-Id: Iec55b0be673a2a40b9621212add224a33d4abc5d
This commit is contained in:
Venevtsev, Igor
2019-01-25 10:20:32 +01:00
committed by sys_ocldev
parent e191c5876e
commit 5e8fb19e5d
12 changed files with 113 additions and 152 deletions

View File

@@ -24,8 +24,7 @@ template <typename GfxFamily>
void HardwareInterface<GfxFamily>::dispatchWalker(
CommandQueue &commandQueue,
const MultiDispatchInfo &multiDispatchInfo,
cl_uint numEventsInWaitList,
const cl_event *eventWaitList,
const CsrDependencies &csrDependencies,
KernelOperation **blockedCommandsData,
TagNode<HwTimeStamps> *hwTimeStamps,
HwPerfCounter *hwPerfCounter,
@@ -90,16 +89,7 @@ void HardwareInterface<GfxFamily>::dispatchWalker(
ssh = &getIndirectHeap<GfxFamily, IndirectHeap::SURFACE_STATE>(commandQueue, multiDispatchInfo);
}
if (commandQueue.getCommandStreamReceiver().peekTimestampPacketWriteEnabled()) {
CsrDependencies csrDeps;
csrDeps.fillFromEventsRequestAndMakeResident(EventsRequest(numEventsInWaitList, eventWaitList, nullptr),
commandQueue.getCommandStreamReceiver(), CsrDependencies::DependenciesType::OnCsr);
if (previousTimestampPacketNodes) {
csrDeps.push_back(previousTimestampPacketNodes);
}
TimestampPacketHelper::programCsrDependencies<GfxFamily>(*commandStream, csrDeps);
}
TimestampPacketHelper::programCsrDependencies<GfxFamily>(*commandStream, csrDependencies);
dsh->align(KernelCommandsHelper<GfxFamily>::alignInterfaceDescriptorData);