summaryrefslogtreecommitdiffstats
path: root/src/vulkan
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-12-28 09:45:07 +1000
committerDave Airlie <[email protected]>2017-12-28 09:57:33 +1000
commit78a8b73e7d45f55ced98a148b26247d91f4e0171 (patch)
treed18ca7daa91b80f3b82e7ca94cf659fa6bf9dcf2 /src/vulkan
parenta636208ace00e5ba7ddb331362b3e95fd4cea422 (diff)
vulkan/wsi: free cmd pools
We destroy the pools but don't free the container. This fixes: dEQP-VK.wsi.xlib.swapchain.simulate_oom* Fixes: d50937f137 (vulkan/wsi: Implement prime in a completely generic way) Reviewed-by: Bas Nieuwenhuizen <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/vulkan')
-rw-r--r--src/vulkan/wsi/wsi_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vulkan/wsi/wsi_common.c b/src/vulkan/wsi/wsi_common.c
index 2de5f154c8a..e9e43e12048 100644
--- a/src/vulkan/wsi/wsi_common.c
+++ b/src/vulkan/wsi/wsi_common.c
@@ -156,6 +156,7 @@ wsi_swapchain_finish(struct wsi_swapchain *chain)
chain->wsi->DestroyCommandPool(chain->device, chain->cmd_pools[i],
&chain->alloc);
}
+ vk_free(&chain->alloc, chain->cmd_pools);
}
static uint32_t