Repository navigation
fix(ngs2): return documented Delay option errors - #12107
Conversation
MarcZX10
left a comment
There was a problem hiding this comment.
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.
|
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.
|
|
@Th3EvilGod thanks for this one, and for saying plainly that the codes come from fma-rc's reading of the 12.70 module. The codes and ranges match that comment, and no option that created a rack before is rejected now. We keep tests to real behaviour and argument validation, not asserting that a case with an unknown console result throws, since that kind of test breaks the moment someone settles it. In |
|
Linux result (the description has Windows only). Setup: Ubuntu 22.04 under WSL2, GCC 11.4.0, Ninja Release, Tests:
Not tested: the other AI-assisted (Claude Code). |
6bb9fe3 to
c45a654
Compare
|
@Th3EvilGod My draft #13491 declares the separate AI-assisted: yes. |
|
@kyon-eth yes, agreed: #12107 first, then #13491 rebased with the debt entries reconciled. Please record #12107 in #13491's Depends on line while it is pending. To settle MarcZX10's earlier ordering request as well, would you also agree to #12107 before your custom Reverb PR #10599, with #10599 rebased afterward retaining both debt changes? #11315 has now merged, so its earlier conflict no longer needs a pending dependency. I am rebasing from the current published head c45a654, preserving the test cleanup requested by oneandonlydean, and rerunning the NGS2 runtime tests. I will refresh the overlap report and PR description and link the agreed ordering there. |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
c45a654 to
7f6f787
Compare
|
Updated to 7f6f787 on main 3b0523a, retaining the published cleanup commit and its authorship. Both rebase conflicts are reconciled with main's newer registrations and debt intact. Runtime @kyon-eth the rebased head also changes the conflict premise: direct merge previews with #10599 at bc07113 and #13491 at f4b5b80 both exit 0, including the debt file. These are clean Git previews, not combined runtime tests. Our agreement that #12107 precedes #13491 is linked in the description. My request for the preferred order with #10599 remains open; I have not represented silence as agreement. #11315 is already merged. The earlier integration review is not claimed approved or resolved on another reviewer's behalf. |
Main's Custom.cpp rejects the PS5 filter struct in its PS4_LIBRARY branch, and ngs2_core_custom builds against that branch, so the new PS5 filter cases failed there. Build them only outside APS5_NGS2_PS4_LIBRARY and define it for ngs2_core_custom_tests.
✅ AMD GPU test: passedPR head
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (2, not counted against this PR)Validated but not compared (55, not in the main baseline's validation pass)Validation IDs already present on main (8 IDs in 415 tests)Skipped (5)ReproduceAutomated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
|
Hi We merged current main into this branch. Main's That leaves the PS4-library filter path without a test. A case that sends the PS4 layout there would be a welcome follow-up, but it's optional and not needed for this PR. |
|
Hi @Th3EvilGod, This PR conflicts with main again, so I prepared a merge of current main into it. The text conflict was small (two lines of the NGS2 debt doc, each changed by only one side), but the merged tree fails one test, and the fix needs your call.
How the two changes meet: this PR newly builds Two ways I can see, whichever you prefer:
Once you've pushed either one, we'll redo the merge with main and run it again. Thanks! |
|
@oneandonlydean fixed in I took the test-guard approach. The Delay control-rejection loop and callback assertion run only against the native library; both libraries still run the malformed-option, valid-creation, varying-PCM and silence checks. Native NGS2 keeps all 256 Delay parameter-ID checks. Production still throws for unsupported Delay controls; I haven't invented a PS4 error code. The next run exposed two more differences after the Delay loop: On Windows 11 / WinLibs GCC 15.2 r7, the merged tree before the guards reproduced your report: I've refreshed the PR description with the exact heads and results. The fresh overlap scan still fails closed on four stale branches; I manually checked their shared files and documented them in the description. None implements these Delay errors. The merge preview with #13491 is clean. The optional PS4-layout filter follow-up remains separate. Thanks for the reproduction and suggested guard. |
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)