kk: Hash vertex input state

We embed vertex fetching into vertex shaders and therefore
we require hashing that state so the hash works as expected.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37992>
This commit is contained in:
Aitor Camacho 2025-10-21 16:32:23 -06:00 committed by Marge Bot
parent dc0dcc993b
commit 02a1ec1021

View file

@ -107,6 +107,7 @@ kk_preprocess_nir(UNUSED struct vk_physical_device *vk_pdev, nir_shader *nir,
struct kk_vs_key {
bool is_points;
struct vk_vertex_input_state vi;
};
static void
@ -116,6 +117,7 @@ kk_populate_vs_key(struct kk_vs_key *key,
memset(key, 0, sizeof(*key));
key->is_points =
(state->ia->primitive_topology == VK_PRIMITIVE_TOPOLOGY_POINT_LIST);
key->vi = *state->vi;
}
struct kk_fs_key {