diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-08-07 01:18:49 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-08-29 09:21:23 +0100 |
commit | 138428badea350a20f5afc652a4fa1850e1ec653 (patch) | |
tree | 3bda721cd802240b4c0e4050410fafd008fa818f /src/gallium/drivers/llvmpipe/lp_bld_const.h | |
parent | 627d6a6b044b3916996cb9f50ce7f911f2196565 (diff) |
llvmpipe: Cleanup constant helpers.
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 |