Back in December, Alexandros Frantzis from the Collabora team detailed the progress with Wine working natively on Wayland, rather than using XWayland as a workaround. Improvements made to Wine Wayland include:
- support for cross-process rendering – allows Chromium/CEF applications to run
- Chrome works without using any flags, and is fully GPU-accelerated on both OpenGL and Vulkan
- enhanced support for the linux-dmabuf v4 Wayland protocol – allows compositors to dynamically send info about optimal formats/modifiers
Collabora also posted a video showcasing Wine Wayland’s progress. In it are several games – some of which are 3D – running fairly well, including Call of Duty 2, Phoning Home, Factorio, and more. They also demonstrate LibreOffice and Chrome with accelerated cross-process rendering.
Now this work is finally being upstreamed, and is in the process of being reviewed. If the merge is approved, Wine will get native Wayland support. Brodie Robertson noted that some games have issues running with XWayland, and these issues will supposedly no longer exist once the game is run with Wine Wayland.
While we’re waiting for this to get merged (if it ever does; seems like there are some concerns from other Wine developers about the driver being feature-incomplete), if you’re feeling adventurous you can compile the Wayland driver yourself. But be aware, this seems very experimental; out there be dragons.