Cleanup around Walker programming.

- remove redundant methods.
- remove redundant parameters.
- Simplify the logic of programWalker

Change-Id: I6112bb19fd0008530f5e5510238bf42e669379b7
This commit is contained in:
Mrozek, Michal
2019-01-14 09:18:02 +01:00
parent 15bfdc101f
commit 6c902faf0b
7 changed files with 20 additions and 72 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018 Intel Corporation
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -131,7 +131,6 @@ void GpgpuWalkerHelper<GfxFamily>::dispatchScheduler(
bool localIdsGenerationByRuntime = KernelCommandsHelper<GfxFamily>::isRuntimeLocalIdsGenerationRequired(1, globalWorkSizes, localWorkSizes);
bool inlineDataProgrammingRequired = KernelCommandsHelper<GfxFamily>::inlineDataProgrammingRequired(scheduler);
bool kernelUsesLocalIds = KernelCommandsHelper<GfxFamily>::kernelUsesLocalIds(scheduler);
KernelCommandsHelper<GfxFamily>::sendIndirectState(
*commandStream,
*dsh,
@@ -145,9 +144,7 @@ void GpgpuWalkerHelper<GfxFamily>::dispatchScheduler(
preemptionMode,
pGpGpuWalkerCmd,
nullptr,
localIdsGenerationByRuntime,
kernelUsesLocalIds,
inlineDataProgrammingRequired);
localIdsGenerationByRuntime);
// Implement enabling special WA DisableLSQCROPERFforOCL if needed
GpgpuWalkerHelper<GfxFamily>::applyWADisableLSQCROPERFforOCL(commandStream, scheduler, true);
@@ -188,11 +185,4 @@ void GpgpuWalkerHelper<GfxFamily>::setupTimestampPacket(
}
}
template <typename GfxFamily>
void GpgpuWalkerHelper<GfxFamily>::adjustWalkerData(LinearStream *commandStream,
WALKER_TYPE<GfxFamily> *walkerCmd,
const Kernel &kernel,
const DispatchInfo &dispatchInfo) {
}
} // namespace OCLRT