mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
ARB prog: Fix the order of swizzle application
The swizzle used to generate the "original" value from the value stored in the parameter array happens before the swizzle specified in the instruction. This fixes problems seen in progs/vp/vp-tris with arl-*.txt.
This commit is contained in:
parent
8a430dd4da
commit
e511633985
1 changed files with 1 additions and 1 deletions
|
|
@ -187,7 +187,7 @@ _mesa_layout_parameters(struct asm_parser_state *state)
|
|||
_mesa_add_unnamed_constant(layout, v, p->Size, & swizzle);
|
||||
|
||||
inst->Base.SrcReg[i].Swizzle =
|
||||
_mesa_combine_swizzles(inst->Base.SrcReg[i].Swizzle, swizzle);
|
||||
_mesa_combine_swizzles(swizzle, inst->Base.SrcReg[i].Swizzle);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue