Add debug flag to disable cache flush

Related-To: NEO-5144

Change-Id: I29590d840a641dfcf3fc4d099ca84f196c8fdc1f
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2020-09-30 15:06:42 +02:00
committed by sys_ocldev
parent 78feb47d6c
commit 5af3a46662
10 changed files with 129 additions and 19 deletions

View File

@@ -11,6 +11,8 @@
#include "opencl/source/helpers/hardware_commands_helper.h"
#include "opencl/source/kernel/kernel.h"
#include "pipe_control_args.h"
namespace NEO {
template <typename GfxFamily>
@@ -153,12 +155,8 @@ void HardwareCommandsHelper<GfxFamily>::setInterfaceDescriptorOffset(
template <typename GfxFamily>
void HardwareCommandsHelper<GfxFamily>::programCacheFlushAfterWalkerCommand(LinearStream *commandStream, const CommandQueue &commandQueue, const Kernel *kernel, uint64_t postSyncAddress) {
using PIPE_CONTROL = typename GfxFamily::PIPE_CONTROL;
auto pipeControl = commandStream->getSpaceForCmd<PIPE_CONTROL>();
PIPE_CONTROL cmd = GfxFamily::cmdInitPipeControl;
cmd.setCommandStreamerStallEnable(true);
cmd.setDcFlushEnable(true);
*pipeControl = cmd;
PipeControlArgs args(true);
MemorySynchronizationCommands<GfxFamily>::addPipeControl(*commandStream, args);
}
} // namespace NEO