On TGLLP DepthCacheFlush in PC has to be set together with DepthStall

Change-Id: I8d19f1d2de513ad559c565bf1fc4308912b9ee64
Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
This commit is contained in:
Pawel Wilma 2020-05-26 15:09:50 +02:00 committed by sys_ocldev
parent 99b0f04cc0
commit 7183d30096
2 changed files with 3 additions and 0 deletions

View File

@ -68,6 +68,7 @@ void PreambleHelper<TGLLPFamily>::addPipeControlBeforeVfeCmd(LinearStream *pComm
if (!EngineHelpers::isCcs(engineType)) {
cmd.setRenderTargetCacheFlushEnable(true);
cmd.setDepthCacheFlushEnable(true);
cmd.setDepthStallEnable(true);
}
cmd.setDcFlushEnable(true);
}

View File

@ -70,6 +70,7 @@ TGLLPTEST_F(Gen12LpPreambleVfeState, WaOff) {
const auto &pc = *reinterpret_cast<PIPE_CONTROL *>(*itorPC);
EXPECT_FALSE(pc.getRenderTargetCacheFlushEnable());
EXPECT_FALSE(pc.getDepthCacheFlushEnable());
EXPECT_FALSE(pc.getDepthStallEnable());
EXPECT_FALSE(pc.getDcFlushEnable());
EXPECT_EQ(1u, pc.getCommandStreamerStallEnable());
}
@ -108,6 +109,7 @@ TGLLPTEST_F(Gen12LpPreambleVfeState, givenRcsEngineWhenWaIsSetThenAppropriatePip
const auto &pc = *reinterpret_cast<PIPE_CONTROL *>(*itorPC);
EXPECT_TRUE(pc.getRenderTargetCacheFlushEnable());
EXPECT_TRUE(pc.getDepthCacheFlushEnable());
EXPECT_TRUE(pc.getDepthStallEnable());
EXPECT_TRUE(pc.getDcFlushEnable());
EXPECT_EQ(1u, pc.getCommandStreamerStallEnable());
}