intel/perf: update generated code to ralloc all data
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 2 Apr 2020 13:29:30 +0000 (16:29 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 20 May 2020 11:02:27 +0000 (14:02 +0300)
commit65d242ff5e57319c065cec4192dcec6237d60b91
treebaad483d4ebc8734fe09c64b26d59486762c8336
parenta683e7f3dc82fabee8ae88931d608ced6c1523ab
intel/perf: update generated code to ralloc all data

Previously counter descriptions as well register values were written
in global static variables. This isn't really thread safe so instead
ralloc all the data back under the gen_perf_config object.

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.py