summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-07-14 10:51:08 -0700
committerChad Versace <[email protected]>2015-07-14 10:51:08 -0700
commit5e1737c42f183fb374fc1a76a6cf4ff9d828f850 (patch)
tree802b2bb7e20888b69cb1d732265726028fb941f5 /src
parentd80fea1af603672a774fdffbbcf0b4e2011a4526 (diff)
vk/0.132: Add vkDestroyDynamicRasterState()
Diffstat (limited to 'src')
-rw-r--r--src/vulkan/device.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/vulkan/device.c b/src/vulkan/device.c
index 0b2914e7d8e..53e998c226d 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_RS_STATE:
case VK_OBJECT_TYPE_DYNAMIC_CB_STATE:
case VK_OBJECT_TYPE_DYNAMIC_DS_STATE:
case VK_OBJECT_TYPE_RENDER_PASS:
@@ -1256,6 +1255,9 @@ VkResult anv_DestroyObject(
case VK_OBJECT_TYPE_DYNAMIC_VP_STATE:
return anv_DestroyDynamicViewportState(_device, (VkDynamicViewportState) _object);
+ case VK_OBJECT_TYPE_DYNAMIC_RS_STATE:
+ return anv_DestroyDynamicRasterState(_device, (VkDynamicRasterState) _object);
+
case VK_OBJECT_TYPE_COMMAND_BUFFER:
case VK_OBJECT_TYPE_FRAMEBUFFER:
(object->destructor)(device, object, objType);
@@ -2296,6 +2298,18 @@ VkResult anv_CreateDynamicRasterState(
return VK_SUCCESS;
}
+VkResult anv_DestroyDynamicRasterState(
+ VkDevice _device,
+ VkDynamicRasterState _rs_state)
+{
+ ANV_FROM_HANDLE(anv_device, device, _device);
+ ANV_FROM_HANDLE(anv_dynamic_rs_state, rs_state, _rs_state);
+
+ anv_device_free(device, rs_state);
+
+ return VK_SUCCESS;
+}
+
VkResult anv_CreateDynamicColorBlendState(
VkDevice _device,
const VkDynamicColorBlendStateCreateInfo* pCreateInfo,