mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
gallivm: s/lp_build_broadcast_aos/lp_build_swizzle_scalar_aos/
More accurate description of this function purpose.
This commit is contained in:
parent
96c6e7e73e
commit
34ea50f672
3 changed files with 9 additions and 6 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue