From e017ee95c113b3306708f54262d614cdf7440274 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 21 May 2020 20:39:30 -0500 Subject: [PATCH] nir: Add a nir_metadata_all enum value Reviewed-by: Alyssa Rosenzweig Reviewed-by: Kenneth Graunke Part-of: --- src/compiler/nir/nir.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index a673a2a8f31..9d0110ebe94 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -2699,6 +2699,15 @@ typedef enum { * determine. Most passes shouldn't preserve this metadata type. */ nir_metadata_loop_analysis = 0x10, + + /** All metadata + * + * This includes all nir_metadata flags except not_properly_reset. Passes + * which do not change the shader in any way should call + * + * nir_metadata_preserve(impl, nir_metadata_all); + */ + nir_metadata_all = ~nir_metadata_not_properly_reset, } nir_metadata; typedef struct { -- 2.30.2