diff options
author | Ashutosh Dixit <ashutosh.dixit@intel.com> | 2024-05-10 10:04:50 -0700 |
---|---|---|
committer | Ashutosh Dixit <ashutosh.dixit@intel.com> | 2024-05-10 14:13:02 -0700 |
commit | 86712f2effc8ba6690c7e165ad63904416763b75 (patch) | |
tree | d8617e606da5921f81132548d0b0925d9ddc3c8e | |
parent | 4a5fd4e7cb2798636f6464e2bd61399f3242b322 (diff) | |
download | igt-gpu-tools-upstream-master.tar.gz |
lib/i915/perf: Accumulate clocks for MPEC format tooupstream-master
Clocks/gpu_ticks should also be accumulated in intel_perf_accumulate_reports.
Fixes: cbe11c2939f8 ("lib/i915/perf: Add support for select MPEC formats")
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
-rw-r--r-- | lib/i915/perf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/i915/perf.c b/lib/i915/perf.c index bbfa36060..9333edfeb 100644 --- a/lib/i915/perf.c +++ b/lib/i915/perf.c @@ -928,7 +928,7 @@ void intel_perf_accumulate_reports(struct intel_perf_accumulator *acc, deltas[idx++] += (end64[1] - start64[1]) >> (-perf->devinfo.oa_timestamp_shift); /* 64 bit clock */ - deltas[idx++] = end64[3] - start64[3]; + deltas[idx++] += end64[3] - start64[3]; /* 8x 32bit MPEC counters */ for (i = 0; i < 8; i++) |