intel/perf: Deduplicate perf counters
No changes in resulting code (yes, seriously!). GCC constant propagates the static const arrays into the code, yielding bit for bit identical results. This will however enable further cleanups. Before this patch, we emit 11916 different initializations of intel_perf_query_counter. With this patch we emit an array of 539 and initialize the intel_perf_query_counters in terms of those. Reviewed-by:Lionel Landwerlin <lionel.g.landwerlin@intel.com> (cherry picked from commit 5e6c7a57) Part-of: <mesa/mesa!16405>
Please register or sign in to comment