mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 23:56:39 +08:00
feature: clear standalone timestamp before submission
Related-To: HSD-18040896547 Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
8cf4804fcd
commit
5f6b2de3dc
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user