Closed Bug 1860144 Opened 2 years ago Closed 2 years ago

Running Firefox via Ubuntu Snap shows no WebGPU Adapters

Categories

(Core :: Graphics: WebGPU, defect)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: jkratzer, Assigned: seb128)

References

(Blocks 2 open bugs)

Details

Attachments

(2 files)

Attached file about_support.log

Running Firefox installed via the Ubuntu snap on trunk shows available WebGPU adapters in about:support.

Version: 120.0a1
Build ID: 20231013034657

I can reproduce this as well on Fedora. When I run a local Firefox build, about:support shows two WebGPU adapters, but when I do sudo snap install firefox --edge and then snap run firefox, about:support shows two null WebGPU adapters.

Flags: needinfo?(mozilla)

Mike, who can we talk to about this?

Forwarding the info to canonical.

Flags: needinfo?(mozilla)

out of curiosity, snap connections firefox ? does WebGPU depends on mesa at some level ?

:gerard-majax: Mesa 22.2.5 is what we currently test on Wayland's soft-rendering CI, AIUI. We need it for a Vulkan adapter.

Confirmed, does anyone has some pointers on how firefox is querying for the GPUs available?

Looks like we just lack vulkan support within the Snap. Isn't GLES supposed to work ? If so, what is required for it ?

Trying to stage libvulkan and the vulkan drivers in the snap and tweaking the icd path isn't enough to get a gpu listed but it also displays that apparmor error

audit: type=1400 audit(1698087364.021:1473): apparmor="DENIED" operation="open" class="file" profile="snap.firefox.firefox" name="/etc/igfx_user_feature.txt" pid=64382 comm="vaapitest" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0

unsure if that's enough to make vulkan not working properly though

Blocks: snap
Attached file GitHub Pull Request
Assignee: nobody → seb128

Upstream has a fix that adds Vulkan to the Snap package. Locally I can confirm on my AMD GPU that it now exposes in about:support, so you should likely re-test when it ships (next nightly ?)

Flags: needinfo?(jkratzer)
Flags: needinfo?(jimb)
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED

(In reply to :gerard-majax from comment #10)

Upstream has a fix that adds Vulkan to the Snap package. Locally I can confirm on my AMD GPU that it now exposes in about:support, so you should likely re-test when it ships (next nightly ?)

I just verified this on the latest snap and the WebGPU adapters are visible.

Flags: needinfo?(jkratzer)
Flags: needinfo?(jimb)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: