Revert "Remove unnecessary flush in event profiling"

This reverts commit a0db607083.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:
Jaime Arteaga 2021-01-10 09:43:19 -08:00 committed by Compute-Runtime-Automation
parent 08655a315c
commit 5c9d43e618
2 changed files with 2 additions and 1 deletions

View File

@ -1536,6 +1536,7 @@ void CommandListCoreFamily<gfxCoreFamily>::appendEventForProfiling(ze_event_hand
} else {
NEO::PipeControlArgs args = {};
args.dcFlushEnable = true;
NEO::MemorySynchronizationCommands<GfxFamily>::addPipeControl(*commandContainer.getCommandStream(), args);
appendWriteKernelTimestamp(hEvent, beforeWalker, true);

View File

@ -337,7 +337,7 @@ HWTEST2_F(CommandListAppendLaunchKernel, givenTimestampEventsWhenAppendingKernel
{
auto cmd = genCmdCast<PIPE_CONTROL *>(*itor);
EXPECT_TRUE(cmd->getCommandStreamerStallEnable());
EXPECT_FALSE(cmd->getDcFlushEnable());
EXPECT_TRUE(cmd->getDcFlushEnable());
}
itor++;