On Tue,  1 Nov 2011 20:58:16 -0700, Paul Berry <stereotype...@gmail.com> wrote:
> i965's MUL instruction can't take an immediate value as its first
> argument.  So normally, if constant propagation wants to propagate a
> constant into the first argument of a MUL instruction, it swaps the
> order of the two arguments.
> 
> This doesn't work for 32-bit integer (and unsigned integer)
> multiplies, because the MUL operation is asymmetric in that case (it
> multiplies 16 bits of one operand by 32 bits of the other).
> 
> Fixes piglit tests {vs,fs}-multiply-const-{ivec4,uvec4}.

Reviewed-by: Eric Anholt <e...@anholt.net>

Attachment: pgpdJyqLoB2en.pgp
Description: PGP signature

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to