Refactor MemorySynchronizationCommands class

Related-To: NEO-4338

Change-Id: Id0ae9c73293fd99f53fccc11a69ca14fa9a6d119
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2020-04-26 21:48:59 +02:00
committed by sys_ocldev
parent 4bf503da12
commit b2210fa5bb
39 changed files with 407 additions and 194 deletions

View File

@@ -17,6 +17,8 @@
#include "opencl/source/helpers/hardware_commands_helper.h"
#include "pipe_control_args.h"
#include <algorithm>
namespace NEO {
@@ -147,7 +149,8 @@ void EncodeDispatchKernel<Family>::encode(CommandContainer &container,
bool flush = container.slmSize != slmSizeNew || container.isAnyHeapDirty();
if (flush) {
MemorySynchronizationCommands<Family>::addPipeControl(*container.getCommandStream(), true);
PipeControlArgs args(true);
MemorySynchronizationCommands<Family>::addPipeControl(*container.getCommandStream(), args);
if (container.slmSize != slmSizeNew) {
EncodeL3State<Family>::encode(container, slmSizeNew != 0u);