panvk: fix descriptor set layout hash

Save the hash to layout->vk.blake3, rather than the unused layout->hash.

Fixes: 73518dc169 ("panvk: Add Valhall DescriptorSetLayout implementation")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31773>
This commit is contained in:
Chia-I Wu
2024-10-21 12:59:00 -07:00
committed by Marge Bot
parent 382e078659
commit c23f7a2562
2 changed files with 1 additions and 2 deletions

View File

@@ -37,7 +37,6 @@ struct panvk_descriptor_set_binding_layout {
struct panvk_descriptor_set_layout {
struct vk_descriptor_set_layout vk;
VkDescriptorSetLayoutCreateFlagBits flags;
blake3_hash hash;
unsigned desc_count;
unsigned dyn_buf_count;

View File

@@ -164,7 +164,7 @@ panvk_per_arch(CreateDescriptorSetLayout)(
/* Immutable samplers are ignored for now */
}
_mesa_blake3_final(&hash_ctx, layout->hash);
_mesa_blake3_final(&hash_ctx, layout->vk.blake3);
free(bindings);
*pSetLayout = panvk_descriptor_set_layout_to_handle(layout);