intel/perf: Move perf query register programming to static tables.
authorEric Anholt <eric@anholt.net>
Thu, 9 Jul 2020 16:41:45 +0000 (09:41 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 17 Jul 2020 17:44:17 +0000 (17:44 +0000)
commitd735f075a6aae821c06de1c82a5ebe4430b94674
tree903ac419a02eae175bd1eef0fe6c482693830f32
parentd4e56930c25dec3bfb7fc590df45904e41216b25
intel/perf: Move perf query register programming to static tables.

And now that they're static tables, we don't need to ralloc a copy in
non-shared memory.

Saves ~210k in the built intel drivers.

Bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1048434
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5829>
src/intel/perf/gen_perf.c
src/intel/perf/gen_perf.h
src/intel/perf/gen_perf.py
src/intel/perf/gen_perf_private.h