radv: use the base object struct types
[mesa.git] / src / amd / vulkan / radv_pipeline_cache.c
index fb83f073405132c1bfa981005304aac3543ab3c2..074c5acb7f4f1b32190b9cfa190dad0be1af5d85 100644 (file)
@@ -578,6 +578,9 @@ VkResult radv_CreatePipelineCache(
        if (cache == NULL)
                return vk_error(device->instance, VK_ERROR_OUT_OF_HOST_MEMORY);
 
+       vk_object_base_init(&device->vk, &cache->base,
+                           VK_OBJECT_TYPE_PIPELINE_CACHE);
+
        if (pAllocator)
                cache->alloc = *pAllocator;
        else
@@ -608,6 +611,7 @@ void radv_DestroyPipelineCache(
                return;
        radv_pipeline_cache_finish(cache);
 
+       vk_object_base_finish(&cache->base);
        vk_free2(&device->vk.alloc, pAllocator, cache);
 }