diff options
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_bld_const.h')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_bld_const.h | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_const.h b/src/gallium/drivers/llvmpipe/lp_bld_const.h index 98ed8911a5..ed6b185fce 100644 --- a/src/gallium/drivers/llvmpipe/lp_bld_const.h +++ b/src/gallium/drivers/llvmpipe/lp_bld_const.h @@ -39,10 +39,20 @@ #include <llvm-c/Core.h> +#include <pipe/p_compiler.h> + union lp_type type; +unsigned +lp_const_shift(union lp_type type); + + +double +lp_const_scale(union lp_type type); + + LLVMValueRef lp_build_undef(union lp_type type); @@ -56,14 +66,19 @@ lp_build_one(union lp_type type); LLVMValueRef -lp_build_const_aos(union lp_type type, - double r, double g, double b, double a, - const unsigned char *swizzle); +lp_build_const_uni(union lp_type type, + double val); + + +LLVMValueRef +lp_build_int_const_uni(union lp_type type, + long long val); LLVMValueRef -lp_build_const_shift(union lp_type type, - int c); +lp_build_const_aos(union lp_type type, + double r, double g, double b, double a, + const unsigned char *swizzle); LLVMValueRef |