feat(libSceUlt): accept option parameters in sceUltQueueCreate and sceUltQueueDataResourcePoolCreate #3747

Merged
13hourstilliland merged 1 commit from upstream-pr/3747 into main 2026-10-12 20:58:01 +00:00
13hourstilliland commented 2026-10-11 16:19:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by 13hourstilliland on 2026-10-11T16:19:54Z.


What

sceUltQueueCreate and sceUltQueueDataResourcePoolCreate threw on any non-null option parameter. They now accept and ignore it, as sceUltWaitingQueueResourcePoolCreate, sceUltSemaphoreCreate, sceUltUlthreadRuntimeCreate and sceUltUlthreadCreate already do. The PS Vita libult in RPCS3 defines both option structures as a 16-byte reserved header followed by reserved fields, 128 bytes in total, with no settings. fpPS4 keeps them as 128 opaque bytes. That the PS5 layout carries no settings either is an assumption, recorded in TechnicalDebt.

Tested

Linux (GCC 14.2): guest_ult_queue_validation no longer expects a throw. It now creates a pool and a queue with a filled 128-byte option parameter and pushes and pops through them. It aborts on current main and passes with this change. All 11 guest_ult tests pass, and check_conventions.py passes. Not tested with a title.

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 (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
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4820496661 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3747). Originally posted by [13hourstilliland](https://github.com/13hourstilliland) on 2026-10-11T16:19:54Z. --- ### What `sceUltQueueCreate` and `sceUltQueueDataResourcePoolCreate` threw on any non-null option parameter. They now accept and ignore it, as `sceUltWaitingQueueResourcePoolCreate`, `sceUltSemaphoreCreate`, `sceUltUlthreadRuntimeCreate` and `sceUltUlthreadCreate` already do. The PS Vita libult in [RPCS3](https://github.com/RPCS3/rpcs3/blob/13aa88c3c4d66ea8799e987f7d762d90943ab17b/rpcs3/Emu/PSP2/Modules/sceUlt.h#L25-L78) defines both option structures as a 16-byte reserved header followed by reserved fields, 128 bytes in total, with no settings. [fpPS4](https://github.com/red-prig/fpPS4/blob/5ffbdbbd76b4da6e4b8721743ea491f494b28913/src/ps4_libsceult.pas#L142-L172) keeps them as 128 opaque bytes. That the PS5 layout carries no settings either is an assumption, recorded in TechnicalDebt. ### Tested Linux (GCC 14.2): `guest_ult_queue_validation` no longer expects a throw. It now creates a pool and a queue with a filled 128-byte option parameter and pushes and pops through them. It aborts on current `main` and passes with this change. All 11 `guest_ult` tests pass, and `check_conventions.py` passes. Not tested with a title. ### 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](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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] AI-assisted: yes
github-actions[bot] commented 2026-10-11 16:20:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T16:20:15Z.


Progress report (529f7bf → 0634b44)

📈 System libraries: 87.42% (+0.05%, +2 implemented functions)

✅ 2 implemented
Library Name
libSceUlt sceUltQueueCreate
libSceUlt sceUltQueueDataResourcePoolCreate
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6111076810 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3747#issuecomment-6111076810). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T16:20:15Z. --- <!-- progress-report --> ### Progress report (529f7bf → 0634b44) 📈 **System libraries**: 87.42% (+0.05%, +2 implemented functions) <details> <summary>✅ 2 implemented</summary> | Library | Name | | - | - | | libSceUlt | `sceUltQueueCreate` | | libSceUlt | `sceUltQueueDataResourcePoolCreate` | </details>
adriadam10 commented 2026-10-11 21:58:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T21:58:01Z.


Checked: guest_ult_queue_validation fails without the change and passes with it; the scoped build and ctest (30 tests) are green on current main.

Added one commit: moved the TechnicalDebt line out of the end of its section, where every PR appends and it conflicts.

Merging once CI is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6114255222 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3747#issuecomment-6114255222). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T21:58:01Z. --- Checked: `guest_ult_queue_validation` fails without the change and passes with it; the scoped build and ctest (30 tests) are green on current main. Added one commit: moved the TechnicalDebt line out of the end of its section, where every PR appends and it conflicts. Merging once CI is green.
oneandonlydean commented 2026-10-12 08:24:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-12T08:24:07Z.


Which title passes a non-null optParam to sceUltQueueCreate or sceUltQueueDataResourcePoolCreate? On main that call throws, so the title ID and the log line from that run are enough for this to go in.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6120519387 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3747#issuecomment-6120519387). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-12T08:24:07Z. --- Which title passes a non-null `optParam` to `sceUltQueueCreate` or `sceUltQueueDataResourcePoolCreate`? On main that call throws, so the title ID and the log line from that run are enough for this to go in.
adriadam10 commented 2026-10-12 20:53:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-12T20:53:08Z.


Checked on current main: guest_ult_queue_validation fails without the change and passes with it, and the scoped build and ctest (35 tests) are green. The sources cited for the 128-byte reserved option structures (RPCS3, fpPS4) match what the PR says; that PS5 carries no settings is recorded in the technical debt as assumed.

Added one commit on top of a rebase: main moved the libSceUlt debt to docs/dev/debt/libSceUlt.md, so the line now lives there, and I dropped the sentence in the queues line saying option parameters throw, which this PR makes false. Merging once CI is green.

@oneandonlydean's question about which title passes a non-null optParam is still unanswered; the PR is generic and consistent with the other Ult create calls.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6132421156 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3747#issuecomment-6132421156). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-12T20:53:08Z. --- Checked on current main: `guest_ult_queue_validation` fails without the change and passes with it, and the scoped build and ctest (35 tests) are green. The sources cited for the 128-byte reserved option structures (RPCS3, fpPS4) match what the PR says; that PS5 carries no settings is recorded in the technical debt as assumed. Added one commit on top of a rebase: main moved the libSceUlt debt to `docs/dev/debt/libSceUlt.md`, so the line now lives there, and I dropped the sentence in the queues line saying option parameters throw, which this PR makes false. Merging once CI is green. @oneandonlydean's question about which title passes a non-null `optParam` is still unanswered; the PR is generic and consistent with the other Ult create calls.
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!3747
No description provided.