freedreno/ir3: Use the new NIR UBO ranges in UBO analysis.
authorEric Anholt <eric@anholt.net>
Fri, 14 Aug 2020 23:11:06 +0000 (16:11 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 8 Sep 2020 18:20:51 +0000 (18:20 +0000)
commitf74c3b0404c21568ec3621aad28f450c788ebfd4
treebf6b57b2366c28078194494094dd72fe7c512aae
parentf3b33a5a35e605101d45213bddf52f2f800a52bb
freedreno/ir3: Use the new NIR UBO ranges in UBO analysis.

Now that NIR doesn't lose the original base/range on the
nir_lower_uniforms_to_ubo() path, we get a lot more indirect arrays
uploaded in shader-db.

total instructions in shared programs: 8125988 -> 8103788 (-0.27%)
total constlen in shared programs: 1313096 -> 1448864 (10.34%)
total cat6 in shared programs: 104089 -> 97824 (-6.02%)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6359>
src/freedreno/ir3/ir3_nir_analyze_ubo_ranges.c