gallivm: Swizzle constants into the right AoS ordering.
authorBrian Paul <brianp@vmware.com>
Wed, 2 Feb 2011 14:20:10 +0000 (14:20 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 27 Jan 2012 18:25:32 +0000 (18:25 +0000)
commit8b3c99a5ebbc2f8b586d8ae2bd9aa5c55bbf3f04
tree957281f57eea0f2b4f5433da916ab188020911bb
parent07635a4799b15a7575e1feb8859ecc7734850deb
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 <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c