[Mesa-dev] [PATCH] radv: Also signal fence if vkAcquireNextImageKHR returns VK_SUBOPTIMAL_KHR.
Fredrik Höglund
fredrik at kde.org
Thu May 25 18:20:12 UTC 2017
Reviewed-by: Fredrik Höglund <fredrik at kde.org>
On Wednesday 24 May 2017, Bas Nieuwenhuizen wrote:
> It is a successful return.
>
> Signed-off-by: Bas Nieuwenhuizen <basni at google.com>
> ---
> src/amd/vulkan/radv_wsi.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/amd/vulkan/radv_wsi.c b/src/amd/vulkan/radv_wsi.c
> index 3a8617fd8fa..5e866126b91 100644
> --- a/src/amd/vulkan/radv_wsi.c
> +++ b/src/amd/vulkan/radv_wsi.c
> @@ -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;
> }
>
More information about the mesa-dev
mailing list