freedreno/ir3: add missing track_ubo_use()
authorRob Clark <robdclark@chromium.org>
Wed, 29 Jul 2020 15:37:29 +0000 (08:37 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Jul 2020 20:22:05 +0000 (20:22 +0000)
commitba9d502d246ec408761f6d44c6a3fde227ef87a6
tree125cd8c8e0db9992a759a548762cc22377911d08
parentd0e32e5f8105eccd075ebbf42594100ed663fd6e
freedreno/ir3: add missing track_ubo_use()

We could lower *some* accesses to a UBO but not others.  In this case,
we would have a valid range, but would have skipped tracking that the
UBO is accessed as a UBO rather than push constants.

Fixes one issue with asphalt9, that was a result of having `ldc` without
having emit UBO state.

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