From: Jason Ekstrand Date: Fri, 22 May 2020 01:39:30 +0000 (-0500) Subject: nir: Add a nir_metadata_all enum value X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e017ee95c113b3306708f54262d614cdf7440274;p=mesa.git nir: Add a nir_metadata_all enum value Reviewed-by: Alyssa Rosenzweig Reviewed-by: Kenneth Graunke Part-of: --- 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 {