mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
refactor: improve post sync handling and in-order unit tests
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
39561aa7e9
commit
1219c48620
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user