mesa/src/panfrost/perf
Alyssa Rosenzweig 10a2406232 pan/perf: Fix performance counters on G57
The performance counter layout depends on the number of L2 blocks and the number
of shader cores. It doesn't make a ton of sense to hardcode these into the XML
files. Instead, let's make the coutner offsets in the XML files relative to the
categories (blocks), so we can calculate the offsets of the categories
themselves at runtime based on the computed layout. This fixes performance
counters on Mali-G57 as implemented on MT8192.

There is little code change here, mainly churn from changing the XML definition.
Postprocessing for the XML to make it suitable for Mesa uses Antonio Caggiano's
https://gitlab.freedesktop.org/panfrost/hwc-helper tool.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Antonio Caggiano <antonio.caggiano@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16803>
2022-06-08 13:57:18 +00:00
..
G31.xml pan/perf: Fix performance counters on G57 2022-06-08 13:57:18 +00:00
G51.xml pan/perf: Fix performance counters on G57 2022-06-08 13:57:18 +00:00
G52.xml pan/perf: Fix performance counters on G57 2022-06-08 13:57:18 +00:00
G57.xml pan/perf: Fix performance counters on G57 2022-06-08 13:57:18 +00:00
G68.xml pan/perf: Fix performance counters on G57 2022-06-08 13:57:18 +00:00
G71.xml pan/perf: Fix performance counters on G57 2022-06-08 13:57:18 +00:00
G72.xml pan/perf: Fix performance counters on G57 2022-06-08 13:57:18 +00:00
G76.xml pan/perf: Fix performance counters on G57 2022-06-08 13:57:18 +00:00
G77.xml pan/perf: Fix performance counters on G57 2022-06-08 13:57:18 +00:00
G78.xml pan/perf: Fix performance counters on G57 2022-06-08 13:57:18 +00:00
meson.build panfrost: Add a performance counter dump utility 2021-07-09 23:15:28 +00:00
pan_gen_perf.py pan/perf: Fix performance counters on G57 2022-06-08 13:57:18 +00:00
pan_perf.c pan/perf: Fix performance counters on G57 2022-06-08 13:57:18 +00:00
pan_perf.h pan/perf: Fix performance counters on G57 2022-06-08 13:57:18 +00:00
quick.c panfrost: Add a performance counter dump utility 2021-07-09 23:15:28 +00:00
T72x.xml pan/perf: Fix performance counters on G57 2022-06-08 13:57:18 +00:00
T76x.xml pan/perf: Fix performance counters on G57 2022-06-08 13:57:18 +00:00
T82x.xml pan/perf: Fix performance counters on G57 2022-06-08 13:57:18 +00:00
T83x.xml pan/perf: Fix performance counters on G57 2022-06-08 13:57:18 +00:00
T86x.xml pan/perf: Fix performance counters on G57 2022-06-08 13:57:18 +00:00
T88x.xml pan/perf: Fix performance counters on G57 2022-06-08 13:57:18 +00:00