nvc0/ir: fix wrong emission of (a OP b) OP c
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 26 Apr 2016 16:12:59 +0000 (18:12 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 26 Apr 2016 17:47:49 +0000 (19:47 +0200)
commit3da8528846773e936850b51ae7d6287758c45b7b
tree7e4c192096b16c457c1e3f6ea5b9b5a3026e88e5
parenta2fe35bcdf3d383aaa5ad915b80630c8895d703d
nvc0/ir: fix wrong emission of (a OP b) OP c

The third source must be emitted at offset 49 instead of 17 and the
not modifier is at 52 instead of 20. If you look a bit above in
emitLogicOp() you will see that the dest is emitted at 17 which
confirms that src(2) is obviously wrong.

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