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

Author: Nicolai Hähnle <nicolai.haeh...@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 <funfunc...@folklore1984.net>
Signed-off-by: Nicolai Hähnle <nicolai.haeh...@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);

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to