Correctly wait in the fragment stage until all semaphores are signaled
authorGeorg Lehmann <dadschoorse@gmail.com>
Wed, 5 Feb 2020 18:06:55 +0000 (18:06 +0000)
committerGeorg Lehmann <dadschoorse@gmail.com>
Thu, 6 Feb 2020 15:16:47 +0000 (15:16 +0000)
commit1c79afd94620925cb9e0903f24f91c3ab9ecfcb4
tree95366f7eb064abd43193f186cb9ed4a9dfa205b8
parent451cf228d53ba8f51beb3dcf04370e126fb7ccb6
Correctly wait in the fragment stage until all semaphores are signaled

This fixes two issues:
- a crash if the application uses more than one semaphore for presenting because the driver expects one stage per semaphore
- the swapchain image could be not ready yet if the semaphores aren't signaled, #946 is possible related

Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3718>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3718>
src/vulkan/overlay-layer/overlay.cpp