freedreno/ir3: cleanup "partially const" ubo srcs
authorRob Clark <robdclark@chromium.org>
Thu, 8 Aug 2019 22:09:23 +0000 (15:09 -0700)
committerRob Clark <robdclark@gmail.com>
Fri, 6 Sep 2019 00:13:44 +0000 (00:13 +0000)
commit50a91fbf87c346469a0cfa17f7742cdd2643893a
treefd7ce99b6959dc7c84dfdaf46439f865a97d4c44
parent17bb437ac226fe69470615575186eb2ab5b7461d
freedreno/ir3: cleanup "partially const" ubo srcs

Move the constant part of the indirect offset into nir intrinsic base.
When we have multiple indirect accesses with different constant offsets,
this lets other opt passes clean up things to use a single address
register value.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/freedreno/ir3/ir3_nir_analyze_ubo_ranges.c