diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-10-25 09:09:23 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-10-25 09:53:49 +0000 |
commit | 47d241be9ff89b65b978dd4fe4ea7473e07fa2c4 (patch) | |
tree | ba8344b150ff7b4e7e00060dcf7708f692b7e7dd /src/gallium/drivers/llvmpipe/lp_bld_format.h | |
parent | abff4214ef870f26d5c64adac1235b9e9438a51e (diff) |
llvmpipe: New function to unpack rgba8 formats into 4 x u8n AoS.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_bld_format.h')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_bld_format.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_format.h b/src/gallium/drivers/llvmpipe/lp_bld_format.h index 8b08c016c0..fa560576be 100644 --- a/src/gallium/drivers/llvmpipe/lp_bld_format.h +++ b/src/gallium/drivers/llvmpipe/lp_bld_format.h @@ -49,24 +49,19 @@ lp_build_format_swizzle_soa(const struct util_format_description *format_desc, LLVMValueRef *swizzled); -/** - * Unpack a pixel into its RGBA components. - * - * @param packed integer. - * - * @return RGBA in a 4 floats vector. - */ LLVMValueRef lp_build_unpack_rgba_aos(LLVMBuilderRef builder, const struct util_format_description *desc, LLVMValueRef packed); -/** - * Pack a pixel. - * - * @param rgba 4 float vector with the unpacked components. - */ +LLVMValueRef +lp_build_unpack_rgba8_aos(LLVMBuilderRef builder, + const struct util_format_description *desc, + struct lp_type type, + LLVMValueRef packed); + + LLVMValueRef lp_build_pack_rgba_aos(LLVMBuilderRef builder, const struct util_format_description *desc, |