ValveSoftware / gamescope

SteamOS session compositing window manager
Other
3.12k stars 211 forks source link

Buffer synchronization issues with Intel iGPUs #240

Open Sterophonick opened 3 years ago

Sterophonick commented 3 years ago

I own a Lenovo Thinkpad X1 Carbon with Intel hardware. When playing certain windowed-mode games in fullscreen with Gamescope, I noticed that there was this very obvious corruption with the Gamescope Vulkan surface. It's worth noting that these games use SDL, and I believe that these games are software-rendered as well. Perhaps it could be an Intel issue, but I'm not too sure. It's also worth noting that on an external monitor it does not happen, or at least is less visible.

https://www.youtube.com/watch?v=1JuMqs-Ls-g

Specs:

emersion commented 3 years ago

Smells like a buffer synchronization issue.

emersion commented 3 years ago

Does it work with the latest commit? We've changed how shm buffers are imported.

Sterophonick commented 3 years ago

Issue has not been fixed unfortunately.

emersion commented 3 years ago

Ref https://lore.kernel.org/amd-gfx/20210920103133.3573-1-contact@emersion.fr/T/#u which might help.

Sterophonick commented 3 years ago

Might it be related to the fact that I have an Intel iGPU? I hope that's the case.

Sterophonick commented 3 years ago

Doing some more testing and I've figured out what triggers it. It affects a lot more than a few niche SDL games, but I don't know the full extent of what it affects. I've only seen it happen on my laptop's screen, but it does not occur when I have an external monitor, a Samsung SyncMaster P2450, connected.

Notice the streaks here? These are visible when the screen updates in that area. Screenshot_20210922-170655_Video Editor