gallivm: fix indirect addressing of constant buffer
[mesa.git] / src / gallium / auxiliary / gallivm / lp_bld_const.h
index 9ca2f0664ebe88f1bdf9607a403d2f227b0b4582..7ee8fff1407db33472416a78f203558a046bd39c 100644 (file)
@@ -84,6 +84,10 @@ LLVMValueRef
 lp_build_one(struct lp_type type);
 
 
+LLVMValueRef
+lp_build_const_elem(struct lp_type type,
+                    double val);
+
 LLVMValueRef
 lp_build_const_vec(struct lp_type type, double val);
 
@@ -103,4 +107,12 @@ lp_build_const_mask_aos(struct lp_type type,
                         const boolean cond[4]);
 
 
+static INLINE LLVMValueRef
+lp_build_const_int32(int i)
+{
+   return LLVMConstInt(LLVMInt32Type(), i, 0);
+}
+
+
+
 #endif /* !LP_BLD_CONST_H */