gm107/ir: fix sign bit emission for FADD32I
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 4 Jul 2016 11:12:20 +0000 (13:12 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 4 Jul 2016 23:44:08 +0000 (01:44 +0200)
commitcb828b7b18d83cb2ea3dcaed54c1678616c56fc8
tree552a8f6f837f97f45ef0648b01a25dc0f7d3b88c
parentac772b24a18bddc490dae171441795dedd85d7b2
gm107/ir: fix sign bit emission for FADD32I

When emitting OP_SUB, the sign bit for FADD and FADD32I is not
at the same position. It's at position 45 for FADD but 51 for FADD32I.

This fixes the following piglit test:
tests/spec/arb_fragment_program/fdo30337b.shader_test

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_gm107.cpp