From: Marek Olšák Date: Fri, 2 Aug 2019 13:19:00 +0000 (+0200) Subject: tgsi_to_nir: implement a few needed 64-bit integer opcodes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2207daf54953bc6c51087e5354055e9146bead75;p=mesa.git tgsi_to_nir: implement a few needed 64-bit integer opcodes 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 --- 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