aboutsummaryrefslogtreecommitdiffstats
path: root/src/freedreno
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2019-10-08 13:36:14 -0700
committerRob Clark <[email protected]>2019-10-18 15:08:54 -0700
commitd9424e582195635d913b458163f3eab95a7af307 (patch)
treebc5de55a9c95678f248997257a079ff814486bda /src/freedreno
parentc7b8f16beeb0266764e3f48606328d3b2b69a263 (diff)
freedreno/ir3: add imul24 opcode
This maps to mul.s24 Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]> Reviewed-by: Eduardo Lima Mitev <[email protected]>
Diffstat (limited to 'src/freedreno')
-rw-r--r--src/freedreno/ir3/ir3_compiler_nir.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/freedreno/ir3/ir3_compiler_nir.c b/src/freedreno/ir3/ir3_compiler_nir.c
index 5396cd219a7..1228fea5534 100644
--- a/src/freedreno/ir3/ir3_compiler_nir.c
+++ b/src/freedreno/ir3/ir3_compiler_nir.c
@@ -558,6 +558,9 @@ emit_alu(struct ir3_context *ctx, nir_alu_instr *alu)
case nir_op_imad24_ir3:
dst[0] = ir3_MAD_S24(b, src[0], 0, src[1], 0, src[2], 0);
break;
+ case nir_op_imul24:
+ dst[0] = ir3_MUL_S24(b, src[0], 0, src[1], 0);
+ break;
case nir_op_ineg:
dst[0] = ir3_ABSNEG_S(b, src[0], IR3_REG_SNEG);
break;