zink: add a define for the "default" optimal key
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 6 Feb 2023 20:57:45 +0000 (15:57 -0500)
committerEric Engestrom <eric@engestrom.ch>
Wed, 8 Feb 2023 20:34:46 +0000 (20:34 +0000)
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21169>
(cherry-picked from 1f08a6dcdbf382a7586b703379969bdd3113c02e)

.pick_status.json
src/gallium/drivers/zink/zink_shader_keys.h

index 730c64b..60f4ba9 100644 (file)
         "description": "zink: add a define for the \"default\" optimal key",
         "nominated": false,
         "nomination_type": null,
-        "resolution": 4,
+        "resolution": 1,
         "main_sha": null,
         "because_sha": null
     },
index bf5444b..d49785b 100644 (file)
@@ -107,6 +107,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 *
 zink_fs_key(const struct zink_shader_key *key)
 {