From e08d0cc1651c3c791a3b2947ad829b5b1702c217 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Tue, 20 Apr 2010 13:58:45 +0200 Subject: gallivm: New function to fetch a pixel into a 4xfloat AoS vector. --- src/gallium/auxiliary/gallivm/lp_bld_format.h | 28 +++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) (limited to 'src/gallium/auxiliary/gallivm/lp_bld_format.h') diff --git a/src/gallium/auxiliary/gallivm/lp_bld_format.h b/src/gallium/auxiliary/gallivm/lp_bld_format.h index bb1298ed3f..13d0de875d 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_format.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_format.h @@ -42,16 +42,9 @@ struct util_format_description; struct lp_type; -boolean -lp_format_is_rgba8(const struct util_format_description *desc); - - -void -lp_build_format_swizzle_soa(const struct util_format_description *format_desc, - struct lp_type type, - const LLVMValueRef *unswizzled, - LLVMValueRef *swizzled); - +/* + * AoS + */ LLVMValueRef lp_build_unpack_rgba_aos(LLVMBuilderRef builder, @@ -71,6 +64,21 @@ lp_build_pack_rgba_aos(LLVMBuilderRef builder, const struct util_format_description *desc, LLVMValueRef rgba); +LLVMValueRef +lp_build_fetch_rgba_aos(LLVMBuilderRef builder, + const struct util_format_description *format_desc, + LLVMValueRef ptr); + + +/* + * SoA + */ + +void +lp_build_format_swizzle_soa(const struct util_format_description *format_desc, + struct lp_type type, + const LLVMValueRef *unswizzled, + LLVMValueRef *swizzled); void lp_build_unpack_rgba_soa(LLVMBuilderRef builder, -- cgit v1.2.3