OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 1 Sep 2016 10:39:46 +0000 (11:39 +0100)
commit04f04ab6a6271c5f1b83d3eba148d5c6f5184bbb
treef8e51e04fdfec6095d4682bc188883d76e9ac721
parent5af16ddf84f3954cac9298f8d84677a2a99928c6
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>
(cherry picked from commit e0a067ed484698ff62dd8c8750aeb46f18988b17)
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp