Module: Mesa
Branch: main
Commit: 1f08a6dcdbf382a7586b703379969bdd3113c02e
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1f08a6dcdbf382a7586b703379969bdd3113c02e

Author: Mike Blumenkrantz <[email protected]>
Date:   Mon Feb  6 15:57:45 2023 -0500

zink: add a define for the "default" optimal key

Reviewed-by: Emma Anholt <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21169>

---

 src/gallium/drivers/zink/zink_shader_keys.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/zink/zink_shader_keys.h 
b/src/gallium/drivers/zink/zink_shader_keys.h
index 4024742bef9..924467b6eda 100644
--- a/src/gallium/drivers/zink/zink_shader_keys.h
+++ b/src/gallium/drivers/zink/zink_shader_keys.h
@@ -148,6 +148,9 @@ union zink_shader_key_optimal {
    uint32_t val;
 };
 
+/* the default key has only last_vertex_stage set*/
+#define ZINK_SHADER_KEY_OPTIMAL_DEFAULT (1<<0)
+
 static inline const struct zink_fs_key_base *
 zink_fs_key_base(const struct zink_shader_key *key)
 {

Reply via email to