nv50/ir: don't emit src2 in immediate form
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 2 Jul 2015 04:13:36 +0000 (00:13 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 2 Jul 2015 04:15:27 +0000 (00:15 -0400)
commitc3215ef204c0fdfc44230adbd423720169d44dcb
tree518875ea90c143b3394cbab1d6dd84aa2d05619e
parent1087c566e3496d08fe70bc0725073e3022716dc5
nv50/ir: don't emit src2 in immediate form

In the immediate form, src2 == dst, so it does not need to be emitted.
Otherwise it overlaps with the immediate value's low bits.

Fixes: 09ee907266 (nv50/ir: Fold IMM into MAD)
Cc: "10.6" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp