Repository navigation
fix(libSceVideoOut): answer the cursor, flip status and pending-flip calls as measured on a PS5 - #8927
Conversation
…calls as measured on a PS5
|
The current Conventions run fails only on the template checklist: |
|
Checked the three boxes (all three are none) and corrected the flip-status byte description in the body (bytes 56-59 are 0xff as well, as the test pins). |
|
Thanks for checking the three checklist items and correcting the byte description. I verified the latest Conventions run now passes; the current required intake/report checks also pass. The remaining platform build jobs are skipped by the workflow for this PR. |
|
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.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
I checked the latest run: the follow-up conventions check passed after the earlier template failure. Thanks for fixing it. |
|
@ionut27001 Please drop Flip.cpp:1025–1029’s five assertions that unsupported cursor operations throw, plus :1035’s explicitly unmeasured invalid-handle/null GetFlipStatus assertion: the tests should not pin unimplemented behaviour. Retain measured error codes and fresh-handle checks. Please also correct the description’s SetFlipMaster/ClearFlipMaster implementation claim, since Unimplemented.cpp:10–18 still has their unchanged stubs. During rebase, preserve the platform-specific test-driver default and remove only the superseded cursor test target. |
harisibrar1
left a comment
There was a problem hiding this comment.
Checked against main b607bfd and the struct/error constants on main:
- The error constants and the flip-status offsets match main (
flipArgat 24 andcurrentBufferat 56 inVideoOutFlipStatus; 0x80290002/0x8029000b in VideoOutDriver.hpp), and the check order in the new code matches each measured case. It needs a rebase:git merge-treeshows conflicts in all five shared files. - After rebasing: main's 61a44c7 gave
sceVideoOutSetFlipMaster(handle, masterHandle)andsceVideoOutClearFlipMaster(handle)signatures (Unimplemented.cpp:10, :15) and removed the "declared without parameters, signatures unknown" debt line. The new flip-master debt line still says the shapes are unknown, so it would contradict main. Keeping the measured codes with the signatures main now has would fix that (main has no debt entry for these two stubs, so the line is still worth having). - Coverage note:
guest_video_out_cursorruns with no skip code, but its replacement,video_out_flip_fresh, opens a port first, and the flip test's main() returns 77 when there's no Vulkan display. I couldn't run it, but reading the code, the handle -1 cursor checks would then be skipped on headless hosts. Running those checks beforesceVideoOutOpenwould keep them always on. - Small one: the closed-handle case the cursor debt line mentions ("answered like -1") isn't exercised by the test.
Reviewed with AI assistance (Claude Code); the checks above were run locally on my machine.
|
@ionut27001 This PR now conflicts with main in |
…p status calls The removed checks asserted the exact failure text of cursor image, image address and index calls and of a null flip status output. Those calls are still not implemented and still refuse explicitly; the tests no longer pin what they answer.
Main declares sceVideoOutCursorEnable, Disable, SetImageAddress and SetPosition in the library's public header; the second declarations in Output.hpp made the header audit fail on duplicates.
|
@ionut27001 I pushed the change from my earlier review to this branch, since the PR has been quiet since 21 Oct. The first commit removes the five cursor |
What
Make the VideoOut cursor, flip-status and is-flip-pending calls return the values measured on a PS5 payload process (firmware 12.70):
flipArg) and 56-59 (currentBuffer) are 0xff, every other byte is 0. With null buffer: ret 0x80290002, buffer untouched.Moves the cursor and flip-fresh implementations from Unimplemented.cpp into Output.cpp (SetFlipMaster and ClearFlipMaster stay as stubs in Unimplemented.cpp; their values above are measurements only) and adds a guest test that pins every measured value.
Overlaps: #8784 adds assertions to
core/libs/tests/GuestVideoOutCursor.cpp, which this PR removes (its cases expected all four cursor calls to throw on an unopened handle, which the measurement contradicts); whichever lands second rebases, and its two flip-master assertions can move intotests/Flip.cpp. #6977 declares the same four cursor exports as parameterless throwing stubs inside a much larger PS4-on-AGC change that already conflicts withmain; this PR implements them with measured behaviour, so the two cannot both merge as they are. File overlaps only: #7814 and #4040 (Output.cpp, debt file), #7965 (debt file), #8418 and #6044 (Flip.cpp).Tested
Windows 11, guest tests (video_out, videoout, flip): 29/29 pass twice; the new test (
video_out_flip_fresh) passes directly withANYPS5_VIDEO_OUT_TEST_DRIVER=windowstwice. Revert check: removing the fix fails the new test as expected.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