Mesa (master): nir: Add a nir_metadata_all enum value
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jun 11 05:28:39 UTC 2020
Module: Mesa
Branch: master
Commit: e017ee95c113b3306708f54262d614cdf7440274
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e017ee95c113b3306708f54262d614cdf7440274
Author: Jason Ekstrand <jason at jlekstrand.net>
Date: Thu May 21 20:39:30 2020 -0500
nir: Add a nir_metadata_all enum value
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5171>
---
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 {
More information about the mesa-commit
mailing list