vulkan/overlay: Add a workaround semaphore for application presenting without one
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 20 Feb 2020 12:29:22 +0000 (14:29 +0200)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 25 Mar 2020 11:42:01 +0000 (13:42 +0200)
commit12711939320e4fcd3a0d86af22da1042ad92035f
treeb5a7b0e8b734d744ebdf748b233ef7f852eff910
parent5533c41541f57774314517d893045eedfc5b2da1
vulkan/overlay: Add a workaround semaphore for application presenting without one

When an application calls vkQueuePresent() on a different queue than
the one we run our drawing on and it doesn't give a semaphore to wait
on, let's insert our own semaphore so that we don't race the
application's drawing.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2540
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3893>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3893>
src/vulkan/overlay-layer/overlay.cpp