intel/perf: add helper to compute metrics from counters
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 5 Oct 2018 16:31:11 +0000 (17:31 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 20 May 2020 11:02:27 +0000 (14:02 +0300)
commitc36933e0818ade16cb9d29b91c7d4f0068f7af39
tree0514100c9d6a8ba18afbc0b183e92d88c0090e11
parenta7890f559b34e5a97689f16f0f1cdb1651fc4de7
intel/perf: add helper to compute metrics from counters

The produced array tells use what metric to enable for a given pass.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2775>
src/intel/perf/gen_perf.c
src/intel/perf/gen_perf.h