r600/ssbo: refactor out buffer coord calcs and use for atomic path.
authorDave Airlie <airlied@redhat.com>
Tue, 5 Dec 2017 08:41:35 +0000 (08:41 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 5 Dec 2017 20:07:08 +0000 (20:07 +0000)
commit2fdc21bcabeedf6e6894b73f0996f8626c79ec05
tree5e1bdb6a79ee7576575ac375afcb86175219e23a
parenta256506b762620d0fe7fde81ebd3756c5e14d9ec
r600/ssbo: refactor out buffer coord calcs and use for atomic path.

The atomic rat path has a bug in the ssbo path, refactor out the
address calcs from the load/store paths and reuse to fix the bug
in the buffer rat atomic path.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_shader.c