diff --git a/level_zero/core/source/cmdlist/cmdlist_hw.inl b/level_zero/core/source/cmdlist/cmdlist_hw.inl index 503d030f63..b40be3c95c 100644 --- a/level_zero/core/source/cmdlist/cmdlist_hw.inl +++ b/level_zero/core/source/cmdlist/cmdlist_hw.inl @@ -4066,7 +4066,7 @@ bool CommandListCoreFamily::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); } } diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_in_order_cmdlist_2.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_in_order_cmdlist_2.cpp index 6a0086b0f3..058471f460 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_in_order_cmdlist_2.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_in_order_cmdlist_2.cpp @@ -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(Event::STATE_INITIAL), *tag1Data); + EXPECT_EQ(456u, *tag1Data); + EXPECT_EQ(static_cast(Event::STATE_INITIAL), *tag0Data); } HWTEST2_F(StandaloneInOrderTimestampAllocationTests, givenNonWalkerCounterSignalingWhenPassedNonProfilingEventThenAssignAllocation, IsAtLeastXeHpCore) {