mesa/src/freedreno
Job Noorman 86f3c0c4c2 ir3: simplify constlen calculation
Instead of inferring constlen from the usage of const registers by
various instructions, we can calculate it directly from the const file
allocations. This greatly simplifies the calculation of constlen.

Note that the increase in constlen comes from a few binning variants.
This doesn't matter as the constlen of the corresponding non-binning
variant is used for those anyway.

Totals from 73 (0.04% of 176258) affected shaders:
Constlen: 3428 -> 3720 (+8.52%)

Signed-off-by: Job Noorman <jnoorman@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40929>
2026-04-13 19:15:59 +00:00
..
ci tu: Support EXT_shader_image_atomic_int64 2026-04-11 19:46:13 +00:00
common tu: Support EXT_shader_image_atomic_int64 2026-04-11 19:46:13 +00:00
computerator freedreno: Add fd{2,3,4,5}_hw.h and fd_hw_common.h 2026-04-10 13:54:59 +00:00
decode fd/replay: kgsl context should use no-fault tolerance, report reset state 2026-03-28 07:58:05 +00:00
drm freedreno: Add fd{2,3,4,5}_hw.h and fd_hw_common.h 2026-04-10 13:54:59 +00:00
drm-shim freedreno/common: add support for the Adreno 810 2026-04-10 01:24:59 +00:00
ds build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
fdl tu: Support EXT_shader_image_atomic_int64 2026-04-11 19:46:13 +00:00
ir2 freedreno: Add fd{2,3,4,5}_hw.h and fd_hw_common.h 2026-04-10 13:54:59 +00:00
ir3 ir3: simplify constlen calculation 2026-04-13 19:15:59 +00:00
isa ir3/isa: fix shift/reduce conflict for mova.r 2026-02-06 16:03:12 +00:00
perfcntrs freedreno: Add fd{2,3,4,5}_hw.h and fd_hw_common.h 2026-04-10 13:54:59 +00:00
qrisc freedreno: Rename afuc to QRisc 2026-03-08 22:32:39 +00:00
registers freedreno: Name GS/DS ViewID register fields 2026-04-09 20:34:58 +00:00
rnn freedreno/rnn: Track reg usage 2026-02-19 00:56:43 +00:00
tests freedreno: Add check_xml_includes test 2026-04-10 13:54:59 +00:00
vulkan tu: Add tracepoints for clear/copy/blit/lrz ops 2026-04-13 11:29:48 +00:00
.clang-format clang-format: Move ForEachMacros into src/.clang-format for freedreno 2025-09-09 07:04:55 +00:00
.dir-locals.el
.editorconfig
meson.build freedreno: Add check_xml_includes to meson setup 2026-04-10 13:54:59 +00:00