vulkan/wsi: Destroy swapchain images after terminating FIFO queues
authorCameron Kumar <ckumar@feralinteractive.com>
Fri, 1 Jun 2018 11:16:19 +0000 (12:16 +0100)
committerAlex Smith <asmith@feralinteractive.com>
Fri, 8 Jun 2018 13:06:46 +0000 (14:06 +0100)
commitcb03803253b026d5f4c1e0fef431a12df461e6d8
tree595fde24c942a651fa17ecffed94efaa5eed3084
parentce64c1b70aa8e5618e7dbe8e6dc8ef83676afb06
vulkan/wsi: Destroy swapchain images after terminating FIFO queues

The queue_manager thread can access the images from x11_present_to_x11,
hence this reorder prevents dereferencing of dangling pointers.

Cc: "18.1" <mesa-stable@lists.freedesktop.org>
Fixes: e73d136a023080 ("vulkan/wsi/x11: Implement FIFO mode.")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/vulkan/wsi/wsi_common_x11.c