freedreno/ir3: split ubo analysis/lowering passes
authorRob Clark <robdclark@chromium.org>
Wed, 17 Jun 2020 17:07:09 +0000 (10:07 -0700)
committerMarge Bot <eric+marge@anholt.net>
Sun, 21 Jun 2020 00:52:02 +0000 (00:52 +0000)
commit82815bc98036ec533788e3a62c0709541eeef0b8
tree9b67acc729710417ea7ded1c0a968b546cc09a4e
parente0f93f68986cdee8afeeb2fb7c7fa57decfcfca3
freedreno/ir3: split ubo analysis/lowering passes

Since binning pass variants share the same const_state with their
draw-pass counterpart, we should re-use the draw-pass variant's ubo
range analysis.  So split the two functions of the existing pass
into two parts.

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