mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 16:30:10 +01:00
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:
parent
dc0dcc993b
commit
02a1ec1021
1 changed files with 2 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue