summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-07-14 09:56:48 -0700
committerChad Versace <[email protected]>2015-07-14 09:58:22 -0700
commite18377f43538f487ea79728e0a9b744f89d0bd49 (patch)
treee13d173f5f43344796caf0300fe0dec3bfa46cc5 /src
parente93b6d8eb114b2fc7c7b7ef624874214a37dc184 (diff)
vk/0.132: Dispatch vkDestroyObject to new destructors
Oops. My recent commits added new destructors, but forgot to teach vkDestroyObject about them. They are: vkDestroyFence vkDestroyEvent vkDestroySemaphore vkDestroyQueryPool vkDestroyBuffer
Diffstat (limited to 'src')
-rw-r--r--src/vulkan/device.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/vulkan/device.c b/src/vulkan/device.c
index 02e00c4a326..0256b66791f 100644
--- a/src/vulkan/device.c
+++ b/src/vulkan/device.c
@@ -1184,6 +1184,9 @@ VkResult anv_DestroyObject(
struct anv_object *object = (struct anv_object *) _object;
switch (objType) {
+ case VK_OBJECT_TYPE_FENCE:
+ return anv_DestroyFence(_device, (VkFence) _object);
+
case VK_OBJECT_TYPE_INSTANCE:
return anv_DestroyInstance((VkInstance) _object);
@@ -1223,6 +1226,8 @@ VkResult anv_DestroyObject(
return anv_DestroyImage(_device, _object);
case VK_OBJECT_TYPE_BUFFER:
+ return anv_DestroyBuffer(_device, (VkBuffer) _object);
+
case VK_OBJECT_TYPE_SHADER:
case VK_OBJECT_TYPE_SHADER_MODULE:
case VK_OBJECT_TYPE_PIPELINE_LAYOUT:
@@ -1240,15 +1245,18 @@ VkResult anv_DestroyObject(
case VK_OBJECT_TYPE_COMMAND_BUFFER:
case VK_OBJECT_TYPE_PIPELINE:
case VK_OBJECT_TYPE_DYNAMIC_VP_STATE:
- case VK_OBJECT_TYPE_FENCE:
- case VK_OBJECT_TYPE_QUERY_POOL:
case VK_OBJECT_TYPE_FRAMEBUFFER:
(object->destructor)(device, object, objType);
return VK_SUCCESS;
+ case VK_OBJECT_TYPE_QUERY_POOL:
+ return anv_DestroyQueryPool(_device, (VkQueryPool) _object);
+
case VK_OBJECT_TYPE_SEMAPHORE:
+ return anv_DestroySemaphore(_device, (VkSemaphore) _object);
+
case VK_OBJECT_TYPE_EVENT:
- stub_return(VK_UNSUPPORTED);
+ return anv_DestroyEvent(_device, (VkEvent) _object);
default:
unreachable("Invalid object type");