test(videoout): make SDL video driver configurable #3810
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3810"
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 MiniRML on 2026-10-11T16:57:59Z.
What
The VideoOut flip tests hardcode
SDL_VIDEODRIVER=offscreen. On this Windows 11 machine, that makes lifetime, reopen, controls, and overlay return the skip code instead of exercising their assertions.Add the CMake cache string
ANYPS5_VIDEO_OUT_TEST_DRIVER, defaulting tooffscreen, and use it for the five flip tests. Configuring with-DANYPS5_VIDEO_OUT_TEST_DRIVER=windowslets those tests run with SDL's Windows backend. The existing default, timeouts, skip code, resource lock, and Windows library path setup are preserved. Only the test configuration changes; the diff is one CMake file, four additions and one deletion.Tested
Windows 11, MinGW-w64 GCC 15.2.0, CMake 4.3.1, Ninja, Release,
BUILD_TESTING=ON. Tested commit7a82dd4879734daf0e8b553d089439a07f3b46c9, incorporating upstreama11c8f7f70a0ed4e71504a89de69e8cdae687817.allandlibspassed.ANYPS5_VIDEO_OUT_TEST_DRIVER=offscreen: one flip test passed and four skipped (3.25 seconds).ANYPS5_VIDEO_OUT_TEST_DRIVER=windows: all five flip tests passed (6.69 seconds). Generated CTest properties confirmed the driver setting, 30-second timeout, and skip code 77 for every mode.guest_video_out_wqhd_detection_no_vulkan.a11c8f7f:guest_kernel_sys,windows_exceptions,guest_filesystem, andagc_driver_emulated_color_compare. They are outside the five test environments changed by this PR. The graphics test reports unsupported sRGB image sampling on an NVIDIA GeForce RTX 5080 Laptop GPU.guest_needed_modulesremained blocked by Microsoft Defender (WinError 225). Its generated temporary executable was quarantined; Defender was kept enabled. This test has not been validated successfully in this run.To reproduce the Windows flip test configuration:
Checklist
main; no other open PR implements this driver option.mdfiles, images, or logs added to the repositoryImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T19:30:17Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceVideoOut/CMakeLists.txtL35Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T22:05:38Z.
Checked the diff and the generated CTest properties: with the default
offscreenall fivevideo_out_flip_*tests keepSDL_VIDEODRIVER=offscreen, timeout 30, skip code 77 and thevideoout_app0lock, so default behaviour is unchanged; the new cache string only overrides the driver. Merging.