Open Bug 1717715 Opened 3 years ago Updated 2 years ago

GLX/xwayland/Nvidia: llvmpipe is shown as active GPU#1 although WebGL tells us it's running on Nvidia

Categories

(Core :: Graphics: WebRender, defect, P3)

Firefox 91
x86_64
Linux
defect

Tracking

()

Tracking Status
firefox-esr78 --- unaffected
firefox89 --- wontfix
firefox90 --- wontfix

People

(Reporter: Vash63, Unassigned)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(5 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0

Steps to reproduce:

  1. Install xwayland-git or another branch including this patch: https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/587
  2. Install Nvidia 470 or higher drivers
  3. Run Nightly in Xwayland (default)

Actual results:

Firefox runs fine, Compositing shows "WebRender" (no software) and WebGL shows Nvidia drivers loaded, however "GPU #1" shows the GPU as llvmpipe on mesa.

Expected results:

Firefox should run in XWayland with hardware GL acceleration.

I was able to get the exact commit that caused this with mozregression:
9:57.56 INFO: No more integration revisions, bisection finished.
9:57.56 INFO: Last good revision: 1c59701a68c9e52fcdc0bf02c02eb1dca962bc6f
9:57.56 INFO: First bad revision: c2a14298ecf313c001958c37d49cb5d9e6b7894a
9:57.56 INFO: Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=1c59701a68c9e52fcdc0bf02c02eb1dca962bc6f&tochange=c2a14298ecf313c001958c37d49cb5d9e6b7894a

Attached file about:support information (deleted) —

The Bugbug bot thinks this bug should belong to the 'Core::Graphics: WebRender' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Graphics: WebRender
Product: Firefox → Core
Regressed by: 1680512
Has Regression Range: --- → yes

This looks similar to Bug 1714069.
:rmader, can you comment to the bug?

Flags: needinfo?(robert.mader)

Vash63, once bug 1646135 has landed and a new nigthly was build (~12h from now), could you:

  • provide a fresh about:support and check if the same issue is still the case
  • start FF with MOZ_ENABLE_WAYLAND=1, check if things work and post the about:support
    ?

Thanks in advance!

Flags: needinfo?(robert.mader) → needinfo?(Vash63)
Attached file new about:support (deleted) —

There is a change - about:support now shows a second GPU entry which is disabled, vendor ID 0x10de which is Nvidia's. This is still in XWayland.

Flags: needinfo?(Vash63)
Attached file about:support with Wayland native (deleted) —

With native Wayland the issue is totally fixed, it only shows one GPU and it is the Nvidia one. Performance is also noticeably smoother when scrolling.

Attached file about:support on X11 with MOZ_X11_EGL (deleted) —

It looks like MOZ_X11_EGL on X11 is also fixed, which broke for me over a year ago.

Severity: -- → S3
Priority: -- → P3
Blocks: wr-nv-linux
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Summary: Webrender using llvmpipe instead of Nvidia by default on xwayland → GLX/xwayland/Nvidia: llvmpipe is shown as active GPU#1 although WebGL tells us it's running on Nvidia

Vash63: Does this still happen on more recent versions?

Flags: needinfo?(Vash63)

(In reply to Robert Mader [:rmader] from comment #8)

Vash63: Does this still happen on more recent versions?

Yes, in XWayland it does still happen. With native Wayland the Nvidia card shows up as GPU #1.

Flags: needinfo?(Vash63)
Attached file Updated about:support (deleted) —

Oh, actually there is one change - now LLVMPIPE shows up as being used for WebGL also, the Nvidia driver isn't mentioned anywhere.

(In reply to Vash63 from comment #10)

Oh, actually there is one change - now LLVMPIPE shows up as being used for WebGL also, the Nvidia driver isn't mentioned anywhere.

Ah, this would be a expected outcome if some library is missing from the system, egl-wayland or so. In any case, it's a setup error that Firefox does get llvmpipe as GL driver on EGL.

(In reply to Robert Mader [:rmader] from comment #11)

(In reply to Vash63 from comment #10)

Oh, actually there is one change - now LLVMPIPE shows up as being used for WebGL also, the Nvidia driver isn't mentioned anywhere.

Ah, this would be a expected outcome if some library is missing from the system, egl-wayland or so. In any case, it's a setup error that Firefox does get llvmpipe as GL driver on EGL.

Other GL and Vulkan applications do work under XWayland for me though (and I do have egl-wayland installed, specifically this package from Nvidia's latest driver: https://trekker.guru/custom/nvidia-egl-wayland-tkg-470.63.01-175-x86_64.pkg.tar.zst )

The bug has a release status flag that shows some version of Firefox is affected, thus it will be considered confirmed.

Status: UNCONFIRMED → NEW
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: