From 34ea50f6720d6aca970613da560a1f25f5b5772c Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Thu, 2 Sep 2010 12:13:46 +0100 Subject: gallivm: s/lp_build_broadcast_aos/lp_build_swizzle_scalar_aos/ More accurate description of this function purpose. --- src/gallium/auxiliary/gallivm/lp_bld_swizzle.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/gallium/auxiliary/gallivm/lp_bld_swizzle.c') diff --git a/src/gallium/auxiliary/gallivm/lp_bld_swizzle.c b/src/gallium/auxiliary/gallivm/lp_bld_swizzle.c index fced983396..d4d2f2b307 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_swizzle.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_swizzle.c @@ -95,10 +95,13 @@ lp_build_broadcast_scalar(struct lp_build_context *bld, } +/** + * Swizzle one channel into all other three channels. + */ LLVMValueRef -lp_build_broadcast_aos(struct lp_build_context *bld, - LLVMValueRef a, - unsigned channel) +lp_build_swizzle_scalar_aos(struct lp_build_context *bld, + LLVMValueRef a, + unsigned channel) { const struct lp_type type = bld->type; const unsigned n = type.length; @@ -203,7 +206,7 @@ lp_build_swizzle_aos(struct lp_build_context *bld, case PIPE_SWIZZLE_GREEN: case PIPE_SWIZZLE_BLUE: case PIPE_SWIZZLE_ALPHA: - return lp_build_broadcast_aos(bld, a, swizzles[0]); + return lp_build_swizzle_scalar_aos(bld, a, swizzles[0]); case PIPE_SWIZZLE_ZERO: return bld->zero; case PIPE_SWIZZLE_ONE: -- cgit v1.2.3