nir: Don't skip a bit in nir_memory_semantics
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Thu, 20 Feb 2020 17:47:06 +0000 (09:47 -0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 12 Mar 2020 19:21:36 +0000 (19:21 +0000)
There was another enum entry in the draft versions of
nir_memory_semantics, but when it got dropped the entries were not
updated.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3224>

src/compiler/nir/nir.h

index c41e78538f08f6198767ffb3a29ec471445f99fd..7924212b521e55c3edfb64f0ab3cae986fce31ad 100644 (file)
@@ -1451,8 +1451,8 @@ typedef enum {
    NIR_MEMORY_ACQ_REL        = NIR_MEMORY_ACQUIRE | NIR_MEMORY_RELEASE,
 
    /* Memory visibility operations. */
-   NIR_MEMORY_MAKE_AVAILABLE = 1 << 3,
-   NIR_MEMORY_MAKE_VISIBLE   = 1 << 4,
+   NIR_MEMORY_MAKE_AVAILABLE = 1 << 2,
+   NIR_MEMORY_MAKE_VISIBLE   = 1 << 3,
 } nir_memory_semantics;
 
 typedef enum {