From 1f291369e430922821c6f9fe5d73998c0eb09501 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolai=20H=C3=A4hnle?= Date: Thu, 15 Sep 2016 12:17:56 +0200 Subject: [PATCH] gallivm: support negation on 64-bit integers MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This should be analogous to 32-bit integers. Reviewed-by: Edward O'Callaghan Signed-off-by: Nicolai Hähnle --- 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); -- 2.7.4