intel/perf: prep work to enable new perf counters
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 4 Jul 2019 17:34:28 +0000 (20:34 +0300)
committerMarge Bot <eric+marge@anholt.net>
Tue, 2 Feb 2021 13:25:54 +0000 (13:25 +0000)
commita6e980e9bf6c33f4166b423ead0d221c76c2bcde
treeb07f1cfdcb7d6c772d051aec78fe2ca8005e7a85
parent969f6efbc2f35fac9253a21fd3b64c0211573862
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>
src/intel/perf/gen_perf.c
src/intel/perf/gen_perf.h
src/intel/perf/gen_perf.py
src/intel/perf/gen_perf_mdapi.c
src/intel/perf/gen_perf_mdapi.h
src/intel/perf/gen_perf_query.c
src/intel/vulkan/anv_perf.c
src/intel/vulkan/genX_query.c