mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 09:03:14 +08:00
Refactor MemorySynchronizationCommands class
Related-To: NEO-4338 Change-Id: Id0ae9c73293fd99f53fccc11a69ca14fa9a6d119 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
4bf503da12
commit
b2210fa5bb
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user