From ecaa7c3e39424c6617752bd6561bf900d9da2d86 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 8 Jan 2021 16:22:57 -0800 Subject: [PATCH] gallium/ttn: Add support for TGSI_OPCODE_I64NEG/ABS. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found when converting AMD's built-in TGSI shaders to not using 64-bit src mods. Reviewed-by: Marek Olšák Part-of: --- src/gallium/auxiliary/nir/tgsi_to_nir.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c b/src/gallium/auxiliary/nir/tgsi_to_nir.c index 4eac81856f9..c8a6e0b9df9 100644 --- a/src/gallium/auxiliary/nir/tgsi_to_nir.c +++ b/src/gallium/auxiliary/nir/tgsi_to_nir.c @@ -1955,6 +1955,8 @@ static const nir_op op_trans[TGSI_OPCODE_LAST] = { [TGSI_OPCODE_U64MUL] = nir_op_imul, [TGSI_OPCODE_U64DIV] = nir_op_udiv, [TGSI_OPCODE_U64SNE] = nir_op_ine, + [TGSI_OPCODE_I64NEG] = nir_op_ineg, + [TGSI_OPCODE_I64ABS] = nir_op_iabs, }; static void