Skip to content

Commit e3deda9

Browse files
Always add dcFlush before aux translation kernels
Change-Id: I4a9b0ec21365cc19532be74c9dc44d68c8fa0bfe Signed-off-by: Dunajski, Bartosz <[email protected]>
1 parent 5952d8f commit e3deda9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

runtime/built_ins/aux_translation_builtin.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ class BuiltInOp<EBuiltInOps::AuxTranslation> : public BuiltinDispatchInfoBuilder
3434

3535
if (kernelInstanceNumber == 0) {
3636
// Before Kernel
37-
bool dcFlush = (AuxTranslationDirection::AuxToNonAux == operationParams.auxTranslationDirection);
38-
registerPipeControlProgramming<GfxFamily>(builder.getDispatchInfo(0).dispatchInitCommands, dcFlush);
37+
registerPipeControlProgramming<GfxFamily>(builder.getDispatchInfo(0).dispatchInitCommands, true);
3938
}
4039
if (kernelInstanceNumber == numMemObjectsToTranslate - 1) {
4140
// After Kernel

unit_tests/command_queue/dispatch_walker_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1346,7 +1346,7 @@ HWTEST_F(DispatchWalkerTest, givenKernelWhenNonAuxToAuxWhenTranslationRequiredTh
13461346
bool dcFlushRequired = (executionEnvironment->getHardwareInfo()->platform.eRenderCoreFamily == IGFX_GEN8_CORE);
13471347

13481348
auto beginPipeControl = genCmdCast<typename FamilyType::PIPE_CONTROL *>(*(pipeControls[0]));
1349-
EXPECT_EQ(dcFlushRequired, beginPipeControl->getDcFlushEnable());
1349+
EXPECT_TRUE(beginPipeControl->getDcFlushEnable());
13501350
EXPECT_TRUE(beginPipeControl->getCommandStreamerStallEnable());
13511351

13521352
auto endPipeControl = genCmdCast<typename FamilyType::PIPE_CONTROL *>(*(pipeControls[1]));

0 commit comments

Comments
 (0)