5e88a1caca
Configure a panfrost performance structure with tables of categories and counters for the current product id. An array for storing counter values read from the GPU is also managed by this structure. A generic read function can be used to retrieve the value of a counter from the conter values array. v2: Generate tables instead of calling register functions. v3: Simplify counter read function and `pan_gen_perf.py` write method. v4: Accumulate counter values from all cores. v5: Wrap `STATIC_ASSERT`s within unused functions. Signed-off-by: Antonio Caggiano <antonio.caggiano@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10844>