GPU Compositing doesn't enable in firefox snap
Categories
(Core :: Graphics: WebRender, defect)
Tracking
()
People
(Reporter: superm1, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
Steps to reproduce:
I opened up the Firefox snap on Ubuntu 22.04 and checked about:support.
I saw that it has "WebRender (Software)"
I then installed the firefox-esr from the mozilla PPA and compared there.
I saw that it has "WebRender"
Actual results:
Software composting was used
Expected results:
Hardware compositing should have been used
Reporter | ||
Comment 1•1 year ago
|
||
Comment 2•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Graphics: WebRender' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 3•1 year ago
|
||
Would you please also post your about:support from Firefox snap? That might tell us why software webrender was selected. Please also confirm that if you navigate to "about:config" that "gfx.webrender.software" is set to false.
Reporter | ||
Comment 4•1 year ago
|
||
Would you please also post your about:support from Firefox snap? That might tell us why software webrender was selected.
Didn't I post that above? I posted two separate attachments, maybe you missed one.
Please also confirm that if you navigate to "about:config" that "gfx.webrender.software" is set to false.
Yes, haven't touched anything there.
Comment 5•1 year ago
|
||
(In reply to Mario Limonciello from comment #4)
Didn't I post that above? I posted two separate attachments, maybe you missed one.
Ah, indeed you did, thank you. Okay, here's what that says. It says that your PPA package adapter and driver is
"adapterDescription": "GFX1103_R1 (gfx1103_r1, LLVM 15.0.7, DRM 3.54, 6.5.0-1003-oem)",
"adapterVendorID": "0x1002",
"adapterDeviceID": "0x15bf",
"driverVendor": "mesa/radeonsi",
"driverVersion": "23.0.4.0",
which qualifies for hardware WebRender. Your snap package adapter and driver is
"adapterDescription": "llvmpipe (LLVM 12.0.0, 256 bits)",
"adapterVendorID": "Mesa/X.org",
"adapterDeviceID": "llvmpipe (LLVM 12.0.0, 256 bits)",
"driverVendor": "mesa/llvmpipe",
"driverVersion": "21.2.6.0",
which does not qualify for hardware, so you get software WebRender. That's surprising to get different values on the same hardware. It almost looks like the snap package is running through a VM, or perhaps its forced to do so by how Wayland works. I'll find somebody who understands this better and figure out if we can do anything to improve this.
Comment 6•1 year ago
|
||
That sounds like relatively new AMD hardware ("Phoenix1"). It's not totally surprising if Mesa 23.0.4 supports it while 21.2.6 (used by the snap) does not.
Mario, do you know what the minimum Mesa version requirement is for that chip?
Comment 7•1 year ago
|
||
Mario: I suspect this is a case of the Mesa inside the snap sandbox being too old for your hardware.
I think at the time you tested this, the stable channel was pointing at a core20 build, so was using the Mesa build from Ubuntu 20.04 updates (21.2.6). The current build on that channel is now based on core22, so should pick up a newer Mesa: 22.2.5 for now, and probably 23.0.4 soon when the gnome-42-2204 snap is updated.
I'm unsure of what the minimum Mesa version is that supports your hardware, but hopefully one of those versions will give better results.
Comment 8•1 year ago
|
||
Going by the string "GFX1103" it looks like it needs Mesa >= 22.2. And that should be provided by the gnome-42-2204 snap. And it looks like firefox stable is on core22 now:
$ snap info --verbose firefox | grep base:
base: core22
So perhaps it's already fixed?
Comment 9•1 year ago
|
||
(In reply to Daniel van Vugt from comment #8)
Going by the string "GFX1103" it looks like it needs Mesa >= 22.2. And that should be provided by the gnome-42-2204 snap. And it looks like firefox stable is on core22 now:
Would you please re-test with an updated snap package?
Reporter | ||
Comment 10•1 year ago
|
||
Yes, I confirmed it's working now with the updated snap, thanks. I'll close the bug.
As a general question though; how often is this going to happen? It used to be that upgraded mesa would come in Ubuntu as HWE packages as the interim releases between LTS come out. That's enough for an accelerated GNOME desktop, but is there any chance you can match the cadence for the snap that provides updated mesa?
Description
•