vulkan/wsi: free cmd pools
authorDave Airlie <airlied@redhat.com>
Wed, 27 Dec 2017 23:45:07 +0000 (09:45 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 27 Dec 2017 23:57:33 +0000 (09:57 +1000)
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 <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/vulkan/wsi/wsi_common.c

index 2de5f154c8a8d8606bed9e26a1b4f9861defa388..e9e43e120482c0c66e3b6120867ad2c6a1a6a741 100644 (file)
@@ -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