intel/perf: allow metric sets to be loaded with on OA reports
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 29 Apr 2021 08:28:30 +0000 (11:28 +0300)
committerMarge Bot <eric+marge@anholt.net>
Tue, 18 May 2021 14:28:48 +0000 (14:28 +0000)
commit5d95aa3964a766c57cf6ccb14b27de2ac51b209a
treec8a3f674b5da6ff452296df61e6fda5efa5472b7
parentfba189a349a5311be6247b8b8ced09e5a88fd48b
intel/perf: allow metric sets to be loaded with on OA reports

A bunch of performance counters rely on register snapshots on top of
the OA reports. Those are already conditional to the query mode in the
equations :

   availability="true $QueryMode &amp;&amp;"

This change allows to disable counters that are only available with
additional register snapshots. This will be useful if you only want to
OA reports to extract performance counter values.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Acked-by: Antonio Caggiano <antonio.caggiano@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10216>
src/gallium/drivers/iris/iris_monitor.c
src/gallium/drivers/iris/iris_performance_query.c
src/intel/perf/intel_perf.c
src/intel/perf/intel_perf.h
src/intel/vulkan/anv_perf.c
src/mesa/drivers/dri/i965/brw_performance_query.c