Commit 967c7ae
committed
WSLg GUI: force Mesa d3d12 + GTK4 GL renderer for system apps
System-installed GUI apps (nautilus, gnome-software, epiphany when
run as RPM not flatpak) fail to render content on WSLg because:
- Mesa 25 defaults to Zink (GL-on-Vulkan) for the GL stack
- Zink requires Vulkan features (nullDescriptor, robustness2)
- WSLg's only Vulkan ICD is dzn (DirectX-to-Vulkan bridge), which
is non-conformant and missing those features
- Result: window registers with weston RDP rail (taskbar icon
appears) but the frame buffer can never initialize -> nothing
ever renders inside the window
Operator 2026-05-10: "the windows never render though--there's an
icon on the windows taskbar but no actual window EVER rendered."
Fix: /etc/profile.d/mios-wslg-gpu.sh exports:
GALLIUM_DRIVER=d3d12 -> Mesa GL via Direct3D 12
MESA_LOADER_DRIVER_OVERRIDE=d3d12 -> override DRI auto-detection
LIBGL_KOPPER_DISABLE=1 -> skip Mesa-25 Kopper-on-Zink
GSK_RENDERER=gl -> GTK4 OpenGL renderer (not Vulkan)
WEBKIT_DISABLE_COMPOSITING_MODE=1 -> WebKitGTK avoids Vulkan path
WAYLAND_DISPLAY=wayland-0 -> WSLg Wayland default
DISPLAY=:0 -> XWayland fallback
Gated on /mnt/wslg presence (ConditionPath equiv) -- inert outside
WSLg, so bare-metal / Hyper-V / QEMU / OCI deployments keep their
canonical Mesa path.
Verified: weston.log RDP-rail shows windows registering at proper
sizes once the env is loaded by an interactive shell (apps run from
the user's bash prompt source /etc/profile.d/* via /etc/profile).
Note: this gets system apps to register windows but content
rendering is still gated on the underlying d3d12-driver path. For
GTK4 apps that still hit dzn-unsupported features, GSK_RENDERER
can be flipped to "cairo" via per-app override or operator-level
~/.config/environment.d/. Follow-up: evaluate adding NVIDIA Vulkan
ICD when host has NVIDIA GPU (RTX 4090 in the operator's case).1 parent b0e787f commit 967c7ae
1 file changed
Lines changed: 71 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
0 commit comments