projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41c77db
)
gallivm: add 64-bit const int creator.
author
Dave Airlie
<airlied@redhat.com>
Tue, 10 Dec 2019 04:41:55 +0000
(14:41 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Fri, 27 Dec 2019 03:22:35 +0000
(13:22 +1000)
Acked-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_const.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_const.h
b/src/gallium/auxiliary/gallivm/lp_bld_const.h
index a4c3bf0977ab7bca4107927401ab1474690a39fa..4e8f22073d5508bfba37717e053e4dcb13a0b895 100644
(file)
--- 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)