mesa/src/panfrost/perf
Alyssa Rosenzweig 6f3eea5ddb panfrost: Separate core ID range from core count
To query the core count, the hardware has a SHADERS_PRESENT register containing
a mask of shader cores connected. The core count equals the number of 1-bits,
regardless of placement. This value is useful for public consumption (like
in clinfo).

However, internally we are interested in the range of core IDs.
We usually query core count to determine how many cores to allocate various
per-core buffers for (performance counters, occlusion queries, and the stack).
In each case, the hardware writes at the index of its core ID, so we have to
allocate enough for entire range of core IDs. If the core mask is
discontiguous, this necessarily overallocates.

Rename the existing core_count to core_id_range, better reflecting its
definition and purpose, and repurpose core_count for the actual core count.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17265>
2022-07-08 01:14:55 +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
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
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 panfrost: Separate core ID range from core count 2022-07-08 01:14:55 +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