[Mesa-dev] [PATCH 4/9] ir3_compiler/nir: Handle newly added opcode nir_op_imad24_ir3

Eduardo Lima Mitev elima at igalia.com
Wed Feb 13 21:29:51 UTC 2019


It simply emits an ir3_MAD_S24.
---
 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 df948995000..05dc5ef7cf6 100644
--- a/src/freedreno/ir3/ir3_compiler_nir.c
+++ b/src/freedreno/ir3/ir3_compiler_nir.c
@@ -548,6 +548,9 @@ emit_alu(struct ir3_context *ctx, nir_alu_instr *alu)
 					ir3_MADSH_M16(b, src[0], 0, src[1], 0,
 						ir3_MULL_U(b, src[0], 0, src[1], 0), 0), 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;
-- 
2.20.1



More information about the mesa-dev mailing list