About Social Code
aboutsummaryrefslogtreecommitdiff
path: root/src/vulkan/runtime/vk_shader.h
diff options
context:
space:
mode:
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>2025-08-01 15:20:15 +0300
committerMarge Bot <marge-bot@fdo.invalid>2025-11-06 15:27:26 +0000
commite9c1947ed686bc67b6552996c113829678d31ef1 (patch)
tree12ee77844f16a70aedaaebdc7ce2227e4e31a4f0 /src/vulkan/runtime/vk_shader.h
parente05a9b77b6edd8e35f214267c226cb166f50bc99 (diff)
vulkan/runtime: use only blake3_hash to shader key
To match the VK_MAX_PIPELINE_BINARY_KEY_SIZE_KHR of only 32B. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36647>
Diffstat (limited to 'src/vulkan/runtime/vk_shader.h')
-rw-r--r--src/vulkan/runtime/vk_shader.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/vulkan/runtime/vk_shader.h b/src/vulkan/runtime/vk_shader.h
index a2caea1c667..44595621caa 100644
--- a/src/vulkan/runtime/vk_shader.h
+++ b/src/vulkan/runtime/vk_shader.h
@@ -98,18 +98,6 @@ struct vk_shader_compile_info {
struct vk_shader_ops;
-#ifdef __GNUC__
-#pragma GCC diagnostic push
-#pragma GCC diagnostic error "-Wpadded"
-#endif
-struct vk_shader_pipeline_cache_key {
- mesa_shader_stage stage;
- blake3_hash blake3;
-};
-#ifdef __GNUC__
-#pragma GCC diagnostic pop
-#endif
-
struct vk_shader {
struct vk_object_base base;
@@ -131,7 +119,7 @@ struct vk_shader {
/* Used for the generic VkPipeline implementation */
struct {
struct vk_pipeline_cache_object cache_obj;
- struct vk_shader_pipeline_cache_key cache_key;
+ blake3_hash cache_key;
} pipeline;
};