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:

committed by
Marge Bot

parent
a6360a3203
commit
53eb3ad375
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user