From d31a8ed8fd560fd71be10956d09987dc47f20a01 Mon Sep 17 00:00:00 2001 From: Caio Marcelo de Oliveira Filho Date: Fri, 21 Feb 2020 10:46:29 -0800 Subject: [PATCH] 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: --- src/compiler/nir/nir.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; /** -- 2.30.2