From 6ed726b8fc6210a41fe325591e1428d19f419108 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Thu, 2 Sep 2010 11:32:09 +0100 Subject: gallivm: Pass condition masks as an unsigned bitmask. Much more convenient than boolean arrays. --- src/gallium/drivers/llvmpipe/lp_bld_blend_aos.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/gallium/drivers/llvmpipe') diff --git a/src/gallium/drivers/llvmpipe/lp_bld_blend_aos.c b/src/gallium/drivers/llvmpipe/lp_bld_blend_aos.c index 09e98330571..e49d353b749 100644 --- a/src/gallium/drivers/llvmpipe/lp_bld_blend_aos.c +++ b/src/gallium/drivers/llvmpipe/lp_bld_blend_aos.c @@ -205,9 +205,8 @@ lp_build_blend_swizzle(struct lp_build_blend_aos_context *bld, } if (rgb != alpha) { - boolean cond[4] = {0, 0, 0, 0}; - cond[alpha_swizzle] = 1; - swizzled_rgb = lp_build_select_aos(&bld->base, alpha, swizzled_rgb, cond); + swizzled_rgb = lp_build_select_aos(&bld->base, 1 << alpha_swizzle, + alpha, swizzled_rgb); } return swizzled_rgb; -- cgit v1.2.3