Intel/Iris: Corrupted rendering of OpenGL apps in gamescope
On Intel, applications using OpenGL show corrupted rendering when running inside gamescope:
For OpenGL applications, this happens with Mesa 21.3.5 as well as latest main
3d41414d. The same corruption also used happen when running vulkan applications inside gamescope on Intel with Mesa 21.3.5, but there it is solved in latest main
by commit ca791f5c. (reverting just this commit on main
breaks it again)
For both GL and vulkan, the corruption can be avoided by setting INTEL_DEBUG=norbc.
This issue was originally reported to gamescope here and indeed rolling back gamescope to a commit prior to 23430084e2245e226f27dbe1882bd30633a1d50c makes the issue disappear on Intel. The bug doesn't occur on AMD, so presumably it is an Intel driver bug.
To reproduce:
- clone the gamescope repo with submodules and build it with meson
- run
gamescope -- glxgears
My system:
- Intel i5-8250U with UHD 620 KBL GT2
- Arch Linux
- kernel 5.16.8
- Mesa 21.3.5 or
main
3d41414d - Gnome 41.3
- xorg-server 21.1.3