protonscr

Steam client has rendering glitches when running on Prime Render Offload via XWayland with Nvidia driver 495

steamclosed NVIDIA driversSteam clientDistro Family: Fedora
ValveSoftware/steam-for-linux#8194 · opened 2021-10-30 by MateusRodCosta · updated 2023-01-06 · 8 comments · github
MMateusRodCosta 2021-10-30 github

Your system information

  • Steam client version (build number or date): Oct 29 2021
  • Distribution (e.g. Ubuntu): Fedora Silverblue 35 (Flatpak)
  • Opted into Steam client beta?: [Yes/No] Yes
  • Have you checked for system updates?: [Yes/No] Yes

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:

  1. Install Nvidia 495 on a Nvidia Optimus system
  2. Boot Gnome on Wayland
  3. Run Steam via Prime Render Offfload (for example, the "Run in dedicated GPU" option offered via GUI)
  4. Glitches should be happening now

An screenshot showing the issue:
Captura de tela de 2021-10-30 12-45-49

MMateusRodCosta 2021-10-30 github

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.

MMateusRodCosta 2021-12-12 github

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.

Mmorfyum 2022-02-27 github

Issue is still on fresh, up to date Fedora 35: [ 2022-02-27 ]

  • Intel/Nvidia 470.x driver (i5 5200U + 920M)
  • Gnome 41
  • Wayland

Halft window is goin black for a short moment when moving mouse on elements in Default Store page.

Bbuddhi-deep 2022-05-02 github

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

NnullSupernova 2022-05-16 github

I believe this is caused by (or at least related to) this:
https://gitlab.freedesktop.org/xorg/xserver/-/issues/1317

Bbuddhi-deep 2022-05-17 github

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

Ppm4rcin 2022-10-13 github

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. :)

MMateusRodCosta 2023-01-06 github

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.