Skip to content

Revert "vulkan/wsi/x11: lower resize events to VK_SUBOPTIMAL_KHR"

Daniel Schürmann requested to merge daniel-schuermann/mesa:wsi-resize into main

If the surface extend goes beyond the window extend, this might result in unsupported resolutions in full screen applications.

Fixes: 0245b825 ('vulkan/wsi/x11: lower resize events to VK_SUBOPTIMAL_KHR')

The current behavior causes either a crash (xwayland) or "out of range" black screen (X11) on startup of Metro: Exodus when the game is trying to replay intro videos. The resize seems to attempt a resolution of 1440x758 in a fullHD window. Maybe the game just doesn't handle the VK_SUBOPTIMAL_KHR return value... I admit, I have very limited knowledge about this area of the driver. So, please feel free to correct me and suggest a better solution.

Edited by Daniel Schürmann

Merge request reports