xwayland: Activate Present flips in rootless mode with Glamor breaks several wine games
This only happens on Wayland (GNOME) sessions, X11 sessions run the games (Skyrim SE, DarkSouls 3) fine.
This was introduced in xorg 1.20 development cycle, more specifically by commit be087778.
The games feeze as soon as the main menus are supposed to be shown. Sometimes the menus get drawn only to freeze couple of frames later. GNOME dialog to wait for program to respond or force close appears.
I have also noticed that running games with DXVK apitrace dlls run the games incredibly slowly (1 frame every 5 or so seconds) but doesn't seem to hang XWayland completely. The force close dialog never appears suggesting this might be related to how fast this XWayland code is invoked.
Since reproduction of the bug requires wine, dxvk and commercial software i don't expect anyone to reproduce the bug, however i would like to ask if anyone familiar with code paths would be willing to look over the mentioned commit to double check it?
If the previous code paths are still viable could a revert patch for testing be produced? (not a systems programmer, let alone X developer - there are conflicts trying to revert the mentioned commit).
Maybe i can run XWayland with some debug options to get more info?
Any feedback/ideas are much appreciated.
System info
DXVK v0.94 (AMDGPU RX580)
xorg-server 1.20.3
xorg-server-xwayland 1.20.3
mesa 18.3.1
vulkan-radeon 18.3.1
linux 4.19.12.arch1
wine-staging 4.0rc3