Repository navigation
docs(debt): list sceVideoOutSetFlipRate under unknown function info - #12721
Conversation
|
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.
|
rooklz
left a comment
There was a problem hiding this comment.
Checked against main 2960e9a (VideoOut sources match the 52c09d5 the body cites). Approving. Two wording nits and one merge-order note below.
Claims checked
Output.cppL123-135: a rate outside 0..2 returnsVIDEO_OUT_ERROR_INVALID_VALUE, otherwisecfg->flipRate = rate.VideoOutDriver.cppL189:request->flipRate = cfg->flipRate. InprocessFlip, L589-600 setinterval = flipRate + 1andtarget = lastFlipVblank + interval, wait forvblankStatus.count >= target, and then setlastFlipVblank = vblankStatus.count. So "waits until n + 1 vblanks have passed since the previous one" is right.tests/Flip.cppL552-570 (>= previousVblank + 3at rate 2) and L771-783 (first fliplastFlipVblank >= 3) already assert this pacing.- History: the pacing is in
fd5e236aad(back then an out-of-range rate threw). The Silent stubs entry76e5edcacdcame in through #5691 (mergef0a1e3443b, together with a1c56b5, the INVALID_VALUE change), and #10840 (5d92321d8c) extended it. All as the body says. - The function does what it is meant to do, so Silent stubs (CONTRIBUTING L10) is the wrong section. What the entry really records is the unverified rate-60 answer, which is Unknown function info.
check_conventions --base upstream/main --headpasses,git diff --checkis clean, both link targets exist at the head, and merge-tree against main is clean.
Nits (optional)
- "since the previous one": the first flip after
sceVideoOutOpenhas no previous flip.lastFlipVblankstarts at 0 (VideoOutDriver.hppL145), so the first flip waits for n + 1 vblanks counted from the port's first vblank. The L783 test asserts exactly this. You could write "since the previous flip, or since the port opened". - The rate is read when the flip is submitted (L189), not when it is presented. A
sceVideoOutSetFlipRatecall does not change flips already in the queue. Whether the console works the same way is also unmeasured, so this could join the "unverified" sentence.
Merge order: #11853 (ionut27001, flip-master, updated today) rewrites the PPSA29866 flip-master bullet. That bullet is the line directly below the one this PR inserts, so git merge-tree of the two heads (7a2924b vs 7af0c1d) gives a textual conflict at L11-12. The pr-overlap bot also flags this. The resolution keeps both bullets: the SetFlipRate bullet, then #11853's flip-master bullet. Whichever PR merges second needs a one-line rebase.
|
@rooklz thanks for checking the history and the existing
On #11853: agreed, both bullets stay. Whichever PR merges second needs a one-line rebase putting this bullet before the flip-master one. Conventions pass at the new head. AI-assisted: yes (Claude Code). |
THEMANnt
left a comment
There was a problem hiding this comment.
Reviewed 52c457567a3250a4fffccf2bc9633f6dcb6cc54d against 52c09d567d2fa453494dd720fcf53a98149468e4. The pinned rate setter accepts 0..2 and the submission path copies that rate into each queued request; the driver uses rate+1 for its vblank interval. The added title-call observation explicitly leaves console acceptance and queued-update behavior unverified. No actionable finding in the documentation change.
Validation: inspected the changed wording and relevant pinned source; relative source links and git diff --check pass. Documentation-only validation: no runtime behavior changed. Author-reported title inventories, console/emulator observations and macOS/physical-GPU measurements were not independently reproduced; this review does not certify those measurements.
The entry sat under Silent stubs, but the function is implemented: the rate it stores sets how many vblanks each flip waits for. What remains open is whether the console accepts the rate 60 that PPSA13356 passes, which is unknown function info. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first flip after the port opens has no previous flip, and the rate is read when a flip is submitted, so queued flips keep their rate. Whether the console applies a new rate to queued flips is unverified. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
52c4575 to
cce7637
Compare
|
Rebased onto Evidence: immutable Linux qualification bundle. Its SHA-256 is |
|
On the open question in this entry (whether the console accepts rate 60 or returns the error) — measured on a PS4 Pro, firmware 10.71, on a main VideoOut port: So 60 is rejected with For the record, the firmware 10.71 |
ntamas94 measured sceVideoOutSetFlipRate on a PS4 Pro (firmware 10.71): rate 60 returns VIDEO_OUT_ERROR_INVALID_VALUE, only 0, 1 and 2 are accepted, an unopened handle returns VIDEO_OUT_ERROR_INVALID_HANDLE, and the range check is in the display driver the call forwards to. Record it in the entry; the PS5 result and the effect on queued flips stay unverified. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@ntamas94 thank you, that answers the open part for the PS4. I've added it to the entry in AI-assisted: yes (Claude Code). |
What
docs/dev/debt/libSceVideoOut.mdlistssceVideoOutSetFlipRateunder Silent stubs, which CONTRIBUTING.md reserves for functions that do not do what they are supposed to. This one does:Output.cppstores a rate of 0, 1 or 2 in the port config,VideoOutDriver.cppcopies it into each flip request (request->flipRate = cfg->flipRate), and the flip thread waits untillastFlipVblank + flipRate + 1vblanks before presenting. That pacing has been there sincefd5e236aad(2026-09-14); the entry was added under Silent stubs later, in 76e5edc (#5691), and extended by #10840.What the entry actually records is unknown behaviour: PPSA13356 passes 60, and whether the console accepts that or returns the error is unverified. This PR moves the entry to Unknown function info and adds that each flip waits for rate + 1 vblanks. The rest of the entry is unchanged.
Tested
Docs only.
tools/check_conventions.pypasses. Checked the pacing againstcore/libs/prx/libSceVideoOut/src/VideoOutDriver.cpponmain52c09d567d.Current Linux qualification — 2026-10-29
Rebased onto
main5454cd2e455ascce76375502acafaa8707d79e00079c632b0e6a4. The final reviewed SetFlipRate entry is unchanged, and main’s now-merged #11853 flip-master entry is retained exactly after it. Current setter/submission/pacing source still supports the wording; relative source links, conventions and whitespace pass. Documentation only: no production/test files or submodule pointers changed, and no runtime/GPU result is claimed. AI-assisted: yes.Evidence: immutable Linux qualification bundle. Its SHA-256 is
ca6b35926bcc6d3f21a9650517894c86b65594e2e2b653c5c32cd1c1de89c835. No fresh Windows runtime execution is claimed; older measurements retain their recorded source pins.AI-assisted: yes (Codex).
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)