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:
Ian Romanick 2009-07-29 20:07:59 -07:00
parent 8a430dd4da
commit e511633985

View file

@ -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;
}