Webgpu on firefox
Asked Answered
P

2

6

I am on the latest firefox for linux: 115.0.2 (64-bit) (NOTE: Same issue on Firefox 116.0b5 (64-bit))

I enabled webgpu using about:config like so:

config

Yet, when running an example, the browser reports no support:

error

Why doesn't firefox let me run webgpu code?

$ inxi -G
Graphics:
  Device-1: Intel AlderLake-S GT1 driver: i915 v: kernel
  Device-2: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
    driver: amdgpu v: kernel
  Display: x11 server: X.Org v: 1.21.1.7 with: Xwayland v: 22.1.8 driver: X:
    loaded: amdgpu,modesetting unloaded: fbdev,radeon,vesa dri: iris gpu: i915
    resolution: 3840x2160~60Hz
  API: OpenGL v: 4.6 Mesa 23.0.2 renderer: Mesa Intel UHD Graphics 770
    (ADL-S GT1)

Vulkan information:

Devices:
========
GPU0:
    apiVersion         = 1.3.238
    driverVersion      = 23.0.2
    vendorID           = 0x8086
    deviceID           = 0x4680
    deviceType         = PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU
    deviceName         = Intel(R) UHD Graphics 770 (ADL-S GT1)
    driverID           = DRIVER_ID_INTEL_OPEN_SOURCE_MESA
    driverName         = Intel open-source Mesa driver
    driverInfo         = Mesa 23.0.2
    conformanceVersion = 1.3.0.0
    deviceUUID         = fd8cf190-0bdb-4dd5-b941-a7eb5b383e9c
    driverUUID         = 9bb8225e-db2e-6a20-282d-526794955fa9
GPU1:
    apiVersion         = 1.3.238
    driverVersion      = 23.0.2
    vendorID           = 0x1002
    deviceID           = 0x67df
    deviceType         = PHYSICAL_DEVICE_TYPE_DISCRETE_GPU
    deviceName         = AMD Radeon RX 580 Series (RADV POLARIS10)
    driverID           = DRIVER_ID_MESA_RADV
    driverName         = radv
    driverInfo         = Mesa 23.0.2
    conformanceVersion = 1.2.7.1
    deviceUUID         = 00000000-0100-0000-0000-000000000000
    driverUUID         = 414d442d-4d45-5341-2d44-525600000000
GPU2:
    apiVersion         = 1.3.238
    driverVersion      = 0.0.1
    vendorID           = 0x10005
    deviceID           = 0x0000
    deviceType         = PHYSICAL_DEVICE_TYPE_CPU
    deviceName         = llvmpipe (LLVM 15.0.7, 256 bits)
    driverID           = DRIVER_ID_MESA_LLVMPIPE
    driverName         = llvmpipe
    driverInfo         = Mesa 23.0.2 (LLVM 15.0.7)
    conformanceVersion = 1.3.1.1
    deviceUUID         = 6d657361-3233-2e30-2e32-000000000000
    driverUUID         = 6c6c766d-7069-7065-5555-494400000000

Update

Same issue on chromium:

enter image description here

And chromium even states that it has WEBGPU enabled:

enter image description here

Parshall answered 14/7, 2023 at 17:26 Comment(1)
FWIW, regarding Chrome on Linux (and I would assume Chromium as well), Vulkan also needs to be enabled.Placard
S
2

I'm not sure what could be the problem with Chrome, because in Chrome 113+ WebGPU is enabled by default and it works for me. Maybe some sort of Linux/driver-specific problem? However, the problem with Firefox is exactly what the error message says:

WebGPU is not yet available in Release or Beta builds.

You have to use the Nightly build. Note, that even in the Nightly build WebGPU is not fully supported.

Sanctify answered 15/7, 2023 at 13:18 Comment(1)
With Nightly 123 the demos from developer.mozilla.org/en-US/docs/Web/API/WebGPU_API work.Brubaker
F
1

Exactly the same issue OP has on OSX 14.4.1 on an M1 laptop and Firefox 125.0.2, release build (installed from HomeBrew)...

I get that it's only enabled by default on nightly builds, but release builds should work after dom.webgpu.enabled is flipped?

Got a bit disappointed when trying to run this demo and realising that flipping that about:config flag has no effect:

https://www.willusher.io/graphics/2024/04/22/webgpu-marching-cubes

Fourpenny answered 24/4 at 4:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.