vulkan/wsi/x11: Wait for GPU work before present with mailbox.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 20 May 2019 01:10:46 +0000 (03:10 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 26 Jul 2019 14:37:28 +0000 (16:37 +0200)
commit5eae9bfbfcb3cdc8d7c82adaf99350ac30d40dce
tree267cc2ed36efc45c8346d5e3a3caee4dce727d9a
parentcc6a72a00261b057a662459dd7f00ebba5e28708
vulkan/wsi/x11: Wait for GPU work before present with mailbox.

Otherwise the wait only happens at flip time, which messes with
keeping idle buffers around if the GPU work makes the image miss
the next flip.

I decided not to use the wait fences as those are still xshm fences,
so that means we'd still have to wait in the application. Just doing
it before presenting makes things simpler.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/vulkan/wsi/wsi_common_x11.c