nv50/ir: always emit the NDV bit for OP_QUADOP
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 25 Aug 2016 16:41:05 +0000 (18:41 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 30 Aug 2016 16:41:46 +0000 (18:41 +0200)
commite0a067ed484698ff62dd8c8750aeb46f18988b17
tree12a480fcd719c31603184d1034ccc7a3bab29a26
parent9514c5a30f439f9e3536b6b7f92986c69ae49a20
nv50/ir: always emit the NDV bit for OP_QUADOP

This silences a divergent error found with F1 2015.

Basically, the NDV bit has to be set when a FSWZ instruction is
inside divergent code, but it's not needed otherwise. The correct
fix should be to set it only in divergent code situations.

GM107 emitter already sets that bit.

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_gk110.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp