nv50/ir: convert an ATOM.EXCH without a destination into a store
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 10 Feb 2017 06:55:08 +0000 (01:55 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 12 Feb 2017 01:25:26 +0000 (20:25 -0500)
commitb38aab50a04b63038a42b7e4da3f8b5e9dbb8f24
tree27db778bf087d59c6e902437d17d506234b7830a
parent2b0580123ed5b87ba00df93d174e20eabd9d1ecd
nv50/ir: convert an ATOM.EXCH without a destination into a store

On SM35 there does not appear to be a way to emit a ATOM.EXCH with a
null destination. This should be functionally equivalent to a plain
store however, so just do that.

Fixes GL45-CTS.compute_shader.atomic-case2 on SM35.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp