refactor: improve post sync handling and in-order unit tests

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2023-12-13 11:47:42 +00:00
committed by Compute-Runtime-Automation
parent 39561aa7e9
commit 1219c48620
18 changed files with 345 additions and 234 deletions

View File

@@ -63,6 +63,7 @@ HWTEST_F(CommandEncoderTests, givenDifferentInputParamsWhenCreatingInOrderExecIn
EXPECT_EQ(nullptr, inOrderExecInfo.getHostCounterAllocation());
EXPECT_FALSE(inOrderExecInfo.isHostStorageDuplicated());
EXPECT_FALSE(inOrderExecInfo.isRegularCmdList());
EXPECT_FALSE(inOrderExecInfo.isAtomicDeviceSignalling());
EXPECT_EQ(2u, inOrderExecInfo.getNumDevicePartitionsToWait());
EXPECT_EQ(2u, inOrderExecInfo.getNumHostPartitionsToWait());
EXPECT_EQ(0u, InOrderPatchCommandHelpers::getAppendCounterValue(inOrderExecInfo));
@@ -73,6 +74,7 @@ HWTEST_F(CommandEncoderTests, givenDifferentInputParamsWhenCreatingInOrderExecIn
InOrderExecInfo inOrderExecInfo(*deviceSyncAllocation, nullptr, memoryManager, 2, true, true);
EXPECT_TRUE(inOrderExecInfo.isRegularCmdList());
EXPECT_TRUE(inOrderExecInfo.isAtomicDeviceSignalling());
EXPECT_EQ(1u, inOrderExecInfo.getNumDevicePartitionsToWait());
EXPECT_EQ(2u, inOrderExecInfo.getNumHostPartitionsToWait());
}