Closed Bug 1871102 Opened 2 years ago Closed 1 years ago

Firefox snap disables AMD hardware decode by blocklist

Categories

(Core :: Graphics, defect)

Firefox 121
defect

Tracking

()

RESOLVED DUPLICATE of bug 1859291

People

(Reporter: superm1, Unassigned)

Details

Attachments

(1 file)

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

Steps to reproduce:

  1. Enable media.ffmpeg.vaapi.enabled to true.
  2. Try to play back content using hardware accelerated decoding in firefox snap.
  3. Try same thing in non-snap (firefox-esr)

Actual results:

No hardware accelerated video decode in snap.
Hardware accelerated video decode outside of snap.

Expected results:

Hardware accelerated video decode should work everywhere.

I notice the mesa version in the snap doesn't match what's in the host OS.
Snap (from that log):
WebGL 1 Driver Version: 4.6 (Compatibility Profile) Mesa 23.0.4-0ubuntu1~22.04.1

OS (from glxinfo):
$ glxinfo | grep "OpenGL core profile version string"
OpenGL core profile version string: 4.6 (Core Profile) Mesa 23.3.0-2ubuntu3

Maybe that's the issue and the snap needs a newer mesa for AMD decoding to keep working.
https://searchfox.org/mozilla-central/source/widget/gtk/GfxInfo.cpp#1113

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core
Component: Audio/Video: Playback → Graphics

Not sure our protocols for getting snaps updated. We'll discuss in triage.

Blocks: gfx-triage

How are you checking whether hardware accelerated decode is working?

Flags: needinfo?(superm1)

I was checking by using nvtop. When HW accelerated graphics is working it will show usage information in one of the graphs.

Flags: needinfo?(superm1)

Reaching out to Joel to see if we are doing our own snap builds.

Snap builds appear to be showing up on CI as tier-2, so maybe this is our path forward?
e.g. https://treeherder.mozilla.org/jobs?repo=try&revision=6cfb1cf0d7b3da3d619fdf523c534e0d37d78772

The severity field is not set for this bug.
:bhood, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(bhood)

Unfortunately, until mesa gets updated on 22.04 there wont be an updated version of it available to the Firefox Snap.

Status: UNCONFIRMED → RESOLVED
Closed: 1 years ago
Duplicate of bug: 1859291
Resolution: --- → DUPLICATE
No longer blocks: gfx-triage
Flags: needinfo?(bhood)

I don't think it will be updated again. They tend to only do it a few times between LTS releases. With 2404 around the corner probably won't again.

What's to stop the Firefox snap.yaml from building and using the newer mesa? It would sure help hardware support and bugs going forward.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: