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)
committerMarge Bot <emma+marge@anholt.net>
Thu, 17 Nov 2022 12:57:06 +0000 (12:57 +0000)
commit61fef1ed726b69b28ece60fb10bd5a65fcefb296
tree3cf6c5147a1e833957737ab8aa840a79cc8262fb
parent6c2e7797f55ea9e31ccbd2c5a45e5c8983d619ab
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>
src/intel/perf/intel_perf.c