freedreno: Trim num_ubos to just the ones we haven't lowered to constbuf.
authorEric Anholt <eric@anholt.net>
Tue, 12 May 2020 23:07:50 +0000 (16:07 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 14 May 2020 00:10:43 +0000 (00:10 +0000)
commitab93a631b4c6c2c8d682d90649df69d3016e4722
tree71d86b01ebe5d984034974c535ecc5e0a6bc64b4
parentd5176c453e5fd74f6999d09e551bcbc771845e8f
freedreno: Trim num_ubos to just the ones we haven't lowered to constbuf.

With the upcoming LDC usage in the GL driver, we don't want to be
uploading descriptors for every UBO when they aren't actually in use.
Trimming NIR's num_ubos will avoid that, and cleans up num_ubo handling
elsewhere right now.

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