gallivm: s/lp_build_broadcast_aos/lp_build_swizzle_scalar_aos/

More accurate description of this function purpose.
This commit is contained in:
José Fonseca 2010-09-02 12:13:46 +01:00
parent 96c6e7e73e
commit 34ea50f672
3 changed files with 9 additions and 6 deletions

View file

@ -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:

View file

@ -60,7 +60,7 @@ lp_build_broadcast_scalar(struct lp_build_context *bld,
* all four channel.
*/
LLVMValueRef
lp_build_broadcast_aos(struct lp_build_context *bld,
lp_build_swizzle_scalar_aos(struct lp_build_context *bld,
LLVMValueRef a,
unsigned channel);

View file

@ -197,7 +197,7 @@ lp_build_blend_swizzle(struct lp_build_blend_aos_context *bld,
swizzled_rgb = rgb;
break;
case LP_BUILD_BLEND_SWIZZLE_AAAA:
swizzled_rgb = lp_build_broadcast_aos(&bld->base, rgb, alpha_swizzle);
swizzled_rgb = lp_build_swizzle_scalar_aos(&bld->base, rgb, alpha_swizzle);
break;
default:
assert(0);