test(libSceVideoOut): validate display mode configuration and port attributes #18502
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/18502"
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 slopgobblercobbler on 2026-11-11T19:05:38Z.
What
Add standalone regression test
GuestVideoOutDisplayPortAttributesvalidatinglibSceVideoOutdisplay mode configuration, port attributes, resolution queries, color settings, and parameter bounds across both unopened and active video out handles.Tested
WinMainlinker error by definingSDL_MAIN_HANDLEDinGuestVideoOutDisplayPortAttributes.cppandcore/libs/prx/libSceVideoOut/CMakeLists.txt.sceVideoOutCloseassertions that threwinvalid close handleruntime exceptions on unmeasured paths per maintainer feedback from @domx4q.python tools/check_conventions.py --base upstream/main --head HEAD(0 errors).upstream/main.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T08:40:30Z.
Review: COMMENTED
Reviewed — comments
The added test and CMake registration are reviewed at head
207c3df50fa2fa3f1298ddac1c18683187a00e14; no build or test command was run, so a formal approval is not justified.What I ran
repo_read.py.Results
Findings
Blocking
None.
Non-blocking
core/libs/tests/GuestVideoOutDisplayPortAttributes.cpp:321expectssceVideoOutGetOutputStatusWithVrrto succeed immediately after opening a handle. The implementation returns0x8029001Cuntil buffers have been registered; existing resolution-status and HDR tests first check this fresh-handle case. Register a buffer before asserting the successful status, or assert the fresh-handle error here.Not verified
To get this to a good state
Nothing is required. Consider aligning the fresh-handle VRR assertion with the existing tests; this is optional feedback.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T12:55:35Z.
Review: COMMENTED
The four shared CTest cases passed on main and the change on Linux with Xvfb, Mesa lavapipe, and Khronos validation 1.4.369. The added display-port fixture failed in its unopened-port VRR checks. The loader inserted the requested layer, and the logs contained no missing-layer diagnostic or VUID.
AI-assisted: yes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.