freedreno/ir3: splitup get_existing_range()
authorRob Clark <robdclark@chromium.org>
Wed, 17 Jun 2020 16:59:19 +0000 (09:59 -0700)
committerMarge Bot <eric+marge@anholt.net>
Sun, 21 Jun 2020 00:52:02 +0000 (00:52 +0000)
commite0f93f68986cdee8afeeb2fb7c7fa57decfcfca3
tree6313bead2a53ca5bf5f5006830ce7473c79677cb
parentf2226acd74485905506f0efa545d91582dfe9afb
freedreno/ir3: splitup get_existing_range()

This serves two purposes, one during ubo range analysis, where we want
to create new ranges, and another during the actual ubo lowering.  Split
these in two, with read-only ubo analysis state in the second case, to
prepare to split this pass in two.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5526>
src/freedreno/ir3/ir3_nir_analyze_ubo_ranges.c