freedreno/ir3: use uniform base
authorRob Clark <robdclark@chromium.org>
Thu, 8 Aug 2019 21:31:50 +0000 (14:31 -0700)
committerRob Clark <robdclark@chromium.org>
Tue, 3 Sep 2019 21:10:57 +0000 (14:10 -0700)
commit1ef459297c7208ff6279557ccfd0dc702f8f99e1
tree5105a6f5a9183f3d7d860044f032320b535881ea
parent305bcdf9921a0684e5dfca19dc42e849f3f2246c
freedreno/ir3: use uniform base

When lowering from ubo, use the constant base field in the load_uniform
instruction for the constant part of the offset.  Doesn't change much
for constant indexing, but this will help for indirect indexing because
constant-folding can't completely clean up the result.

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