freedreno/ir3: handle imad24_ir3 case in UBO lowering
authorRob Clark <robdclark@chromium.org>
Tue, 8 Oct 2019 20:37:10 +0000 (13:37 -0700)
committerRob Clark <robdclark@chromium.org>
Fri, 18 Oct 2019 22:08:54 +0000 (15:08 -0700)
commit1cea76274e6dd4ed671a66d73b5d1eb3ea376b5a
treeac23caeb5d99c6f479d054c7df40f16571b89e05
parentd9424e582195635d913b458163f3eab95a7af307
freedreno/ir3: handle imad24_ir3 case in UBO lowering

Similiar to iadd, we can fold an added constant value from an imad24_ir3
into the load_uniform's constant offset.  This avoids some cases where
the addition of imad24_ir3 could otherwise be a regression in instr
count.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
src/freedreno/ir3/ir3_nir_analyze_ubo_ranges.c