vulkan/wsi/wayland: Respect non-blocking AcquireNextImage
authorDaniel Stone <daniels@collabora.com>
Tue, 30 Oct 2018 12:56:53 +0000 (12:56 +0000)
committerEric Engestrom <eric@engestrom.ch>
Thu, 2 May 2019 11:51:03 +0000 (11:51 +0000)
commit9826e04eca69d04b64258d26983410bd2470f607
treebe144d056a7bbc4c49ce1ea9fea3bd9117499649
parent8a67e4d30adee205d15443bdfe18955fb1a1230b
vulkan/wsi/wayland: Respect non-blocking AcquireNextImage

If the client has requested that AcquireNextImage not block at all, with
a timeout of 0, then don't make any non-blocking calls.

This will still potentially block infinitely given a non-infinte
timeout, but the fix for that is much more involved.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Cc: mesa-stable@lists.freedesktop.org
Cc: Chad Versace <chadversary@chromium.org>
Cc: Jason Ekstrand <jason@jlekstrand.net>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108540
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Chad Versace <chadversary@chromium.org>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
src/vulkan/wsi/wsi_common_wayland.c