intel/perf: query register descriptions
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 3 Sep 2020 07:52:34 +0000 (10:52 +0300)
committerMarge Bot <eric+marge@anholt.net>
Tue, 2 Feb 2021 13:25:54 +0000 (13:25 +0000)
commitf32d1bf5295ce420779b324c6935e68ac6ad8be4
treee0ccd966b10abe0be7e87c4182bd78edea63c52d
parenta6e980e9bf6c33f4166b423ead0d221c76c2bcde
intel/perf: query register descriptions

This will be useful when we implement queries using a series of MI_SRM
instead of MI_RPC.

Unfortunately on Gen12, the MI_RPC command sources values from the OAR
unit which has a similar series of register as the OAG unit but some
of the configuration of HW doesn't reach OAR so we have to snapshot
OAG manually instead.

v2: Fix comments
    Use const

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