From: Dave Airlie Date: Tue, 10 Dec 2019 04:41:55 +0000 (+1000) Subject: gallivm: add 64-bit const int creator. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=84ba008774967dcbc02d20cdfdeffde7fe1d85c5;p=mesa.git gallivm: add 64-bit const int creator. Acked-by: Roland Scheidegger --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_const.h b/src/gallium/auxiliary/gallivm/lp_bld_const.h index a4c3bf0977a..4e8f22073d5 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_const.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_const.h @@ -126,6 +126,11 @@ lp_build_const_int32(struct gallivm_state *gallivm, int i) return LLVMConstInt(LLVMInt32TypeInContext(gallivm->context), i, 0); } +static inline LLVMValueRef +lp_build_const_int64(struct gallivm_state *gallivm, int i) +{ + return LLVMConstInt(LLVMInt64TypeInContext(gallivm->context), i, 0); +} static inline LLVMValueRef lp_build_const_float(struct gallivm_state *gallivm, float x)