freedreno/ir3: Replace our custom vec4 UBO intrinsic with the shared lowering.
authorEric Anholt <eric@anholt.net>
Tue, 18 Aug 2020 22:45:02 +0000 (15:45 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 24 Aug 2020 16:53:36 +0000 (09:53 -0700)
commit2b2524099379b96a6dbeab037a25cbf5d71da7df
treee2f7abe3ea8ae59c4f221158ece4a2c700ef55ff
parent73616598bd25764789f858fdadf7c6cd9dccb49c
freedreno/ir3: Replace our custom vec4 UBO intrinsic with the shared lowering.

This gets us fewer comparisons in the shaders that we need to optimize
back out, and reduces backend code.

total instructions in shared programs: 11547270 -> 7219930 (-37.48%)
total full in shared programs: 334268 -> 319602 (-4.39%)

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6378>
src/compiler/nir/nir_intrinsics.py
src/freedreno/ir3/ir3_compiler_nir.c
src/freedreno/ir3/ir3_nir.c
src/freedreno/ir3/ir3_nir_analyze_ubo_ranges.c
src/freedreno/ir3/ir3_nir_lower_io_offsets.c