vulkan/pipeline_cache: add cache parameter to deserialize() function

This allows for secondary cache lookups during deserialization.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21967>
This commit is contained in:
Daniel Schürmann
2023-03-19 23:56:07 +01:00
committed by Marge Bot
parent a6360a3203
commit 53eb3ad375
6 changed files with 33 additions and 28 deletions

View File

@@ -38,7 +38,7 @@ anv_shader_bin_serialize(struct vk_pipeline_cache_object *object,
struct blob *blob);
struct vk_pipeline_cache_object *
anv_shader_bin_deserialize(struct vk_device *device,
anv_shader_bin_deserialize(struct vk_pipeline_cache *cache,
const void *key_data, size_t key_size,
struct blob_reader *blob);
@@ -253,12 +253,12 @@ anv_shader_bin_serialize(struct vk_pipeline_cache_object *object,
}
struct vk_pipeline_cache_object *
anv_shader_bin_deserialize(struct vk_device *vk_device,
anv_shader_bin_deserialize(struct vk_pipeline_cache *cache,
const void *key_data, size_t key_size,
struct blob_reader *blob)
{
struct anv_device *device =
container_of(vk_device, struct anv_device, vk);
container_of(cache->base.device, struct anv_device, vk);
gl_shader_stage stage = blob_read_uint32(blob);