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:
@@ -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;
|
||||
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user