summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-07-14 10:19:27 -0700
committerChad Versace <[email protected]>2015-07-14 10:19:27 -0700
commit114015321eb3998e2814687e3584994bc061a33b (patch)
treefef08f21afef3050372b010ab5e2da5cfc7209f9 /src
parentcb57bff36c5b8f449f4f9738e71d5359d9090fc8 (diff)
vk/0.132: Add vkDestroyPipelineCache()
Diffstat (limited to 'src')
-rw-r--r--src/vulkan/device.c4
-rw-r--r--src/vulkan/pipeline.c8
2 files changed, 11 insertions, 1 deletions
diff --git a/src/vulkan/device.c b/src/vulkan/device.c
index 2c110726d5f..599475135e7 100644
--- a/src/vulkan/device.c
+++ b/src/vulkan/device.c
@@ -1206,10 +1206,12 @@ VkResult anv_DestroyObject(
return anv_FreeMemory(_device, (VkDeviceMemory) _object);
case VK_OBJECT_TYPE_DESCRIPTOR_POOL:
- case VK_OBJECT_TYPE_PIPELINE_CACHE:
/* These are just dummys anyway, so we don't need to destroy them */
return VK_SUCCESS;
+ case VK_OBJECT_TYPE_PIPELINE_CACHE:
+ return anv_DestroyPipelineCache(_device, (VkPipelineCache) _object);
+
case VK_OBJECT_TYPE_BUFFER_VIEW:
return anv_DestroyBufferView(_device, _object);
diff --git a/src/vulkan/pipeline.c b/src/vulkan/pipeline.c
index 991ab9f21c2..d21af0ff8b4 100644
--- a/src/vulkan/pipeline.c
+++ b/src/vulkan/pipeline.c
@@ -121,6 +121,14 @@ VkResult anv_CreatePipelineCache(
stub_return(VK_SUCCESS);
}
+VkResult anv_DestroyPipelineCache(
+ VkDevice _device,
+ VkPipelineCache _cache)
+{
+ /* VkPipelineCache is a dummy object. */
+ return VK_SUCCESS;
+}
+
size_t anv_GetPipelineCacheSize(
VkDevice device,
VkPipelineCache pipelineCache)