Revert "Fix magic value used to skip odd packets for timestamps"

This reverts commit 7968823b3c.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
Compute-Runtime-Validation
2022-01-07 07:39:35 +01:00
committed by Compute-Runtime-Automation
parent 02f075c541
commit 3c1ee0aaa5

View File

@@ -51,8 +51,6 @@ NEO::GraphicsAllocation &EventImp<TagSizeT>::getAllocation(Device *device) {
template <typename TagSizeT>
ze_result_t EventImp<TagSizeT>::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<TagSizeT>::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)) {