fix(ngs2): return documented Delay option errors #12107
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12107"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Th3EvilGod on 2026-10-27T20:54:50Z.
What
For malformed custom Delay options, return the PS5 errors through both rack-creation APIs:
0x804A8013for option size,0x804A8095for type,0x804A8096for tap count, and0x804A8097for an out-of-range finite maximum length. The source is fma-rc's reading of PS5 12.70libSceNgs2.native.sprx, Delay setup at0x30b80, not disassembly or console measurements I performed. The constant names are local descriptive names.Keep the agreed Delay creation/audio compatibility path and unsupported-path throws. Null-option processor initialization, nonfinite/reserved values, unsupported rack/state shapes and precedence among multiple invalid payload fields remain unresolved. Delay DSP and controls remain unimplemented; the existing debt entry records these gaps.
Run the custom-rack suite against both NGS2 libraries. Following the current-main integration report, guard the Delay control-rejection loop and its callback assertion for
APS5_NGS2_PS4_LIBRARY, as already done for PS5 filter controls. Also keep main's new PS5-only wrong-module/position error assertions native-only, retain the previous PS4 UserFx rejection assertions, and expect the existing PS4 channel error in the two invalid-channel setup cases. Both libraries retain malformed-option, valid-creation, varying-PCM and silence coverage; the native library retains all 256 Delay parameter-ID checks. Production behavior is unchanged by these test corrections; no PS4 error code is invented.Merged main
d222b34fabc63a904d9f99f4cde2269be5b4f61bwith the published branch, preserving contributor commits and main's updated UserFx debt entry. The earlier requested test cleanup remains intact. #10599 and #11315 are merged. The agreed order remains #12107 before #13491 (proposal, acceptance).The refreshed overlap scan examined 1,941 open PRs and failed closed on four stale branches. I manually compared every reported shared file: #1384 changes Reverb declarations/test registration; #5548 changes PCM test registration and decoding/streaming debt; #10249 changes the Reverb/PitchShift option-word helper; #14212 changes the pending-export debt wording. None implements these Delay option errors. The automatic comparisons remain unresolved, so this is not reported as a clean scan. A direct merge preview of final head
e385df1347f086bfeeb4266cdeabf325dbea219fwith #13491f4b5b8040bd4629ea675379388fbe66580af161csucceeds; this is not combined runtime validation.Tested
Windows 11 build 26300, AMD Ryzen 7 9800X3D, WinLibs MinGW-w64 GCC 15.2.0 r7, Release full-runtime configuration (
ANYPS5_RELINKER_ONLY=OFF,BUILD_TESTING=ON), pinned source dependencies. Tested heade385df1347f086bfeeb4266cdeabf325dbea219f, merged with maind222b34fabc63a904d9f99f4cde2269be5b4f61b.145168376bf2247cb367253478e07a69879d15ecreproduces the reported failure:ngs2_core_customaborts withNGS2: the custom Delay module parameters are not implemented; nativengs2_custompasses.libSceNgs2,libSceNgs2.native,libkernelandlibcoutputs in the full-runtime build. Both NGS2 modules were NID-patched successfully.ctest --test-dir build/windows-cnd -R '^ngs2_' -V: 49/49 pass, 6.23 seconds, includingngs2_core_custom(0.02 s) andngs2_custom(0.05 s).0x1dand literal expected error codes. It covers 26 malformed options at positions 0, 1 and 23 in 1-, 2- and 24-module racks through both creation APIs, checking the output handle is unchanged and no allocator is called. It includes unsigned extremes and floats immediately outside the finite length endpoints. Valid creation, varying PCM and silence remain checked in both libraries.Historical regression evidence: the original new malformed-option fixture failed on unchanged main
771d8b5bf7withNGS2: this custom Delay module option size is not implemented. B-Howell independently reported Linux/WSL2 GCC 11.4.0 runs: both custom suites passed ten repetitions at earlier head6bb9fe3ac7merged onto6e9b9134f6, and both failed when production was restored to main. Those are attributed historical results, not a Linux run of the current head.No current-head Linux/macOS, PS5 hardware, commercial-title or complete repository test-suite run. No performance claim; the PCM regression preserves host compatibility rather than establishing console-equivalent Delay DSP.
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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T21:09:15Z.
Review: DISMISSED
The current branch merges cleanly with main, and I independently confirmed that it conflicts in docs/dev/debt/libSceNgs2.native.md with each open PR #10599 and #11315. Your integration section says the proposed landing order is not yet agreed, while the checklist says Depends on: none. CONTRIBUTING.md requires the authors to agree on which overlapping PR lands first and to record the ordering in Depends on. Please document that agreement with both authors and update the checklist before merge. This is an integration-rule blocker; the PRs can all remain open.