intel/perf: prep work to enable new perf counters
Those are not part of the OA reports and need some additional scaffolding. Those counters are only available when doing queries as we need to emit MI_SRMs to record them. Equations making use of those counters are not there yet, they will come in a follow up commit updating a bunch of oa-*.xml files. v2: Fix typo v3: Use PERF_CNT_VALUE_MASK (Marcin) Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6518>
This commit is contained in:

committed by
Marge Bot

parent
969f6efbc2
commit
a6e980e9bf
@@ -421,13 +421,13 @@ anv_perf_write_pass_results(struct gen_perf_config *perf,
|
||||
results[c].uint64 =
|
||||
counter_pass->counter->oa_counter_read_uint64(perf,
|
||||
counter_pass->query,
|
||||
accumulated_results->accumulator);
|
||||
accumulated_results);
|
||||
break;
|
||||
case GEN_PERF_COUNTER_DATA_TYPE_FLOAT:
|
||||
results[c].float32 =
|
||||
counter_pass->counter->oa_counter_read_float(perf,
|
||||
counter_pass->query,
|
||||
accumulated_results->accumulator);
|
||||
accumulated_results);
|
||||
break;
|
||||
default:
|
||||
/* So far we aren't using uint32, double or bool32... */
|
||||
|
Reference in New Issue
Block a user