From: Caio Marcelo de Oliveira Filho Date: Fri, 21 Feb 2020 18:46:29 +0000 (-0800) Subject: nir: Reorder nir_scopes so wider scope has larger numeric value X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d31a8ed8fd560fd71be10956d09987dc47f20a01;p=mesa.git nir: Reorder nir_scopes so wider scope has larger numeric value Makes code comparing and combining scopes slightly more readable. Reviewed-by: Eric Anholt Reviewed-by: Jason Ekstrand Part-of: --- diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 7924212b521..ec281ad5317 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -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; /**