gm107/ir: make sure that flagsDef is set when emitting setcond
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 27 Jun 2016 22:59:46 +0000 (00:59 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 28 Jun 2016 16:38:56 +0000 (18:38 +0200)
commitcc97b6a34a81e58c29bed6dae06613b388506283
tree064701c47f504fbc200b57cc0fd0c18885dc1fe6
parent234323558dd239a4648c6c25a001c061d663fd49
gm107/ir: make sure that flagsDef is set when emitting setcond

Rely on the existence of a second destination when emitting a setcond
flag is dangerous, because this doesn't mean that the flag has been
correctly set. Instead rely on flagsDef like what emitX() does
for flagsSrc.

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