diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-10-22 20:58:35 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-10-25 09:53:48 +0000 |
commit | 232b5864647d4c8d6cebb0845c046f1612e6054d (patch) | |
tree | b4d36358468df18b81e1049619f61efb1ff35ec5 /src/gallium/drivers/llvmpipe/lp_bld_format_aos.c | |
parent | b4f6907b8d8a966df56c06155049c52dadea105f (diff) |
llvmpipe: Eliminate lp_build_load_rgba_aos.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_bld_format_aos.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_bld_format_aos.c | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_format_aos.c b/src/gallium/drivers/llvmpipe/lp_bld_format_aos.c index b9b5d84bed5..840e54e558b 100644 --- a/src/gallium/drivers/llvmpipe/lp_bld_format_aos.c +++ b/src/gallium/drivers/llvmpipe/lp_bld_format_aos.c @@ -33,10 +33,9 @@ LLVMValueRef lp_build_unpack_rgba_aos(LLVMBuilderRef builder, - enum pipe_format format, + const struct util_format_description *desc, LLVMValueRef packed) { - const struct util_format_description *desc; LLVMTypeRef type; LLVMValueRef shifted, casted, scaled, masked; LLVMValueRef shifts[4]; @@ -49,8 +48,6 @@ lp_build_unpack_rgba_aos(LLVMBuilderRef builder, unsigned shift; unsigned i; - desc = util_format_description(format); - /* FIXME: Support more formats */ assert(desc->layout == UTIL_FORMAT_LAYOUT_ARITH); assert(desc->block.width == 1); @@ -249,33 +246,6 @@ lp_build_pack_rgba_aos(LLVMBuilderRef builder, } -LLVMValueRef -lp_build_load_rgba_aos(LLVMBuilderRef builder, - enum pipe_format format, - LLVMValueRef ptr) -{ - const struct util_format_description *desc; - LLVMTypeRef type; - LLVMValueRef packed; - - desc = util_format_description(format); - - /* FIXME: Support more formats */ - assert(desc->layout == UTIL_FORMAT_LAYOUT_ARITH); - assert(desc->block.width == 1); - assert(desc->block.height == 1); - assert(desc->block.bits <= 32); - - type = LLVMIntType(desc->block.bits); - - ptr = LLVMBuildBitCast(builder, ptr, LLVMPointerType(type, 0), ""); - - packed = LLVMBuildLoad(builder, ptr, ""); - - return lp_build_unpack_rgba_aos(builder, format, packed); -} - - void lp_build_store_rgba_aos(LLVMBuilderRef builder, enum pipe_format format, |