diff options
author | Brian Paul <[email protected]> | 2011-02-02 14:20:10 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2012-01-27 18:25:32 +0000 |
commit | 8b3c99a5ebbc2f8b586d8ae2bd9aa5c55bbf3f04 (patch) | |
tree | 957281f57eea0f2b4f5433da916ab188020911bb /src/gallium | |
parent | 07635a4799b15a7575e1feb8859ecc7734850deb (diff) |
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]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | 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 a021efd69ff..74b3b75039a 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, ""); } |