gallium/ttn: Add support for TGSI_OPCODE_I64NEG/ABS.

Found when converting AMD's built-in TGSI shaders to not using 64-bit src
mods.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8369>
This commit is contained in:
Eric Anholt 2021-01-08 16:22:57 -08:00 committed by Marge Bot
parent 8c7526afd2
commit ecaa7c3e39

View file

@ -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