nir: Reorder nir_scopes so wider scope has larger numeric value
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 21 Feb 2020 18:46:29 +0000 (10:46 -0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 12 Mar 2020 19:21:36 +0000 (19:21 +0000)
Makes code comparing and combining scopes slightly more readable.

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 7924212b521e55c3edfb64f0ab3cae986fce31ad..ec281ad53173ae5c3d4a6d55bd067f4ac931d70f 100644 (file)
@@ -1456,11 +1456,11 @@ typedef enum {
 } nir_memory_semantics;
 
 typedef enum {
-   NIR_SCOPE_DEVICE,
-   NIR_SCOPE_QUEUE_FAMILY,
-   NIR_SCOPE_WORKGROUP,
-   NIR_SCOPE_SUBGROUP,
    NIR_SCOPE_INVOCATION,
+   NIR_SCOPE_SUBGROUP,
+   NIR_SCOPE_WORKGROUP,
+   NIR_SCOPE_QUEUE_FAMILY,
+   NIR_SCOPE_DEVICE,
 } nir_scope;
 
 /**