fix(videoout): honor an explicit SDL_VIDEODRIVER #8984
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8984"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by firasotoom85-droid on 2026-10-21T08:29:28Z.
What
VideoOutDriversetsSDL_HINT_VIDEODRIVERtowayland,x11unconditionally on Linux.SDL_SetHintoverrides theSDL_VIDEODRIVERenvironment variable, so a caller that needs X11 (for example, because its Wayland WSI cannot present correctly) cannot select it. The forced Wayland attempt can also load libdecor’s GTK plugin, which the host may not ship.The change applies the existing
wayland,x11default only whenSDL_VIDEODRIVERis unset or empty. Default behaviour is unchanged otherwise; an explicit driver now reaches SDL unchanged. The change is Linux-only.The overlap bot lists PRs 674, 5021, 6879 and 7201 as sharing
core/libs/prx/libSceVideoOut/src/VideoOutDriver.cpp; those comparisons could not complete because of base conflicts. None of them targets this unconditional hint; this PR is one topic.Tested
The same conditional was built and run from the project’s pinned AnyPS5 revision (
f219248f0) on a bare-metal console:SDL_VIDEODRIVER=x11reached SDL andsceVideoOutOpenused X11 rather than Wayland.fmos-rallymeasured 59.5 fps.This PR branch is rebased onto current
main; the full AnyPS5 test suite was not run in the PR worktree. Windows and macOS were not tested; the change is Linux-only.Checklist
main; no other open PR implements the same functions (the overlap bot lists shared-file PRs 674/5021/6879/7201, but none targets this override)NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file — not applicable, no new unimplemented paths.mdfiles or images added to the repositoryPull request closed