radv: Also signal fence if vkAcquireNextImageKHR returns VK_SUBOPTIMAL_KHR.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 24 May 2017 18:23:04 +0000 (20:23 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 28 May 2017 22:09:45 +0000 (00:09 +0200)
It is a successful return.

Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_wsi.c

index 3a8617fd8fabffd7e456fad53f085d0b50139f23..5e866126b91886575a60bf6722a5e57b74f096b8 100644 (file)
@@ -438,7 +438,7 @@ VkResult radv_AcquireNextImageKHR(
        VkResult result = swapchain->acquire_next_image(swapchain, timeout, semaphore,
                                                        pImageIndex);
 
-       if (fence && result == VK_SUCCESS) {
+       if (fence && (result == VK_SUCCESS || result == VK_SUBOPTIMAL_KHR)) {
                fence->submitted = true;
                fence->signalled = true;
        }