mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 04:40:09 +01:00
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: 8750f43a90 ("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>
This commit is contained in:
parent
6c2e7797f5
commit
61fef1ed72
1 changed files with 2 additions and 1 deletions
|
|
@ -1128,7 +1128,8 @@ intel_perf_query_result_accumulate(struct intel_perf_query_result *result,
|
||||||
result->accumulator + query->a_offset + 32 + i);
|
result->accumulator + query->a_offset + 32 + i);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (can_use_mi_rpc_bc_counters(&query->perf->devinfo)) {
|
if (can_use_mi_rpc_bc_counters(&query->perf->devinfo) ||
|
||||||
|
!query->perf->sys_vars.query_mode) {
|
||||||
/* 8x 32bit B counters */
|
/* 8x 32bit B counters */
|
||||||
for (i = 0; i < 8; i++) {
|
for (i = 0; i < 8; i++) {
|
||||||
accumulate_uint32(start + 48 + i, end + 48 + i,
|
accumulate_uint32(start + 48 + i, end + 48 + i,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue