feat(libSceVdecsw): block on SyncDecodeInput/Output like TrySync #6062

Merged
notaxeltv merged 2 commits from upstream-pr/6062 into main 2026-10-17 04:51:39 +00:00
notaxeltv commented 2026-10-14 21:06:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by notaxeltv on 2026-10-14T21:06:04Z.


What

PPSA34015 (EA SPORTS FC 27), after PlayerSelectionDialog loads, fails to resolve libSceVdecsw:

FAIL: unresolved ELF import AAMM-Q1X0g0 from libSceVdecsw.prx
GetLastError: 127 - The specified procedure could not be found.

AAMM-Q1X0g0 is sceVdecswSyncDecodeInput; the eboot also imports sceVdecswSyncDecodeOutput (tWiSgXov8GM) and sceVdecswGetHevcPictureInfo (PzF+L5zXoyg). SyncDecode* now retry the existing TrySync* helpers until they stop returning DECODE_PENDING / OUTPUT_PENDING (same signatures as shadPS4). GetHevcPictureInfo is exported and throws until HEVC picture info is filled from Videodec2; debt notes the 0xb8 layout from shadPS4's vdecsw.h.

Tested

Windows 10, WinLibs GCC 15.2.0, guest_vdecsw passes (including Sync wrappers). With the patched .prx stacked on the earlier PPSA34015 libs the title no longer reports AAMM-Q1X0g0; it reaches video-out init then faults later on a null call (separate). tools/check_conventions.py --base upstream/main passes.

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 (none)
  • Generic behaviour, not specific to one title
  • Depends on: #6034, #6049, #6056, #6058
  • Unblocks: PPSA34015
  • GPUs tested: n/a
  • AI-assisted: yes

Made with Cursor

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4864519148 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6062). Originally posted by [notaxeltv](https://github.com/notaxeltv) on 2026-10-14T21:06:04Z. --- ### What PPSA34015 (EA SPORTS FC 27), after PlayerSelectionDialog loads, fails to resolve `libSceVdecsw`: ``` FAIL: unresolved ELF import AAMM-Q1X0g0 from libSceVdecsw.prx GetLastError: 127 - The specified procedure could not be found. ``` `AAMM-Q1X0g0` is `sceVdecswSyncDecodeInput`; the eboot also imports `sceVdecswSyncDecodeOutput` (`tWiSgXov8GM`) and `sceVdecswGetHevcPictureInfo` (`PzF+L5zXoyg`). SyncDecode* now retry the existing TrySync* helpers until they stop returning `DECODE_PENDING` / `OUTPUT_PENDING` (same signatures as shadPS4). `GetHevcPictureInfo` is exported and throws until HEVC picture info is filled from Videodec2; debt notes the 0xb8 layout from shadPS4's `vdecsw.h`. ### Tested Windows 10, WinLibs GCC 15.2.0, `guest_vdecsw` passes (including Sync wrappers). With the patched `.prx` stacked on the earlier PPSA34015 libs the title no longer reports `AAMM-Q1X0g0`; it reaches video-out init then faults later on a null call (separate). `tools/check_conventions.py --base upstream/main` passes. ### Checklist - [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 - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's technical 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 (none) - [x] Generic behaviour, not specific to one title - [x] Depends on: #6034, #6049, #6056, #6058 - [x] Unblocks: PPSA34015 - [x] GPUs tested: n/a - [x] AI-assisted: yes Made with [Cursor](https://cursor.com)
github-actions[bot] commented 2026-10-14 21:06:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T21:06:49Z.


Progress report (e9a3343 → ddb1356)

📉 System libraries: 89.14% (-0.02%, +2 implemented, +1 declared functions)

✅ 2 implemented
Library Name
libSceVdecsw sceVdecswSyncDecodeInput
libSceVdecsw sceVdecswSyncDecodeOutput
🆕 1 declared as stubs
Library Name
libSceVdecsw sceVdecswGetHevcPictureInfo
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6178516650 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6062#issuecomment-6178516650). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-14T21:06:49Z. --- <!-- progress-report --> ### Progress report (e9a3343 → ddb1356) 📉 **System libraries**: 89.14% (-0.02%, +2 implemented, +1 declared functions) <details> <summary>✅ 2 implemented</summary> | Library | Name | | - | - | | libSceVdecsw | `sceVdecswSyncDecodeInput` | | libSceVdecsw | `sceVdecswSyncDecodeOutput` | </details> <details> <summary>🆕 1 declared as stubs</summary> | Library | Name | | - | - | | libSceVdecsw | `sceVdecswGetHevcPictureInfo` | </details>
coltken95 commented 2026-10-15 00:42:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by coltken95 on 2026-10-15T00:42:01Z.


Tested on Linux x86-64 (Release build), with cd7465614 merged into main ab9a47684:

  • With the PR: guest_vdecsw passes.
  • With main's libSceVdecsw/Export.cpp: guest_vdecsw_tests doesn't link, with undefined reference to 'sceVdecswSyncDecodeInput', 'sceVdecswSyncDecodeOutput' and 'sceVdecswGetHevcPictureInfo', because main doesn't export them.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6181701983 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6062#issuecomment-6181701983). Originally posted by [coltken95](https://github.com/coltken95) on 2026-10-15T00:42:01Z. --- Tested on Linux x86-64 (Release build), with cd7465614 merged into main ab9a47684: - With the PR: `guest_vdecsw` passes. - With main's `libSceVdecsw/Export.cpp`: `guest_vdecsw_tests` doesn't link, with `undefined reference to 'sceVdecswSyncDecodeInput'`, `'sceVdecswSyncDecodeOutput'` and `'sceVdecswGetHevcPictureInfo'`, because main doesn't export them. AI-assisted: yes (Claude Code)
github-actions[bot] commented 2026-10-15 12:14:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:14:05Z.


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.

Pull request Shared files not compared
PR 6044 core/libs/tests/GuestVdecsw.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6191783971 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6062#issuecomment-6191783971). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T12:14:05Z. --- <!-- pr-overlap --> 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. | Pull request | Shared files not compared | |---|---| | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/tests/GuestVdecsw.cpp` |
adriadam10 commented 2026-10-16 21:40:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-16T21:40:56Z.


Checked against SharpProspero's Vdecsw.cs (Sync* are the blocking variants of TrySync*): the retry loops over the existing helpers are correct, GetHevcPictureInfo throws as required, and guest_vdecsw passes on Linux after rebasing onto current main (35 scoped tests green). The new test does not link without the change.

Added one commit on your branch: the sceVdecswGetHevcPictureInfo debt line now sits under ### Functional, the heading used for exports that throw, instead of a new ### Unimplemented paths heading.

Merging once the full Build is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6225228140 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6062#issuecomment-6225228140). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-16T21:40:56Z. --- Checked against SharpProspero's `Vdecsw.cs` (Sync* are the blocking variants of TrySync*): the retry loops over the existing helpers are correct, `GetHevcPictureInfo` throws as required, and `guest_vdecsw` passes on Linux after rebasing onto current main (35 scoped tests green). The new test does not link without the change. Added one commit on your branch: the `sceVdecswGetHevcPictureInfo` debt line now sits under `### Functional`, the heading used for exports that throw, instead of a new `### Unimplemented paths` heading. Merging once the full Build is green.
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!6062
No description provided.