intel/perf: fix overflow in index types
authorMark Janes <markjanes@swizzler.org>
Fri, 17 Jun 2022 17:42:34 +0000 (10:42 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 17 Nov 2022 12:57:06 +0000 (12:57 +0000)
commite3a842d6272798d4515c61a9cc6fa2e0749ded01
treeb02634e38ec4fac47573bdebc78e574856d7cac8
parent777034690294aded758ec05a0b3aa1b1bd5e043a
intel/perf: fix overflow in index types

With DG2, the number of perf groups and metrics climbs into the
thousands.  16bit fields are not sufficient for storing metrics
indices, and the build throws warnings when compiling the generated
intel_perf_metrics.c

Use a 32bit integer for these values.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18893>
src/intel/perf/intel_perf_setup.h