vulkan: Add a BLAKE3 hash to vk_descriptor_set_layout

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27024>
This commit is contained in:
Faith Ekstrand
2024-01-11 11:08:57 -06:00
committed by Marge Bot
parent 682b99a63f
commit c488dc9f50
@@ -25,6 +25,7 @@
#include "vk_object.h"
#include "util/mesa-blake3.h"
#include "util/u_atomic.h"
#ifdef __cplusplus
@@ -34,6 +35,13 @@ extern "C" {
struct vk_descriptor_set_layout {
struct vk_object_base base;
/* BLAKE3 hash of the descriptor set layout. This is used by the common
* pipeline code to properly cache shaders, including handling pipeline
* layouts. It must be populated by the driver or you risk pipeline cache
* collisions.
*/
blake3_hash blake3;
void (*destroy)(struct vk_device *device,
struct vk_descriptor_set_layout *layout);