mesa/src/vulkan/wsi
Zachary Michaels fc5ea6a054 X11: Ensure that VK_SUBOPTIMAL_KHR propagates to user code
Commit 0245b825 switched from returning the error code VK_ERROR_OUT_OF_DATE_KHR
to returning the success code VK_SUBOPTIMAL_KHR. Prior to that commit, the error
code caused all code paths to fail immediately, but the success code does not.

Currently the success code is not recorded in some scenarios, resulting in a
result of VK_SUCCESS instead. This breaks applications that rely on the
result (per the spec) to trigger resizes.

This commit ensures that the proper VK_SUBOPTIMAL_KHR success code is set as a
sticky status (as comments indicate was intended), ensuring that it is
propagated to user code.

Fixes #5331

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12782>
2021-09-20 16:43:10 +00:00
..
meson.build vulkan/wsi/wayland: drop support for wl_drm 2021-08-16 10:22:17 +02:00
wsi_common.c vulkan/wsi/sw: wait for image fence before submitting to queue 2021-08-24 03:30:17 +10:00
wsi_common.h vulkan/wsi/x11: add driconf option to not wait under Xwayland 2021-09-13 19:38:13 +00:00
wsi_common_display.c vulkan/wsi/sw: add support for using host_ptr for shm pixmaps. 2021-08-29 20:26:13 +00:00
wsi_common_display.h vulkan/wsi: Implement VK_EXT_acquire_drm_display 2021-06-24 15:48:38 +00:00
wsi_common_drm.c vulkan/wsi/sw: add support for using host_ptr for shm pixmaps. 2021-08-29 20:26:13 +00:00
wsi_common_private.h vulkan/wsi/sw: add support for using host_ptr for shm pixmaps. 2021-08-29 20:26:13 +00:00
wsi_common_queue.h vulkan/wsi: Fix resource leak in success path of wsi_queue_init() 2016-11-28 21:11:25 +00:00
wsi_common_wayland.c vulkan/wsi/sw: add support for using host_ptr for shm pixmaps. 2021-08-29 20:26:13 +00:00
wsi_common_wayland.h
wsi_common_win32.c vulkan/wsi/sw: add support for using host_ptr for shm pixmaps. 2021-08-29 20:26:13 +00:00
wsi_common_win32.h vulkan: implement wsi_win32 backend 2021-02-25 03:41:36 +00:00
wsi_common_x11.c X11: Ensure that VK_SUBOPTIMAL_KHR propagates to user code 2021-09-20 16:43:10 +00:00
wsi_common_x11.h vulkan: drop always-true param 2018-10-26 18:33:11 +01:00