nvc0/ir: fix shared atomic lowering to preserve shared memory location
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 17 May 2016 07:27:02 +0000 (03:27 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 17 May 2016 15:22:01 +0000 (11:22 -0400)
commitdd4b44efc04413453e4cbf78434b29392eb148a9
treee7d6ac552c757edb32e4621444307f57dff9a2fe
parentb65bd3dee5d84f4bd7806518282299960d426dc1
nvc0/ir: fix shared atomic lowering to preserve shared memory location

We were always doing atomics on shared memory location 0 instead of the
originally supplied location. Make sure to pass through the original
symbol and any indirection.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Cc: mesa-stable@lists.freedesktop.org # note: expect minor conflict
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp