From: Nicolai Hähnle Date: Thu, 15 Sep 2016 10:17:56 +0000 (+0200) Subject: gallivm: support negation on 64-bit integers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f291369e430922821c6f9fe5d73998c0eb09501;p=mesa.git gallivm: support negation on 64-bit integers This should be analogous to 32-bit integers. Reviewed-by: Edward O'Callaghan Signed-off-by: Nicolai Hähnle --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi.c index b3972610ffb..68ac6953829 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);