feature: clear standalone timestamp before submission

Related-To: HSD-18040896547

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2024-12-12 08:46:43 +00:00
committed by Compute-Runtime-Automation
parent 8cf4804fcd
commit 5f6b2de3dc
2 changed files with 4 additions and 4 deletions

View File

@@ -4066,7 +4066,7 @@ bool CommandListCoreFamily<gfxCoreFamily>::handleCounterBasedEventOperations(Eve
if (signalEvent->isUsingContextEndOffset() && Event::standaloneInOrderTimestampAllocationEnabled()) {
signalEvent->resetInOrderTimestampNode(device->getInOrderTimestampAllocator()->getTag());
if (NEO::debugManager.flags.ClearStandaloneInOrderTimestampAllocation.get() == 1) {
if (NEO::debugManager.flags.ClearStandaloneInOrderTimestampAllocation.get() != 0) {
signalEvent->hostEventSetValue(Event::STATE_INITIAL);
}
}

View File

@@ -1785,11 +1785,11 @@ HWTEST2_F(StandaloneInOrderTimestampAllocationTests, givenDebugFlagSetWhenAssign
cmdList->appendLaunchKernel(kernel->toHandle(), groupCount, events[0]->toHandle(), 0, nullptr, launchParams, false);
debugManager.flags.ClearStandaloneInOrderTimestampAllocation.set(1);
debugManager.flags.ClearStandaloneInOrderTimestampAllocation.set(0);
cmdList->appendLaunchKernel(kernel->toHandle(), groupCount, events[1]->toHandle(), 0, nullptr, launchParams, false);
EXPECT_EQ(123u, *tag0Data);
EXPECT_EQ(static_cast<uint32_t>(Event::STATE_INITIAL), *tag1Data);
EXPECT_EQ(456u, *tag1Data);
EXPECT_EQ(static_cast<uint32_t>(Event::STATE_INITIAL), *tag0Data);
}
HWTEST2_F(StandaloneInOrderTimestampAllocationTests, givenNonWalkerCounterSignalingWhenPassedNonProfilingEventThenAssignAllocation, IsAtLeastXeHpCore) {