st/mesa: add support for hw atomics to glsl->tgsi. (v5)
authorDave Airlie <airlied@redhat.com>
Wed, 1 Nov 2017 19:51:36 +0000 (05:51 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 9 Nov 2017 22:39:35 +0000 (08:39 +1000)
commit9e62654d4b47adfd5bdd60389dee17fdd17dba73
tree9e3997f3feeef367f2ef469c8efaff421f7a70cc
parent58d061ceef1a21b117852129850146820929b19c
st/mesa: add support for hw atomics to glsl->tgsi. (v5)

This adds support for creating the hw atomic tgsi from
the glsl codepaths.

v2: drop the atomic index and move to backend.
v3: drop buffer decls. (Marek)
v4: fix off by one (Gert)
v5: fix off by one the other way (Dave)

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Tested-By: Gert Wollny <gw.fossdev@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp