From face959b907bfed062ea21910a201b1c3f57e478 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berkay=20K=C3=B6sebay?= Date: Thu, 3 Dec 2026 11:42:52 +0100 Subject: [PATCH] firefox: enable WebGPU on the GPU desktop Firefox enables WebGPU only on drivers it knows, so navigator.gpu stayed missing on these boards although their Vulkan drivers bring a WebGPU adapter and device up. On the GPU desktop (WLR_RENDERER=gles2, set by the login session only when the desktop draws on the GPU) Firefox now defaults to dom.webgpu.enabled and gfx.webgpu.ignore-blocklist. The user can still turn either off; the software desktop keeps Firefox's defaults. Assisted-by: LLM --- desktop/configuration/firefox.cfg | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/desktop/configuration/firefox.cfg b/desktop/configuration/firefox.cfg index fcfd3a58..e59900a1 100644 --- a/desktop/configuration/firefox.cfg +++ b/desktop/configuration/firefox.cfg @@ -13,6 +13,15 @@ if (getenv("MOZ_DISABLE_RDD_SANDBOX") == "1" && getenv("LIBVA_DRIVER_NAME") == " defaultPref("media.av1.enabled", false); defaultPref("media.mediasource.vp9.enabled", false); } +// Omarchy A: WebGPU on the GPU desktop. Firefox enables WebGPU only on +// drivers it knows, so it stays off on these boards' Vulkan drivers even +// though they bring the adapter and device up. The login session sets +// WLR_RENDERER=gles2 only when the desktop draws on the GPU (with its Vulkan +// driver beside it); on the software desktop Firefox keeps its defaults. +if (getenv("WLR_RENDERER") == "gles2") { + defaultPref("dom.webgpu.enabled", true); + defaultPref("gfx.webgpu.ignore-blocklist", true); +} // Omarchy A: Firefox's own toolbar minimums made its window wider than a // phone's screen (about 450 px against a phone's 375 to 414), so it hung off // the right edge with no way back. Without them the address bar narrows