Mesa (master): gallium/ttn: Add support for TGSI_OPCODE_I64NEG/ABS.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jan 13 23:08:38 UTC 2021
Module: Mesa
Branch: master
Commit: ecaa7c3e39424c6617752bd6561bf900d9da2d86
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ecaa7c3e39424c6617752bd6561bf900d9da2d86
Author: Eric Anholt <eric at anholt.net>
Date: Fri Jan 8 16:22:57 2021 -0800
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 at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8369>
---
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
More information about the mesa-commit
mailing list