nir: Add a new ALU nir_op_imad24_ir3
authorEduardo Lima Mitev <elima@igalia.com>
Fri, 28 Jun 2019 07:39:38 +0000 (09:39 +0200)
committerRob Clark <robdclark@chromium.org>
Fri, 18 Oct 2019 22:08:54 +0000 (15:08 -0700)
commit32e5fbf47cbe6cca136076c5b25bfe7208c0eec8
tree025069c57d413c487f91fe4dcb2bae5fd4f5e707
parent6ad442acae6c23397e3fd6dcd2fb8972f271e41f
nir: Add a new ALU nir_op_imad24_ir3

ir3 compiler has a signed integer multiply-add instruction (MAD_S24)
that is used for different offset calculations in the backend.
Since we intend to move some of these calculations to NIR, we need
a new ALU op that can directly represent it.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
src/compiler/nir/nir_opcodes.py