Mesa (master): freedreno/ir3: Handle newly added opcode nir_op_imad24_ir3

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Oct 18 22:35:00 UTC 2019


Module: Mesa
Branch: master
Commit: bc2ccdc45ab6de74d72412244984b4551ece855c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bc2ccdc45ab6de74d72412244984b4551ece855c

Author: Eduardo Lima Mitev <elima at igalia.com>
Date:   Fri Jun 28 09:43:03 2019 +0200

freedreno/ir3: Handle newly added opcode nir_op_imad24_ir3

Simply emit an ir3_MAD_S24 instruction in the backend.

Signed-off-by: Rob Clark <robdclark at chromium.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg at google.com>
Reviewed-by: Eduardo Lima Mitev <elima at igalia.com>

---

 src/freedreno/ir3/ir3_compiler_nir.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/freedreno/ir3/ir3_compiler_nir.c b/src/freedreno/ir3/ir3_compiler_nir.c
index c1501d81b90..5396cd219a7 100644
--- a/src/freedreno/ir3/ir3_compiler_nir.c
+++ b/src/freedreno/ir3/ir3_compiler_nir.c
@@ -555,6 +555,9 @@ emit_alu(struct ir3_context *ctx, nir_alu_instr *alu)
 	case nir_op_imadsh_mix16:
 		dst[0] = ir3_MADSH_M16(b, src[0], 0, src[1], 0, src[2], 0);
 		break;
+	case nir_op_imad24_ir3:
+		dst[0] = ir3_MAD_S24(b, src[0], 0, src[1], 0, src[2], 0);
+		break;
 	case nir_op_ineg:
 		dst[0] = ir3_ABSNEG_S(b, src[0], IR3_REG_SNEG);
 		break;




More information about the mesa-commit mailing list