nvc0/ir: fix subops for IMAD
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 15 Sep 2016 16:11:56 +0000 (18:11 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 17 Sep 2016 15:42:45 +0000 (17:42 +0200)
commit50baaf6bc624e78f6d92f2316a370e11d4c4d882
tree04154a00121b8aa19862075ff5e1858d67c93683
parent9b8b69b3c4671b2301f2926f5d310b319a221500
nvc0/ir: fix subops for IMAD

Offset was wrong, it's at bit 8, not 4. Also, uses subr instead
of sub when src2 has neg. Similar to GK110 now.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp