mesa/src/vulkan
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
..
device-select-layer vulkan/device_select: avoid segfault on Wayland if wl_drm is unavailable 2021-05-04 21:26:21 +00:00
overlay-layer vulkan/overlay: Fix violation of VUID-VkMappedMemoryRange-size-01389 2021-07-30 11:38:40 +00:00
registry vulkan: Update the XML and headers to 1.2.190 2021-08-30 18:39:20 +00:00
util turnip: implement basic perfetto support 2021-09-10 14:58:28 +03:00
wsi X11: Ensure that VK_SUBOPTIMAL_KHR propagates to user code 2021-09-20 16:43:10 +00:00
meson.build vulkan/wsi: add support for detecting mit-shm pixmaps. 2021-08-29 20:26:13 +00:00
vulkan-icd-symbols.txt vulkan: Allow global symbol HMI for Android 2020-08-05 18:08:07 +00:00