[Mesa-dev] [PATCH v2 6/6] gallivm: support negation on 64-bit integers

Nicolai Hähnle nhaehnle at gmail.com
Mon Sep 19 13:08:35 UTC 2016


From: Nicolai Hähnle <nicolai.haehnle at amd.com>

This should be analogous to 32-bit integers.
---
 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
@@ -382,20 +382,24 @@ lp_build_emit_fetch(
          res = lp_build_negate( &bld_base->base, res );
          break;
       case TGSI_TYPE_DOUBLE:
          /* no double build context */
          assert(0);
          break;
       case TGSI_TYPE_SIGNED:
       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);
          break;
       }
    }
 
    /*
     * Swizzle the argument
     */
-- 
2.7.4



More information about the mesa-dev mailing list