freedreno: Only upload the used part of UBO0 to the constant buffer.
authorEric Anholt <eric@anholt.net>
Wed, 5 Jun 2019 22:15:07 +0000 (15:15 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 24 Jun 2019 21:23:07 +0000 (14:23 -0700)
commit5c4289dd4b3f37bc5b23b24069ee1137a6c1fa32
tree534ef272616b73aac2f5d0a2338220ef9907052f
parent852704976aa9b8ddbdc4fee83b95612f88189668
freedreno: Only upload the used part of UBO0 to the constant buffer.

We were pessimistically uploading all of it in case of indirection,
but we can just bump that when we encounter indirection.

total constlen in shared programs: 2529623 -> 2485933 (-1.73%)

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/freedreno/ir3/ir3_compiler_nir.c
src/freedreno/ir3/ir3_nir_analyze_ubo_ranges.c