summaryrefslogtreecommitdiffstats
path: root/src/vulkan/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vulkan/device.c')
-rw-r--r--src/vulkan/device.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vulkan/device.c b/src/vulkan/device.c
index 599475135e7..43724641c08 100644
--- a/src/vulkan/device.c
+++ b/src/vulkan/device.c
@@ -1249,12 +1249,14 @@ VkResult anv_DestroyObject(
return VK_SUCCESS;
case VK_OBJECT_TYPE_COMMAND_BUFFER:
- case VK_OBJECT_TYPE_PIPELINE:
case VK_OBJECT_TYPE_DYNAMIC_VP_STATE:
case VK_OBJECT_TYPE_FRAMEBUFFER:
(object->destructor)(device, object, objType);
return VK_SUCCESS;
+ case VK_OBJECT_TYPE_PIPELINE:
+ return anv_DestroyPipeline(_device, (VkPipeline) _object);
+
case VK_OBJECT_TYPE_QUERY_POOL:
return anv_DestroyQueryPool(_device, (VkQueryPool) _object);