aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/nir
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2020-05-21 20:39:30 -0500
committerMarge Bot <[email protected]>2020-06-11 05:08:12 +0000
commite017ee95c113b3306708f54262d614cdf7440274 (patch)
tree3578b17b616f5b44d2f6aabb809bf70d26d69c9a /src/compiler/nir
parent30f94b3e7d37466a6da948ea58ca12ddcf6cf9d5 (diff)
nir: Add a nir_metadata_all enum value
Reviewed-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5171>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r--src/compiler/nir/nir.h9
1 files changed, 9 insertions, 0 deletions
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 {