Repository navigation
Conversation
On a machine whose only OpenGL renderer is llvmpipe, such as an Apple Silicon Mac whose GPU has no driver yet or a VM without GPU passthrough, mpv 0.41 rejects the software renderer and then aborts in its X11 fallback (vo_x11_init: Assertion '!vo->x11' failed). gpu-sw=yes lets it use that renderer; with a hardware renderer it changes nothing. omarchy-mac's own mpv default carries this line, but omarchy-settings owns /etc/mpv/mpv.conf, so that default never installs (omacom#18229). Moving the line here covers those Macs without a Mac-only mpv file.
[Medium impact] This PR appears safe to merge. SummaryAdds
Reviews (1) · Last reviewed commit: "Keep mpv playing where only a software r..." · Reviewed by Greptile |
|
Thanks for the careful write-up, @mitss1. This can't land on What was checked: the diff against current
Reviewed by Opus 5.5 in Claude Code, with Codex at medium effort as a second opinion. Codex agreed the change is obsolete on Next: this is waiting on the maintainer. The recommendation is to close it as superseded by #19034. |
What changes
Adds
gpu-sw=yesto Omarchy's/etc/mpv/mpv.conf, next tohwdec=auto-safe.When the only OpenGL renderer is a software one (llvmpipe), mpv 0.41 rejects it and then aborts in its X11 fallback:
That is the situation on an Apple Silicon Mac whose GPU has no driver yet (the M3 Max case documented in omarchy-mac's README), and likely in a VM without GPU passthrough.
gpu-sw=yesonly tells mpv to accept a software renderer. With a hardware renderer it changes nothing.omarchy-mac ships this line in its own mpv default, but
omarchy-settingsowns/etc/mpv/mpv.conf, so that default never installs (#18229). The rest of that file (vaapi-copy+ OpenGL) turned out not to be wanted. On an M1 it is about 3x slower thanauto-safeat 4K, and on the M4auto-safeis correct once the kernel fix in aurora-silicon/linux#1392 is in (see the measurements in #18229). Sogpu-sw=yesis the one part worth keeping, and it fits the shared default better than a Mac-only file. Removing omarchy-mac's mpv default would be a separate PR in omarchy-mac-pkgs.Refs #18229
Verification
On an M1 MacBook Air (J313), Omarchy 4.5.0-3, mpv 0.41.0, mesa-aurora 26.3.0_devel.20261031. I ran mpv with
--no-config --include=<file>on a 1080p H.264testsrc2clip.LIBGL_ALWAYS_SOFTWARE=1 GALLIUM_DRIVER=llvmpipeand an emptyVK_DRIVER_FILES, so Vulkan is unavailable as on a driverless Mac.hwdec=auto-safe): mpv aborts with the assertion above (exit 134).gpu-sw=yes: it plays (exit 0), on gpu-next/OpenGL with llvmpipe.--untimed. The result is the same with and without the line:vaapidecode on gpu-next, 5.39 s vs 5.37 s wall, 0.86 s vs 0.88 s user CPU.Screenshots
No visible change: an mpv config line that only matters where the GPU has no hardware renderer.
I used Claude as a coding assistant for the investigation and measurements. I ran the tests above on my own machine.