swaywm / sway

i3-compatible Wayland compositor
https://swaywm.org
MIT License
14.09k stars 1.08k forks source link

SDL2 games show black screen when running in fullscreen + keeping desktop resolution. #8161

Open vanfanel opened 1 month ago

vanfanel commented 1 month ago
Nefsen402 commented 1 month ago

Sounds like an issue with direct scanout. Running sway with the environment WLR_SCENE_DISABLE_DIRECT_SCANOUT=1 will disable the feature and work around the problem. This is likely a bug with your video drivers. The last thing in the logs is direct scanout being entered right before sway is shutting down; although there are buffer allocations in between, I wonder why those are there (but those aren't going causing your bug).

vanfanel commented 1 month ago

Sounds like an issue with direct scanout. Running sway with the environment WLR_SCENE_DISABLE_DIRECT_SCANOUT=1 will disable the feature and work around the problem. This is likely a bug with your video drivers. The last thing in the logs is direct scanout being entered right before sway is shutting down; although there are buffer allocations in between, I wonder why those are there (but those aren't going causing your bug).

If it's my video driver (Intel, btw), why is Sway the only affected WLRoots compositor?

vanfanel commented 2 weeks ago

@Nefsen402 Also, setting WLR_SCENE_DISABLE_DIRECT_SCANOUT=1 does NOT work around the issue.

vanfanel commented 2 weeks ago

Another wlroots-based compositor where this bug is not present is Wayfire (https://github.com/WayfireWM/wayfire).