From 2207daf54953bc6c51087e5354055e9146bead75 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 2 Aug 2019 15:19:00 +0200 Subject: [PATCH] tgsi_to_nir: implement a few needed 64-bit integer opcodes MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit for internal radeonsi shaders v2 (Connor): - Split this out from the prep work, and rework the former - Add support for U64SNE Reviewed-by: Marek Olšák --- src/gallium/auxiliary/nir/tgsi_to_nir.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c b/src/gallium/auxiliary/nir/tgsi_to_nir.c index b4c4365de32..d2e054d7fc3 100644 --- a/src/gallium/auxiliary/nir/tgsi_to_nir.c +++ b/src/gallium/auxiliary/nir/tgsi_to_nir.c @@ -1715,6 +1715,11 @@ static const nir_op op_trans[TGSI_OPCODE_LAST] = { [TGSI_OPCODE_INTERP_CENTROID] = 0, /* XXX */ [TGSI_OPCODE_INTERP_SAMPLE] = 0, /* XXX */ [TGSI_OPCODE_INTERP_OFFSET] = 0, /* XXX */ + + [TGSI_OPCODE_U64ADD] = nir_op_iadd, + [TGSI_OPCODE_U64MUL] = nir_op_imul, + [TGSI_OPCODE_U64DIV] = nir_op_udiv, + [TGSI_OPCODE_U64SNE] = nir_op_ine, }; static void -- 2.30.2