diff options
author | Chad Versace <[email protected]> | 2015-07-14 10:54:16 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2015-07-14 10:54:51 -0700 |
commit | 0c8456ef1e33fafa6074966e8f19dae4d19740ed (patch) | |
tree | c19a72e7ade9f9142824efb4c3b930a9718f603f /src | |
parent | b29c929e8e2a7266833e4e1000613a770d5e67ae (diff) |
vk/0.132: Add vkDestroyDynamicDepthStencilState()
Diffstat (limited to 'src')
-rw-r--r-- | src/vulkan/device.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/vulkan/device.c b/src/vulkan/device.c index bbeb22a60b0..b35e0ea97b5 100644 --- a/src/vulkan/device.c +++ b/src/vulkan/device.c @@ -1245,7 +1245,6 @@ VkResult anv_DestroyObject( return anv_DestroyDescriptorSetLayout(_device, (VkDescriptorSetLayout) _object); case VK_OBJECT_TYPE_DESCRIPTOR_SET: - case VK_OBJECT_TYPE_DYNAMIC_DS_STATE: case VK_OBJECT_TYPE_RENDER_PASS: /* These are trivially destroyable */ anv_device_free(device, (void *) _object); @@ -1260,6 +1259,9 @@ VkResult anv_DestroyObject( case VK_OBJECT_TYPE_DYNAMIC_CB_STATE: return anv_DestroyDynamicColorBlendState(_device, (VkDynamicColorBlendState) _object); + case VK_OBJECT_TYPE_DYNAMIC_DS_STATE: + return anv_DestroyDynamicDepthStencilState(_device, (VkDynamicDepthStencilState) _object); + case VK_OBJECT_TYPE_COMMAND_BUFFER: case VK_OBJECT_TYPE_FRAMEBUFFER: (object->destructor)(device, object, objType); @@ -2396,6 +2398,18 @@ VkResult anv_CreateDynamicDepthStencilState( return VK_SUCCESS; } +VkResult anv_DestroyDynamicDepthStencilState( + VkDevice _device, + VkDynamicDepthStencilState _ds_state) +{ + ANV_FROM_HANDLE(anv_device, device, _device); + ANV_FROM_HANDLE(anv_dynamic_ds_state, ds_state, _ds_state); + + anv_device_free(device, ds_state); + + return VK_SUCCESS; +} + // Command buffer functions static void |