Skip to content

vulkan/wsi/wayland: Set num_modifier_lists = 0 if num_drm_modifiers == 0

This case was missed in !18826 (merged) , resulting in native Wayland apps failing with

../src/vulkan/wsi/wsi_common_drm.c:452: wsi_configure_native_image: Assertion `!"Failed to find a supported modifier! This should never " "happen because LINEAR should always be available"' failed.

if the Wayland compositor advertises only the INVALID modifier.

Fixes: c315e20d ("vulkan/wsi/wayland: Configure images via params passed to wsi_swapchain_init()")

Merge request reports