summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-07-14 09:29:35 -0700
committerChad Versace <[email protected]>2015-07-14 09:29:35 -0700
commitebb191f14576d870bda8b66f6d5cadc67924bf42 (patch)
treec6b639ca872a980da9002fa782f50e9ebd687497 /src
parent435ccf4056ac3aafeb3975b214b651f45a2d9dba (diff)
vk/0.132: Add vkDestroyFence()
Diffstat (limited to 'src')
-rw-r--r--src/vulkan/device.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/vulkan/device.c b/src/vulkan/device.c
index 34574d0f8c1..14221127fc5 100644
--- a/src/vulkan/device.c
+++ b/src/vulkan/device.c
@@ -1353,9 +1353,8 @@ anv_fence_destroy(struct anv_device *device,
assert(obj_type == VK_OBJECT_TYPE_FENCE);
- anv_gem_munmap(fence->bo.map, fence->bo.size);
- anv_gem_close(device, fence->bo.gem_handle);
- anv_device_free(device, fence);
+ anv_DestroyFence(anv_device_to_handle(device),
+ anv_fence_to_handle(fence));
}
VkResult anv_CreateFence(
@@ -1423,6 +1422,20 @@ VkResult anv_CreateFence(
return result;
}
+VkResult anv_DestroyFence(
+ VkDevice _device,
+ VkFence _fence)
+{
+ ANV_FROM_HANDLE(anv_device, device, _device);
+ ANV_FROM_HANDLE(anv_fence, fence, _fence);
+
+ anv_gem_munmap(fence->bo.map, fence->bo.size);
+ anv_gem_close(device, fence->bo.gem_handle);
+ anv_device_free(device, fence);
+
+ return VK_SUCCESS;
+}
+
VkResult anv_ResetFences(
VkDevice _device,
uint32_t fenceCount,