mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 17:20:21 +01:00
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>
This commit is contained in:
parent
07635a4799
commit
8b3c99a5eb
1 changed files with 1 additions and 1 deletions
|
|
@ -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, "");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue