Support us on Patreon to keep GamingOnLinux alive. This ensures all of our main content remains free for everyone. Just good, fresh content! Alternatively, you can donate through PayPal. You can also buy games using our partner links for GOG and Humble Store.
We do often include affiliate links to earn us some pennies. See more here.

Another exciting moment for fans of Wayland and the future of Linux, especially if you're an NVIDIA user, as the work to provide hardware accelerated rendering for NVIDIA GPUs was merged in for Xwayland. We've been following this work for a while, as an upcoming NVIDIA driver will have the code in for everything to be in place (likely NVIDIA 470).

To save you clicking around, this is what NVIDIA engineer Erik Kurzinger said about the patches:

These two patches are intended to accompany upcoming support in the proprietary NVIDIA driver for hardware accelerated GL and Vulkan rendering with Xwayland. They shouldn't interfere with the current swrast-based GL support, so once the driver-side changes are out the door things should just start working. I wanted to send these out for consideration first, though, in case anyone has any substantial concerns with the general approach. See the commit messages for further details on the implementation.

Performance should be roughly on-par with native X11 based on the benchmarking I've done. There's still an annoying extra copy required for presentation of windowed applications, but the impact doesn't appear to be significant, and full-screen applications won't have that issue (provided the compositor supports the required zwp_linux_dmabuf_v1 interface).

Since more distributions are moving over to Wayland from the old Xorg, this is a huge and important step. Even Ubuntu is targetting Wayland as the default for the upcoming Ubuntu 21.04 release. Still, it will be some time before all the major distributions have releases out with this new Xwayland support in for NVIDIA. It's possible we will see this land in the likes of Ubuntu 21.10, so more likely towards the end of this year.

You can see the Merge Request here.

Other interesting upcoming work includes another Merge Request that's not yet merged, which would enable the loading of alternative GBM backends.

Article taken from GamingOnLinux.com.
34 Likes
About the author -
author picture
I am the owner of GamingOnLinux. After discovering Linux back in the days of Mandrake in 2003, I constantly checked on the progress of Linux until Ubuntu appeared on the scene and it helped me to really love it. You can reach me easily by emailing GamingOnLinux directly.
See more from me
The comments on this article are closed.
19 comments
Page: 1/2»
  Go to:

Great news. Maybe Nvidia and KDE will properly support Wayland at about the same time
Luke_Nukem Apr 9, 2021
This work plus the 470 driver fixing hybrid laptop things is pretty exciting
iiari Apr 9, 2021
View PC info
  • Supporter Plus
Quoting: Luke_NukemThis work plus the 470 driver fixing hybrid laptop things is pretty exciting
Absolutely, very big news that allows Wayland to really be a complete solution for nearly everyone now.
slaapliedje Apr 9, 2021
I wonder how much of this is for Redhat. Sure most people don't think RHEL when they think of gaming. But consider NVIDIA just recently opened official repositories for RH (they don't have them for any other distribution) and specifically for Quadro use. The fixes to hybrid graphics could also be down to RH based workstations (think Thinkpad P-series) needing it.

The wayland work also likely due to what I would assume the eventual inclusion in RH 9.x, or possibly a newer 8.x update.

Not that I am a huge Redhat fan, but they do seem to finance a huge majority of the Linux projects in some way.
CatKiller Apr 9, 2021
View PC info
  • Supporter Plus
Quoting: slaapliedjeNot that I am a huge Redhat fan, but they do seem to finance a huge majority of the Linux projects in some way.
Red Hat makes about $ 4 billion a year. The next biggest AFAIK, SUSE, only makes about $ 450 million. If Red Hat weren't using their money to fund stuff, that would really suck.
Sojiro84 Apr 10, 2021
Quoting: Luke_NukemThis work plus the 470 driver fixing hybrid laptop things is pretty exciting

What is a hybrid laptop?

Is that what I have on my work laptop? Which is a Intel CPU and also a Intel GPU inside of it and a dedicated NVIDIA GPU?

Right now, on my work laptop, I am using the nouveau drivers because they perform better with KDE and with the nouveau drivers I can also set 2560x1440 as a resolution on my 4K laptop screen.

With the official drivers I cant change it from 3840x2160 on my laptop screen.

Pretty annoying since I don't want to use scaling ever since it never works properly 100% regarding how apps themselves scale.
mike456 Apr 10, 2021
Why XWayland and not Wayland? What's the difference? I want to use Wayland for the enhanced security as soon as possible.
CatKiller Apr 10, 2021
View PC info
  • Supporter Plus
Quoting: mike456Why XWayland and not Wayland? What's the difference? I want to use Wayland for the enhanced security as soon as possible.
XWayland is for running X applications (so approximately all games, and legacy applications) on Wayland.

Wayland on Nvidia works approximately fine with some compositors (with the known Nvidia and Wayland issues) but XWayland on Nvidia wasn't hardware accelerated, which makes it not terribly useful. This work is to enable hardware acceleration for XWayland.
slaapliedje Apr 10, 2021
Quoting: Guest
Quoting: slaapliedjeI wonder how much of this is for Redhat. Sure most people don't think RHEL when they think of gaming. But consider NVIDIA just recently opened official repositories for RH (they don't have them for any other distribution) and specifically for Quadro use. The fixes to hybrid graphics could also be down to RH based workstations (think Thinkpad P-series) needing it.

The wayland work also likely due to what I would assume the eventual inclusion in RH 9.x, or possibly a newer 8.x update.

Not that I am a huge Redhat fan, but they do seem to finance a huge majority of the Linux projects in some way.

I am a little unsure what do you mean by "official repositories for Red Hat". Just a driver package repo or some other form of repository?

In case of the first: https://download.nvidia.com/opensuse/
The is at least for openSUSE a dedicated repo hosted on the nvidia servers since several years now.

My apologize if I may misunderstand here something. I am just curious what you mean :D
Oh, well I'll be (and yes that's what I meant). I'm not sure how recent the RHEL ones were, but pretty sure when I had checked before last year, it did not exist. kind of surprised that opensuse has one. I mean I could see SLES having it. Is SLES still a thing?
robvv Apr 11, 2021
Quoting: slaapliedje
Quoting: Guest
Quoting: slaapliedjeI wonder how much of this is for Redhat. Sure most people don't think RHEL when they think of gaming. But consider NVIDIA just recently opened official repositories for RH (they don't have them for any other distribution) and specifically for Quadro use. The fixes to hybrid graphics could also be down to RH based workstations (think Thinkpad P-series) needing it.

The wayland work also likely due to what I would assume the eventual inclusion in RH 9.x, or possibly a newer 8.x update.

Not that I am a huge Redhat fan, but they do seem to finance a huge majority of the Linux projects in some way.

I am a little unsure what do you mean by "official repositories for Red Hat". Just a driver package repo or some other form of repository?

In case of the first: https://download.nvidia.com/opensuse/
The is at least for openSUSE a dedicated repo hosted on the nvidia servers since several years now.

My apologize if I may misunderstand here something. I am just curious what you mean :D
Oh, well I'll be (and yes that's what I meant). I'm not sure how recent the RHEL ones were, but pretty sure when I had checked before last year, it did not exist. kind of surprised that opensuse has one. I mean I could see SLES having it. Is SLES still a thing?

Yes it is :-) SLES 15 is the current version.

Nvidia has had an OpenSUSE repo for well over ten years. The only occasional problem is that some beta drivers do not appear in that repo.
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon. Plain Donations: PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
The comments on this article are closed.