summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-07-14 09:44:58 -0700
committerChad Versace <[email protected]>2015-07-14 09:44:58 -0700
commit584cb7a16f4c1ec1b20760247069c3634232bc8a (patch)
tree8207718e5eea12a67c9b3eae65ca65162f369e49 /src
parent68c7ef502da6c99d87e37973cdd1ff92995e77df (diff)
vk/0.132: Add vkDestroyQueryPool()
Diffstat (limited to 'src')
-rw-r--r--src/vulkan/query.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/vulkan/query.c b/src/vulkan/query.c
index 2c68e30eeee..3a1f594816d 100644
--- a/src/vulkan/query.c
+++ b/src/vulkan/query.c
@@ -51,9 +51,8 @@ anv_query_pool_destroy(struct anv_device *device,
assert(obj_type == VK_OBJECT_TYPE_QUERY_POOL);
- anv_gem_munmap(pool->bo.map, pool->bo.size);
- anv_gem_close(device, pool->bo.gem_handle);
- anv_device_free(device, pool);
+ anv_DestroyQueryPool(anv_device_to_handle(device),
+ anv_query_pool_to_handle(pool));
}
VkResult anv_CreateQueryPool(
@@ -102,6 +101,20 @@ VkResult anv_CreateQueryPool(
return result;
}
+VkResult anv_DestroyQueryPool(
+ VkDevice _device,
+ VkQueryPool _pool)
+{
+ ANV_FROM_HANDLE(anv_device, device, _device);
+ ANV_FROM_HANDLE(anv_query_pool, pool, _pool);
+
+ anv_gem_munmap(pool->bo.map, pool->bo.size);
+ anv_gem_close(device, pool->bo.gem_handle);
+ anv_device_free(device, pool);
+
+ return VK_SUCCESS;
+}
+
VkResult anv_GetQueryPoolResults(
VkDevice _device,
VkQueryPool queryPool,