Change default state of CSR.

Change-Id: I1124ff538de37736996d4cae3e827950b1022a8f
Signed-off-by: Sebastian Luzynski <sebastian.jozef.luzynski@intel.com>
This commit is contained in:
Sebastian Luzynski
2020-09-29 11:58:15 +02:00
committed by sys_ocldev
parent 214342f405
commit 8093400baf
3 changed files with 8 additions and 1 deletions

View File

@ -1125,6 +1125,12 @@ HWTEST_F(CommandStreamReceiverTest, givenDebugPauseThreadWhenTerminatingAtFirstS
EXPECT_EQ(0u, output.length());
}
HWTEST_F(CommandStreamReceiverTest, whenCreatingCommandStreamReceiverThenLastAddtionalKernelExecInfoValueIsCorrect) {
int32_t executionStamp = 0;
std::unique_ptr<MockCsr<FamilyType>> mockCSR(new MockCsr<FamilyType>(executionStamp, *pDevice->executionEnvironment, pDevice->getRootDeviceIndex()));
EXPECT_EQ(AdditionalKernelExecInfo::NotSet, mockCSR->lastAdditionalKernelExecInfo);
}
HWTEST_F(CommandStreamReceiverTest, givenDebugPauseThreadWhenTerminatingAtSecondStageThenFunctionEndsCorrectly) {
DebugManagerStateRestore restore;
DebugManager.flags.PauseOnEnqueue.set(0);

View File

@ -89,6 +89,7 @@ class MockCsr : public MockCsrBase<GfxFamily> {
public:
using BaseClass = MockCsrBase<GfxFamily>;
using CommandStreamReceiver::mediaVfeStateDirty;
using MockCsrBase<GfxFamily>::lastAdditionalKernelExecInfo;
MockCsr() = delete;
MockCsr(const HardwareInfo &hwInfoIn) = delete;