Hi, so actually I found out that there's a bug in the Nvidia driver that causes problems with XWayland: https://forums.developer.nvidia.com/t/glitches-with-nvidia-driver-470-optimus-render-offload-on-xwayland-with-vulkan-games/185278
This bug apparently goes back to 470 series, which I have a vague memory of also reproducing the issue on when I tried the NVidia driver on wayland a while ago.
What I don't know is if this issue I am reporting is just the Nvidia driver bug or if there's also something causing problems on the Steam client.
Ok, so after further investigation this bug is really solely Nvidia's driver fault.
If I run Steam with the Intel iGPU, no glitches. If I run Blender with the Nvidia dGPU I can also reproduce similar glitches.
Issue is still on fresh, up to date Fedora 35: [ 2022-02-27 ]
Halft window is goin black for a short moment when moving mouse on elements in Default Store page.
Possiable workaround (not to fix but reduce the glitch) found
gsettings set org.gnome.mutter experimental-features '["kms-modifiers"]'
I'm playing minecraft and met the same issue on prime-run xwayland, this should work for you guys
I believe this is caused by (or at least related to) this:
https://gitlab.freedesktop.org/xorg/xserver/-/issues/1317
I believe this is caused by (or at least related to) this: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1317
Yes, I tried to set this as an environment variable then the glitch is fixed, but has a lower frame rate
Add
XWAYLAND_NO_GLAMOR=1
To /etc/environment
I have a good message. It is no longer a problem since it was fixed in newest driver (I have tested just now). Confirmed by Erik Kurzinger from nvidia here. :)
It was fixed for me too, although I have very very rare tearing with games still (even Steam sometimes), but it doesn't bother me as much.
Nothing extracted yet.
Your system information
Please describe your issue in as much detail as possible:
Describe what you expected should happen and what did happen. Please link any large code pastes as a Github Gist
Expected no visual glitches, exactly how it would work on Xorg.
Instead, several glitches happen, like flashing elements, some elements are rendered as a black rectangle or as noise.
Those glitches don't happen if Steam is run via Intel on Wayland.
Steps for reproducing this issue:
An screenshot showing the issue:
