r600/atomic: add cayman version of atomic save/restore from GDS (v2)
authorDave Airlie <airlied@redhat.com>
Fri, 1 Dec 2017 04:06:19 +0000 (04:06 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 5 Dec 2017 10:38:07 +0000 (10:38 +0000)
commit05f594f2291f146f5f8704f80fb475dfb21b66fb
tree0be0d0707940a7811daa6a87f2decfaa25453317
parentcf6d3caee28c7b79192c24c7efe591e9cf76b5ed
r600/atomic: add cayman version of atomic save/restore from GDS (v2)

On Cayman we don't use the append/consume counters (fglrx doesn't)
and they don't seem to work well with compute shaders.

This just uses GDS instead to do the atomic operations.

v1.1: remove unused line.
v2: use EOS on cayman, it appears to work.

Acked-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_shader.c