vkswapper: fix up display synchronization
authorMatthew Waters <matthew@centricular.com>
Thu, 5 May 2016 13:18:11 +0000 (23:18 +1000)
committerMatthew Waters <matthew@centricular.com>
Thu, 5 May 2016 13:54:16 +0000 (23:54 +1000)
commit77f6e253e18709d4e83b2adc200c2288ec9ceeff
tree98a0ae1af836460e7ff0116d6034f540633360cb
parent267588fb5e076aaea794f9e795b35ca30a577958
vkswapper: fix up display synchronization

Use the semaphores in the correct place, before and after the submission for
acquiring and presenting the swapchain buffer.

Waiting on the fence that only signals the command buffer completion rather than
the completion of the presentation is racy with the destruction of the vulkan
buffers associated with that image.  Wait on the device to be idle instead after
presenting.
ext/vulkan/vkswapper.c