nir: add pass to lower atomic counters to SSBO
authorRob Clark <robdclark@gmail.com>
Wed, 12 Apr 2017 17:26:54 +0000 (13:26 -0400)
committerRob Clark <robdclark@gmail.com>
Thu, 4 May 2017 17:48:06 +0000 (13:48 -0400)
commit53aa109ba2fd63e319012b8224099d0019243e63
tree1be8537133b47a5f7a5e5a50ae6cc10b619ff235
parentfd500cc10bda5da40ace2b01c2c60bf29ce12cb0
nir: add pass to lower atomic counters to SSBO

This is equivalent to what mesa/st does in glsl_to_tgsi.  For most hw
there isn't a particularly good reason to treat these differently.

Signed-off-by: Rob Clark <robdclark@gmail.com>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/Makefile.sources
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_atomics_to_ssbo.c [new file with mode: 0644]