Mesa (master): gallivm: support negation on 64-bit integers

Nicolai Hähnle nh at kemper.freedesktop.org
Wed Sep 21 08:35:49 UTC 2016


Module: Mesa
Branch: master
Commit: 1f291369e430922821c6f9fe5d73998c0eb09501
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1f291369e430922821c6f9fe5d73998c0eb09501

Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date:   Thu Sep 15 12:17:56 2016 +0200

gallivm: support negation on 64-bit integers

This should be analogous to 32-bit integers.

Reviewed-by: Edward O'Callaghan <funfunctor at folklore1984.net>
Signed-off-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

---

 src/gallium/auxiliary/gallivm/lp_bld_tgsi.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi.c
index b397261..68ac695 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi.c
@@ -389,6 +389,10 @@ lp_build_emit_fetch(
       case TGSI_TYPE_UNSIGNED:
          res = lp_build_negate( &bld_base->int_bld, res );
          break;
+      case TGSI_TYPE_SIGNED64:
+      case TGSI_TYPE_UNSIGNED64:
+         res = lp_build_negate( &bld_base->int64_bld, res );
+         break;
       case TGSI_TYPE_VOID:
       default:
          assert(0);




More information about the mesa-commit mailing list