diff options
author | José Fonseca <[email protected]> | 2009-08-04 12:09:52 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-08-29 09:21:23 +0100 |
commit | 1dd7bb17c7331f9ecd0bc830b61ada235a56fe6d (patch) | |
tree | 31508bde5eead960ba644ef4ef50d4bc526fc43d /src/gallium/drivers/llvmpipe/lp_bld_const.h | |
parent | a77084ea4b5801dc3ba52f33533176da926aed16 (diff) |
llvmpipe: Optimize blend swizzles by using bitmasks instead of shuffles for ubytes.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_bld_const.h')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_bld_const.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_const.h b/src/gallium/drivers/llvmpipe/lp_bld_const.h index f2e5deca944..98ed8911a55 100644 --- a/src/gallium/drivers/llvmpipe/lp_bld_const.h +++ b/src/gallium/drivers/llvmpipe/lp_bld_const.h @@ -61,4 +61,14 @@ lp_build_const_aos(union lp_type type, const unsigned char *swizzle); +LLVMValueRef +lp_build_const_shift(union lp_type type, + int c); + + +LLVMValueRef +lp_build_const_mask_aos(union lp_type type, + boolean cond[4]); + + #endif /* !LP_BLD_CONST_H */ |