summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2016-09-15 12:17:56 +0200
committerNicolai Hähnle <[email protected]>2016-09-21 10:24:50 +0200
commit1f291369e430922821c6f9fe5d73998c0eb09501 (patch)
tree35ef9525f354ae6a4914c6ec601c199ced1f552f /src/gallium/auxiliary
parent4207612f9ce1ff8cf40bc14c54f2a1d655366e3b (diff)
gallivm: support negation on 64-bit integers
This should be analogous to 32-bit integers. Reviewed-by: Edward O'Callaghan <[email protected]> Signed-off-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_tgsi.c4
1 files changed, 4 insertions, 0 deletions
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);