intel/perf: fix B/C counters accumulation in non query mode
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 28 Jun 2022 14:20:02 +0000 (14:20 +0000)
committerEric Engestrom <eric@engestrom.ch>
Wed, 23 Nov 2022 19:11:58 +0000 (19:11 +0000)
commitd6b2c77fac5c07e41a289af772ef3d0410532e21
treed3b39eb7184e0647e8cdd1a28bf75bcad5f9597f
parent84ada12002501014c29bec4e2ecf5cc2bcc919a6
intel/perf: fix B/C counters accumulation in non query mode

When we're not using queries, all the counters from the
MI_REPORT_PERF_COUNT are available. This is the case when using
perfetto with the global pps datasource that capture global counter
values.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 8750f43a9077 ("intel/perf: add performance query layout using MI_SRM")
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18893>
(cherry picked from commit 61fef1ed726b69b28ece60fb10bd5a65fcefb296)
.pick_status.json
src/intel/perf/intel_perf.c