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>
49 jobs for !2157 with wip/addr-calc-v2 in 22 minutes and 41 seconds (queued for 4 seconds)
detached
Status Job ID Name Coverage
  Container
passed #775062
debian-10

00:00:21

passed #775063
debian-9

00:00:20

passed #775061
lava-container:arm64

00:00:20

passed #775060
lava-container:armhf

00:00:16

passed #775064
aarch64
test-container:arm64

00:00:19

 
  Build
passed #775066
lava-build:arm64

00:03:00

passed #775065
lava-build:armhf

00:04:20

passed #775069
meson-arm64

00:05:36

passed #775068
meson-armhf

00:04:07

passed #775071
meson-clang

00:07:13

passed #775074
meson-clover

00:06:09

passed #775075
meson-clover-old-llvm

00:04:48

passed #775077
meson-i386

00:04:07

passed #775067
meson-main

00:10:35

passed #775078
meson-mingw32-x86_64

00:04:37

passed #775070
meson-swr-glvnd

00:02:46

passed #775076
meson-vulkan

00:03:29

passed #775079
scons

00:08:28

passed #775080
scons-old-llvm

00:05:31

passed #775072
scons-swr

00:06:05

passed #775073
scons-win64

00:05:51

 
  Test
passed #775105
db410c
arm64_a306_gles2 1/4

00:15:45

passed #775106
db410c
arm64_a306_gles2 2/4

00:16:37

passed #775107
db410c
arm64_a306_gles2 3/4

00:12:28

passed #775108
db410c
arm64_a306_gles2 4/4

00:03:45

passed #775094
mesa-cheza
arm64_a630_gles2

00:03:53

passed #775095
mesa-cheza
arm64_a630_gles31 1/4

00:04:11

passed #775096
mesa-cheza
arm64_a630_gles31 2/4

00:04:42

passed #775097
mesa-cheza
arm64_a630_gles31 3/4

00:04:42

passed #775098
mesa-cheza
arm64_a630_gles31 4/4

00:04:38

passed #775099
mesa-cheza
arm64_a630_gles3 1/6

00:03:01

passed #775100
mesa-cheza
arm64_a630_gles3 2/6

00:03:33

passed #775101
mesa-cheza
arm64_a630_gles3 3/6

00:03:25

passed #775102
mesa-cheza
arm64_a630_gles3 4/6

00:03:32

passed #775103
mesa-cheza
arm64_a630_gles3 5/6

00:03:19

passed #775104
mesa-cheza
arm64_a630_gles3 6/6

00:03:41

passed #775084
lava-meson-gxl-s905x-libretech-cc
lima-test:arm64

00:05:12

passed #775083
lava-sun8i-h3-libretech-all-h3-cc
lima-test:armhf

00:06:40

passed #775081
lava-rk3288-veyron-jaq
panfrost-t760-test:armhf

00:05:34

passed #775082
lava-rk3399-gru-kevin
panfrost-t860-test:arm64

00:06:35

passed #775085
test-llvmpipe-gles2 1/4

00:03:17

passed #775086
test-llvmpipe-gles2 2/4

00:03:27

passed #775087
test-llvmpipe-gles2 3/4

00:03:25

passed #775088
test-llvmpipe-gles2 4/4

00:03:17

passed #775089
test-softpipe-gles2 1/4

00:01:28

passed #775090
test-softpipe-gles2 2/4

00:01:32

passed #775091
test-softpipe-gles2 3/4

00:01:20

passed #775092
test-softpipe-gles2 4/4

00:01:25

passed #775093
test-softpipe-gles3-limited

00:03:47