gk110/ir: do not overwrite def value with zero for EXCH ops
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 20 Apr 2016 17:47:37 +0000 (19:47 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 20 Apr 2016 20:55:33 +0000 (22:55 +0200)
commit17a37c78fc16505f717a44aa22551285d1cd8c9e
tree830ec9c1a881970b144d0f3a4b86a07ac0a07f0c
parent3caf2e89aa1711e80db80d2056e0a44663d9c7d2
gk110/ir: do not overwrite def value with zero for EXCH ops

This is only valid for other atomic operations (including CAS). This
fixes an invalid opcode error from dmesg. While we are it, make sure
to initialize global addr to 0 for other atomic operations.

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