vulkan/pipeline_cache: remove vk_device from vk_pipeline_cache_object

It is not necessary to store the extra pointer.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21967>
This commit is contained in:
Daniel Schürmann
2023-03-16 15:35:48 +01:00
committed by Marge Bot
parent 4ac56e3e5a
commit 5daff41e27
8 changed files with 67 additions and 54 deletions

View File

@@ -43,10 +43,12 @@ anv_shader_bin_deserialize(struct vk_device *device,
struct blob_reader *blob);
static void
anv_shader_bin_destroy(struct vk_pipeline_cache_object *object)
anv_shader_bin_destroy(struct vk_device *_device,
struct vk_pipeline_cache_object *object)
{
struct anv_device *device =
container_of(object->device, struct anv_device, vk);
container_of(_device, struct anv_device, vk);
struct anv_shader_bin *shader =
container_of(object, struct anv_shader_bin, base);
@@ -477,4 +479,4 @@ anv_load_fp64_shader(struct anv_device *device)
nir, sha1);
device->fp64_nir = nir;
}
}