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

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21169>
This commit is contained in:
Mike Blumenkrantz 2023-02-06 15:57:45 -05:00 committed by Marge Bot
parent 9e0e6708ed
commit 1f08a6dcdb

View file

@ -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)
{