nir/opt_algebraic: Fix rules for imadsh_mix16
authorEduardo Lima Mitev <elima@igalia.com>
Mon, 10 Jun 2019 19:38:39 +0000 (21:38 +0200)
committerEduardo Lima Mitev <elima@igalia.com>
Mon, 10 Jun 2019 20:27:46 +0000 (22:27 +0200)
commitfb2169040aa056220469a620cd24fa4cef145baf
tree9ae492e712a714eba2ff5ec0cd3fc2e50a616308
parente9703fb4162e85943c52b6559d3554b521125da4
nir/opt_algebraic: Fix rules for imadsh_mix16

The rules added in patch 3addd7c are inverted:

It should be:

(al * bh) << 16 + c

instead of:

(ah * bl) << 16 + c

Fixes a number of regressions under
dEQP-GLES31.functional.draw_indirect.compute_interop.large.*
on Freedreno.

Reviewed-by: Rob Clark <robdclark@gmail.com>
src/compiler/nir/nir_opt_algebraic.py