nir/opt_uniform_atomics: Handle unified atomics
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Fri, 12 May 2023 14:55:28 +0000 (10:55 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 12 May 2023 20:39:46 +0000 (20:39 +0000)
commit55f7fd6d0d36e560b55fc12c4baf785f9d0c04ed
tree6449e7838fa7ded7d08cf5d87195612ded29f332
parentb1fd8d27fc516d475808b5e2e826fc7a3124ad5a
nir/opt_uniform_atomics: Handle unified atomics

This is the one place where using nir_atomic_op instead of nir_op directly is a
little annoying, since we need to translate between the two enums, but it's not
a big deal.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22914>
src/compiler/nir/nir_opt_uniform_atomics.c