vulkan/wsi: warn about unset present_mode in PresentModeCompatibilityExt
authorDerek Foreman <derek.foreman@collabora.com>
Fri, 25 Aug 2023 14:44:35 +0000 (09:44 -0500)
committerMarge Bot <emma+marge@anholt.net>
Wed, 30 Aug 2023 21:44:46 +0000 (21:44 +0000)
commitbf1c7ac5cf0da0af15b527ae835f572608a31520
tree85ac415823c3793cddc96d8197298ab266ef2bca
parenta48beddb564cc84663ad7f4b6bc814e1996bcea4
vulkan/wsi: warn about unset present_mode in PresentModeCompatibilityExt

A bug in vulkan tools, https://github.com/KhronosGroup/Vulkan-Tools/issues/846
causes vulkaninfo to crash in Mesa under wayland since the changes
in 5ceba97c

Handle the crashing case on wayland similarly to how other WSIs
do (nonsensically claiming a single compatible mode), and log
the condition once for all WSIs.

Fixes 5ceba97c2

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24888>
src/vulkan/wsi/wsi_common.h
src/vulkan/wsi/wsi_common_wayland.c
src/vulkan/wsi/wsi_common_win32.cpp
src/vulkan/wsi/wsi_common_x11.c