Skip to content

feat(videoout): accept a zeroed open param - #128

Merged
boykopovar merged 1 commit into
boykopovar:mainfrom
oneandonlydean:feat/videoout-open-param
Sep 30, 2026
Merged

boykopovar merged 1 commit into
boykopovar:mainfrom
oneandonlydean:feat/videoout-open-param

Conversation

@oneandonlydean

Copy link
Copy Markdown
Collaborator

What

sceVideoOutOpen threw for any non-null param. PS5 titles pass a 16-byte open param whose first word is its size (Astro Bot does), so they could not open a port.

A param whose size word is 16 and whose other three words are zero asks for nothing beyond what a null param does, so it is now accepted. Any other size throws, and so does any non-zero option word. The meaning of those words is not known yet.

Tested

  • Linux (CachyOS, GCC). video_out_flip_tests controls (not part of ctest) now opens the port with a zeroed param and checks that a wrong size and a non-zero option throw. On main the first open throws.
  • ctest: 57/57 pass.

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 in TechnicalDebt
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source (none added)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes

sceVideoOutOpen threw for any non-null param. PS5 titles pass a 16-byte
open param whose first word is its size, so they could not open a port.

A param whose size word is 16 and whose other three words are zero
requests nothing beyond a null param and is accepted. Any other size,
or any non-zero option word, still throws.
@github-actions github-actions Bot added the prx label Sep 29, 2026
@oneandonlydean
oneandonlydean force-pushed the feat/videoout-open-param branch from a049d3b to 7447392 Compare September 30, 2026 11:12
@boykopovar
boykopovar merged commit 7411f17 into boykopovar:main Sep 30, 2026
3 checks passed
oneandonlydean added a commit to oneandonlydean/AnyPS5 that referenced this pull request Oct 1, 2026
…opovar#208 test layout, our merged PRs) into astrobot

Conflicts resolved:
- Driver.cpp: upstream split it into Execution/src/Driver/*; astrobot's
  driver changes are ported into the split files (flip throttle
  APS5_MAX_QUEUED_FLIPS, dispatch tolerance, NoteProgram, metadata-pass
  switch and DB HTILE blits, depth state in the draw register key, HTILE
  fill clears, wait outcome counters, opt-in deferred EOP interrupts).
  boykopovar#192's KnownDrawRejection is taken.
- Our merged PRs take upstream's reviewed versions: boykopovar#124 shader fusion,
  boykopovar#128 videoout open param, boykopovar#132 CB metadata passes, boykopovar#138 EOP events,
  boykopovar#176 GE_INDX_OFFSET, boykopovar#136/boykopovar#137 pixel inputs and NoPerspective by I/J
  pair, boykopovar#133 mesh tests. boykopovar#142's interpolation validation is upstream's.
- Depth: astrobot's DepthTarget model stays; upstream's DepthSurface
  module is dropped again, boykopovar#188's 16-bit depth-bit reads are kept on top.
- Videodec2: upstream's ffmpeg-core version (boykopovar#42 rework); 3rdparty/FFmpeg
  stays for libSceAvPlayer only.
- Tests follow boykopovar#208's layout (add_test_executable, build/tests); the
  AvPlayer, GDS and wave tests are defined the same way.
- Shader disk cache format 5 and request serialization version 7 cover
  both sides' fields.
- Duplicates the auto-merge produced (state decoders, RequestInputInfo,
  structurizer helpers, image offsets, opcode enum, tests) are removed.
oneandonlydean added a commit to oneandonlydean/AnyPS5 that referenced this pull request Oct 1, 2026
boykopovar#128 as merged throws for a non-zero option word of the 16-byte open
param. Astro Bot opens its port with 1, 0x100 and 1 there, so the merge
stopped it at startup. Only the size word is checked again; the option
words are listed in the technical debt.
@oneandonlydean
oneandonlydean deleted the feat/videoout-open-param branch October 1, 2026 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants