docs(libSceVideoOut): list sceVideoOutSetWindowModeMargins as a silent stub #17615

Merged
milescoviello merged 1 commit from upstream-pr/17615 into main 2026-11-12 07:12:48 +00:00
milescoviello commented 2026-11-09 02:49:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-11-09T02:49:02Z.


What

sceVideoOutSetWindowModeMargins checks the handle and returns 0 without applying top or bottom, but it is not listed under Silent stubs in docs/dev/debt/libSceVideoOut.md. The file only mentions it inside the sceVideoOutGetResolutionStatus entry ("the pane equals the full size because sceVideoOutSetWindowModeMargins applies no margins"). This adds its own Silent stubs entry.

The entry also records the callers: of the 38 titles relinked here, four call it, once each. Read from the instructions before each call in the relinked executables:

Title Version handle top, bottom
Borderlands 4 (PPSA01494) 01.100.002 a structure field (+0x6c) vcvttss2si of two float registers
Metal Gear Solid 4 (PPSA18194) 01.004.003 a structure field (+0x20) vcvttss2si of two float registers
MXGP 26 (PPSA30839) 01.003.000 a structure field (+0x6c) vcvttss2si of two float registers
Super Meat Boy 3D (PPSA31162) 02.000.001 a structure field (+0x6c) vcvttss2si of two float registers

So none of them passes constant margins. I didn't trace the float values back to their sources.

How

Changed: docs/dev/debt/libSceVideoOut.md, one entry added at the end of Silent stubs, linking to Output.cpp where the function is defined. No code change.

Tested

Docs only. tools/check_conventions.py --base upstream/main passes on main e67e806b1f.

tools/pr_overlap.py could not compare #4040, #12863 and #14212, which conflict with main. I read their diffs of this file: #4040 adds an sceVideoOutAdjustColor entry, #12863 adds host-pause entries and #14212 inserts blank lines between entries. None of them changes the Silent stubs lines this PR touches, apart from #14212's blank line, which whichever lands second resolves.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a (docs only)
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5217906212 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17615). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-11-09T02:49:02Z. --- ### What `sceVideoOutSetWindowModeMargins` checks the handle and returns 0 without applying `top` or `bottom`, but it is not listed under Silent stubs in `docs/dev/debt/libSceVideoOut.md`. The file only mentions it inside the `sceVideoOutGetResolutionStatus` entry ("the pane equals the full size because `sceVideoOutSetWindowModeMargins` applies no margins"). This adds its own Silent stubs entry. The entry also records the callers: of the 38 titles relinked here, four call it, once each. Read from the instructions before each call in the relinked executables: | Title | Version | `handle` | `top`, `bottom` | |---|---|---|---| | Borderlands 4 (PPSA01494) | 01.100.002 | a structure field (`+0x6c`) | `vcvttss2si` of two float registers | | Metal Gear Solid 4 (PPSA18194) | 01.004.003 | a structure field (`+0x20`) | `vcvttss2si` of two float registers | | MXGP 26 (PPSA30839) | 01.003.000 | a structure field (`+0x6c`) | `vcvttss2si` of two float registers | | Super Meat Boy 3D (PPSA31162) | 02.000.001 | a structure field (`+0x6c`) | `vcvttss2si` of two float registers | So none of them passes constant margins. I didn't trace the float values back to their sources. ### How Changed: `docs/dev/debt/libSceVideoOut.md`, one entry added at the end of Silent stubs, linking to `Output.cpp` where the function is defined. No code change. ### Tested Docs only. `tools/check_conventions.py --base upstream/main` passes on `main` `e67e806b1f`. `tools/pr_overlap.py` could not compare #4040, #12863 and #14212, which conflict with `main`. I read their diffs of this file: #4040 adds an `sceVideoOutAdjustColor` entry, #12863 adds host-pause entries and #14212 inserts blank lines between entries. None of them changes the Silent stubs lines this PR touches, apart from #14212's blank line, which whichever lands second resolves. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a (docs only) - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
gabichuuuuu commented 2026-11-10 17:49:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-10T17:49:12Z.

Review: COMMENTED


Read a91361b88c against main.

Correctness. Output.cpp:sceVideoOutSetWindowModeMargins (line 419) discards top and bottom, throws VIDEO_OUT_ERROR_INVALID_HANDLE for a handle that is not open, and otherwise returns 0, so "checks the handle and returns 0 without applying" is accurate (a closed handle throws rather than returning an error code, which the entry does not claim). The function is not listed anywhere else in the debt files on main except inside the sceVideoOutGetResolutionStatus entry, so this is not a duplicate, and "full size" matches sceVideoOutGetResolutionStatus setting the pane to the full width and height (Output.cpp:286-287). It is added at the end of Silent stubs in the same format as its neighbours. The call-site claims for the four titles are from the PR description and cannot be checked here. No conflict with #16584 or #17696, which edit other lines of the same file.

Not run here; this is from reading the code.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5846654866 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17615#pullrequestreview-5846654866). Originally posted by [gabichuuuuu](https://github.com/gabichuuuuu) on 2026-11-10T17:49:12Z. **Review:** COMMENTED --- Read `a91361b88c` against `main`. **Correctness.** `Output.cpp:sceVideoOutSetWindowModeMargins` (line 419) discards `top` and `bottom`, throws `VIDEO_OUT_ERROR_INVALID_HANDLE` for a handle that is not open, and otherwise returns 0, so "checks the handle and returns 0 without applying" is accurate (a closed handle throws rather than returning an error code, which the entry does not claim). The function is not listed anywhere else in the debt files on `main` except inside the `sceVideoOutGetResolutionStatus` entry, so this is not a duplicate, and "full size" matches `sceVideoOutGetResolutionStatus` setting the pane to the full width and height (`Output.cpp:286-287`). It is added at the end of Silent stubs in the same format as its neighbours. The call-site claims for the four titles are from the PR description and cannot be checked here. No conflict with #16584 or #17696, which edit other lines of the same file. Not run here; this is from reading the code. AI-assisted: yes.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!17615
No description provided.