Add new parameter to dispatch payload data

Change-Id: I0034c5a40de65a050e19691b13793b7053354757
This commit is contained in:
Zdanowicz, Zbigniew
2018-09-24 20:53:35 +02:00
committed by sys_ocldev
parent 5e3df9559a
commit 9e8a434464
6 changed files with 52 additions and 26 deletions

View File

@@ -553,6 +553,7 @@ void GpgpuWalkerHelper<GfxFamily>::dispatchScheduler(
// Send our indirect object data
size_t localWorkSizes[3] = {scheduler.getLws(), 1, 1};
size_t globalWorkSizes[3] = {scheduler.getGws(), 1, 1};
// Create indirectHeap for IOH that is located at the end of device enqueue DSH
size_t curbeOffset = devQueueHw.setSchedulerCrossThreadData(scheduler);
@@ -560,6 +561,7 @@ void GpgpuWalkerHelper<GfxFamily>::dispatchScheduler(
indirectObjectHeap.getSpace(curbeOffset);
ioh = &indirectObjectHeap;
bool localIdsGeneration = KernelCommandsHelper<GfxFamily>::isDispatchForLocalIdsGeneration(1, globalWorkSizes, localWorkSizes);
auto offsetCrossThreadData = KernelCommandsHelper<GfxFamily>::sendIndirectState(
*commandStream,
*dsh,
@@ -571,7 +573,8 @@ void GpgpuWalkerHelper<GfxFamily>::dispatchScheduler(
offsetInterfaceDescriptorTable,
interfaceDescriptorIndex,
preemptionMode,
nullptr);
nullptr,
localIdsGeneration);
// Implement enabling special WA DisableLSQCROPERFforOCL if needed
GpgpuWalkerHelper<GfxFamily>::applyWADisableLSQCROPERFforOCL(commandStream, scheduler, true);