@@ -6628,11 +6628,18 @@ struct StandaloneInOrderTimestampAllocationTests : public InOrderCmdListTests {
6628
6628
};
6629
6629
6630
6630
HWTEST2_F (StandaloneInOrderTimestampAllocationTests, givenTimestampEventWhenAskingForAllocationOrGpuAddressThenReturnNodeAllocation, MatchAny) {
6631
- auto eventPool = createEvents<FamilyType>(1 , true );
6631
+ auto eventPool = createEvents<FamilyType>(2 , true );
6632
6632
6633
6633
auto cmdList = createImmCmdList<gfxCoreFamily>();
6634
6634
6635
+ EXPECT_FALSE (events[0 ]->hasInOrderTimestampNode ());
6636
+ EXPECT_FALSE (events[1 ]->hasInOrderTimestampNode ());
6637
+
6635
6638
cmdList->appendLaunchKernel (kernel->toHandle (), groupCount, events[0 ]->toHandle (), 0 , nullptr , launchParams, false );
6639
+ cmdList->appendLaunchKernel (kernel->toHandle (), groupCount, events[1 ]->toHandle (), 0 , nullptr , launchParams, false );
6640
+
6641
+ EXPECT_TRUE (events[0 ]->hasInOrderTimestampNode ());
6642
+ EXPECT_TRUE (events[1 ]->hasInOrderTimestampNode ());
6636
6643
6637
6644
EXPECT_NE (events[0 ]->inOrderTimestampNode ->getBaseGraphicsAllocation (), events[0 ]->eventPoolAllocation );
6638
6645
EXPECT_NE (nullptr , events[0 ]->inOrderTimestampNode ->getBaseGraphicsAllocation ());
@@ -6641,6 +6648,10 @@ HWTEST2_F(StandaloneInOrderTimestampAllocationTests, givenTimestampEventWhenAski
6641
6648
EXPECT_EQ (events[0 ]->inOrderTimestampNode ->getBaseGraphicsAllocation ()->getGraphicsAllocation (0 ), events[0 ]->getAllocation (device));
6642
6649
EXPECT_EQ (events[0 ]->inOrderTimestampNode ->getBaseGraphicsAllocation ()->getGraphicsAllocation (0 )->getGpuAddress (), events[0 ]->getGpuAddress (device));
6643
6650
EXPECT_EQ (events[0 ]->getGpuAddress (device) + events[0 ]->getCompletionFieldOffset (), events[0 ]->getCompletionFieldGpuAddress (device));
6651
+
6652
+ EXPECT_EQ (events[0 ]->getGpuAddress (device), events[0 ]->inOrderTimestampNode ->getGpuAddress ());
6653
+ EXPECT_EQ (events[1 ]->getGpuAddress (device), events[1 ]->inOrderTimestampNode ->getGpuAddress ());
6654
+ EXPECT_NE (events[0 ]->getGpuAddress (device), events[1 ]->getGpuAddress (device));
6644
6655
}
6645
6656
6646
6657
HWTEST2_F (StandaloneInOrderTimestampAllocationTests, givenNonWalkerCounterSignalingWhenPassedNonProfilingEventThenAssignAllocation, IsAtLeastXeHpCore) {
0 commit comments