Module: Mesa Branch: master Commit: 8b3c99a5ebbc2f8b586d8ae2bd9aa5c55bbf3f04 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8b3c99a5ebbc2f8b586d8ae2bd9aa5c55bbf3f04
Author: Brian Paul <[email protected]> Date: Wed Feb 2 14:20:10 2011 +0000 gallivm: Swizzle constants into the right AoS ordering. Constants array is always assumed to be RGBA, which means we need to swizzle the constant elements into place to match the AoS ordering (e.g., BGRA) that was passed to lp_build_tgsi_aos(). Signed-off-by: José Fonseca <[email protected]> --- src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c index a021efd..74b3b75 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c @@ -189,7 +189,7 @@ emit_fetch( * NOTE: constants array is always assumed to be RGBA */ - swizzle = lp_build_const_int32(bld->base.gallivm, chan); + swizzle = lp_build_const_int32(bld->base.gallivm, bld->swizzles[chan]); res = LLVMBuildInsertElement(builder, res, scalar, swizzle, ""); } _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
