From 3c1ee0aaa538837941e18942e1173ae0e9605a1a Mon Sep 17 00:00:00 2001 From: Compute-Runtime-Validation Date: Fri, 7 Jan 2022 07:39:35 +0100 Subject: [PATCH] Revert "Fix magic value used to skip odd packets for timestamps" This reverts commit 7968823b3c96cd65552b9752bb1ae5b1e1acaa45. Signed-off-by: Compute-Runtime-Validation --- level_zero/core/source/event/event_impl.inl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/level_zero/core/source/event/event_impl.inl b/level_zero/core/source/event/event_impl.inl index 443ee7a206..0d157f51d1 100644 --- a/level_zero/core/source/event/event_impl.inl +++ b/level_zero/core/source/event/event_impl.inl @@ -51,8 +51,6 @@ NEO::GraphicsAllocation &EventImp::getAllocation(Device *device) { template ze_result_t EventImp::calculateProfilingData() { - constexpr uint32_t skipL3EventPacketIndex = 2u; - globalStartTS = kernelEventCompletionData[0].getGlobalStartValue(0); globalEndTS = kernelEventCompletionData[0].getGlobalEndValue(0); contextStartTS = kernelEventCompletionData[0].getContextStartValue(0); @@ -60,7 +58,7 @@ ze_result_t EventImp::calculateProfilingData() { for (uint32_t i = 0; i < kernelCount; i++) { for (auto packetId = 0u; packetId < kernelEventCompletionData[i].getPacketsUsed(); packetId++) { - if (this->l3FlushWaApplied && ((packetId % skipL3EventPacketIndex) != 0)) { + if (this->l3FlushWaApplied && ((packetId % 2) != 0)) { continue; } if (globalStartTS > kernelEventCompletionData[i].getGlobalStartValue(packetId)) {