feat(ngs2): add experimental I3DL2 reverb #1384

Open
TibixDev wants to merge 1 commit from upstream-pr/1384 into main
TibixDev commented 2026-10-08 01:18:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by TibixDev on 2026-10-08T01:18:43Z.


What

Draft with overlapping upstream DSP work. Current main (d146ec1b6) already implements this rack and its I3DL2 controls. In particular, e15f1644e384ab055f721347a4d31cdff02e9a47 replaced the earlier approximation with the implementation checked against PS4 firmware 11.00 output; 473ca04b2 rejects unsupported rack sizes and sample rates. Main retains the PS5-comparison limitation in TechnicalDebt.

This branch contains an unverified eight-line feedback delay network and channel conversion that current main still rejects. A fresh Skyrim boot on main d146ec1b6 reaches Vulkan setup and then throws NGS2: reverb channel conversion is not implemented. The draft therefore retains a distinct compatibility experiment, although its DSP should not replace the newer reference-based implementation. A mergeable version must preserve that implementation and establish the missing channel-conversion semantics. The experimental revision may be used as an explicitly identified, identical support dependency on both sides of title benchmarks; this does not establish console equivalence.

Tested

This follow-up is a source/history review, not a new console or game run. The earlier Fedora 44 software-model tests only established this branch's internal behavior, not console equivalence, and do not validate replacement of the current implementation.

Checklist

  • Current main without duplicate behavior: reconcile the DSP with main and validate the remaining channel-conversion path.
  • One topic.
  • No new code comments in this follow-up.
  • Console-equivalent behavior or a throw: this branch's DSP remains unverified.
  • No notes, logs, or images in the repository.
  • No new third-party code.
  • General behavior.
  • Depends on: none.
  • AI-assisted: yes.

Integration follow-up

A separate main-based test library combining current panning/ATRAC9 with this branch's experimental reverb now gets PPSA03747 into recurring draws and dispatches. This is an integration baseline, not vanilla-main or console-validation evidence. The draft still needs the reference-preserving DSP/channel-conversion rework described above.

Title artifact correction

A binary-hash audit found that the earlier title runtime copies all contained the same patched main AGC library. Those runs establish the main + experimental NGS baseline only. They do not validate #1312/#1313 in-game. The separately built CTests and CPU benchmarks used the new unpatched libraries/source and remain valid. The earlier PR-specific title claim is withdrawn; corrected results follow.

Verified runtime rerun

Corrected runtime result: the NID-patched #1312 library has SHA-256 a15e22c1b1305f79ab39089c7640ab9b6dd0fb9e6bffc0910d053cddfc7d51eb, differs from baseline, and contains the fingerprint verification code. /proc confirms the game loaded that file and the shared experimental NGS library. A fresh 120-second run with APS5_VERIFY_REGISTER_KEYS=1 reported at least 1,706 register-key lookups, no fingerprint mismatch, and presented frames. It stopped at the imposed timeout (124). No performance comparison is claimed with this verification enabled.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4780469943 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1384). Originally posted by [TibixDev](https://github.com/TibixDev) on 2026-10-08T01:18:43Z. --- ### What Draft with overlapping upstream DSP work. Current `main` (`d146ec1b6`) already implements this rack and its I3DL2 controls. In particular, `e15f1644e384ab055f721347a4d31cdff02e9a47` replaced the earlier approximation with the implementation checked against PS4 firmware 11.00 output; `473ca04b2` rejects unsupported rack sizes and sample rates. Main retains the PS5-comparison limitation in TechnicalDebt. This branch contains an unverified eight-line feedback delay network and channel conversion that current main still rejects. A fresh Skyrim boot on main d146ec1b6 reaches Vulkan setup and then throws `NGS2: reverb channel conversion is not implemented`. The draft therefore retains a distinct compatibility experiment, although its DSP should not replace the newer reference-based implementation. A mergeable version must preserve that implementation and establish the missing channel-conversion semantics. The experimental revision may be used as an explicitly identified, identical support dependency on both sides of title benchmarks; this does not establish console equivalence. ### Tested This follow-up is a source/history review, not a new console or game run. The earlier Fedora 44 software-model tests only established this branch's internal behavior, not console equivalence, and do not validate replacement of the current implementation. ### Checklist - [ ] Current main without duplicate behavior: reconcile the DSP with main and validate the remaining channel-conversion path. - [x] One topic. - [x] No new code comments in this follow-up. - [ ] Console-equivalent behavior or a throw: this branch's DSP remains unverified. - [x] No notes, logs, or images in the repository. - [x] No new third-party code. - [x] General behavior. - [x] Depends on: none. - [x] AI-assisted: yes. ### Integration follow-up A separate main-based test library combining current panning/ATRAC9 with this branch's experimental reverb now gets PPSA03747 into recurring draws and dispatches. This is an integration baseline, not vanilla-main or console-validation evidence. The draft still needs the reference-preserving DSP/channel-conversion rework described above. ### Title artifact correction A binary-hash audit found that the earlier title runtime copies all contained the same patched main AGC library. Those runs establish the main + experimental NGS baseline only. They do not validate #1312/#1313 in-game. The separately built CTests and CPU benchmarks used the new unpatched libraries/source and remain valid. The earlier PR-specific title claim is withdrawn; corrected results follow. ### Verified runtime rerun Corrected runtime result: the NID-patched #1312 library has SHA-256 `a15e22c1b1305f79ab39089c7640ab9b6dd0fb9e6bffc0910d053cddfc7d51eb`, differs from baseline, and contains the fingerprint verification code. `/proc` confirms the game loaded that file and the shared experimental NGS library. A fresh 120-second run with `APS5_VERIFY_REGISTER_KEYS=1` reported at least 1,706 register-key lookups, no fingerprint mismatch, and presented frames. It stopped at the imposed timeout (124). No performance comparison is claimed with this verification enabled.
TibixDev commented 2026-10-08 07:02:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by TibixDev on 2026-10-08T07:02:21Z.


Rebased on bc1fbe81. Kept PCM streaming coverage. This remains a draft: the console-reference blocker is unchanged.

Fedora 44 Release: ngs2_core_render_tests, ngs2_core_reverb_tests, ngs2_render_tests, ngs2_atrac9_tests, ngs2_filter_tests, ngs2_custom_tests, ngs2_parse_tests, ngs2_stream_tests, ngs2_reverb_tests build; the targeted tests and contribution checks pass. Windows CI is pending.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6054432512 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1384#issuecomment-6054432512). Originally posted by [TibixDev](https://github.com/TibixDev) on 2026-10-08T07:02:21Z. --- Rebased on `bc1fbe81`. Kept PCM streaming coverage. This remains a draft: the console-reference blocker is unchanged. Fedora 44 Release: `ngs2_core_render_tests`, `ngs2_core_reverb_tests`, `ngs2_render_tests`, `ngs2_atrac9_tests`, `ngs2_filter_tests`, `ngs2_custom_tests`, `ngs2_parse_tests`, `ngs2_stream_tests`, `ngs2_reverb_tests` build; the targeted tests and contribution checks pass. Windows CI is pending.
TibixDev commented 2026-10-12 04:31:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by TibixDev on 2026-10-12T04:31:02Z.


Reviewed against main d146ec1b6. e15f1644e replaced the prior approximation with DSP checked against PS4 firmware 11.00 output; unsupported-size/rate rejection followed in 473ca04b2. The PS5 comparison limitation is already documented on main.

The overlap is substantial, but this draft also accepts channel conversion that main still rejects: a fresh Skyrim boot with rebuilt main libraries reaches Vulkan setup, then throws NGS2: reverb channel conversion is not implemented. That compatibility experiment remains distinct. A mergeable rework must preserve main's reference-based DSP and settle channel-conversion semantics, rather than substitute this approximate eight-line FDN.

The description retains the unchecked reference requirement. This draft may serve as an explicitly named, identical support dependency on both sides of local title benchmarks, which is separate from validating it for merging. No console equivalence is claimed. AI-assisted review.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6117780733 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1384#issuecomment-6117780733). Originally posted by [TibixDev](https://github.com/TibixDev) on 2026-10-12T04:31:02Z. --- Reviewed against main `d146ec1b6`. [e15f1644e](https://github.com/boykopovar/AnyPS5/commit/e15f1644e384ab055f721347a4d31cdff02e9a47) replaced the prior approximation with DSP checked against PS4 firmware 11.00 output; unsupported-size/rate rejection followed in `473ca04b2`. The PS5 comparison limitation is already documented on main. The overlap is substantial, but this draft also accepts channel conversion that main still rejects: a fresh Skyrim boot with rebuilt main libraries reaches Vulkan setup, then throws `NGS2: reverb channel conversion is not implemented`. That compatibility experiment remains distinct. A mergeable rework must preserve main's reference-based DSP and settle channel-conversion semantics, rather than substitute this approximate eight-line FDN. The description retains the unchecked reference requirement. This draft may serve as an explicitly named, identical support dependency on both sides of local title benchmarks, which is separate from validating it for merging. No console equivalence is claimed. AI-assisted review.
TibixDev commented 2026-10-12 04:53:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by TibixDev on 2026-10-12T04:53:42Z.


Further integration check: the unmerged implementation does provide a distinct channel-conversion path. Loading its entire old NGS library first got past main's reverb conversion error but dropped main's newer panning implementation (sceNgs2PanInit). I then adapted just its experimental reverb state/processing and channel routing into a separate main-based test library, keeping current panning, ATRAC9 and other NGS code.

Skyrim PPSA03747 now reaches recurring draws/dispatches with that common test dependency; a 180-second run completed to the imposed time limit without the original audio exception. This is useful as a shared integration baseline for graphics experiments. It is not vanilla main, a console reference check, or a claim of correct/complete game rendering. The source diff and binary hashes are recorded locally.

This PR remains a draft. Main's reference-checked equal-channel DSP should be preserved in any mergeable rework, and missing channel conversion needs its own reference validation. The approximate old DSP should not replace the newer implementation just to obtain a boot. AI-assisted integration investigation.

Artifact correction: the title runtime copies were subsequently found to contain the same patched main AGC library. The saved PRESS ANY BUTTON frame therefore validates the main + experimental NGS integration, not #1312 or #1313. The CTests/CPU benchmarks used the new unpatched builds and remain valid. The earlier PR-specific title claim is withdrawn; corrected results follow.

Corrected runtime result: the NID-patched #1312 library has SHA-256 a15e22c1b1305f79ab39089c7640ab9b6dd0fb9e6bffc0910d053cddfc7d51eb, differs from baseline, and contains the fingerprint verification code. /proc confirms the game loaded that file and the shared experimental NGS library. A fresh 120-second run with APS5_VERIFY_REGISTER_KEYS=1 reported at least 1,706 register-key lookups, no fingerprint mismatch, and presented frames. It stopped at the imposed timeout (124). No performance comparison is claimed with this verification enabled.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6117990381 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1384#issuecomment-6117990381). Originally posted by [TibixDev](https://github.com/TibixDev) on 2026-10-12T04:53:42Z. --- Further integration check: the unmerged implementation does provide a distinct channel-conversion path. Loading its entire old NGS library first got past main's reverb conversion error but dropped main's newer panning implementation (`sceNgs2PanInit`). I then adapted just its experimental reverb state/processing and channel routing into a separate main-based test library, keeping current panning, ATRAC9 and other NGS code. Skyrim PPSA03747 now reaches recurring draws/dispatches with that common test dependency; a 180-second run completed to the imposed time limit without the original audio exception. This is useful as a shared integration baseline for graphics experiments. It is not vanilla main, a console reference check, or a claim of correct/complete game rendering. The source diff and binary hashes are recorded locally. This PR remains a draft. Main's reference-checked equal-channel DSP should be preserved in any mergeable rework, and missing channel conversion needs its own reference validation. The approximate old DSP should not replace the newer implementation just to obtain a boot. AI-assisted integration investigation. Artifact correction: the title runtime copies were subsequently found to contain the same patched main AGC library. The saved PRESS ANY BUTTON frame therefore validates the main + experimental NGS integration, not #1312 or #1313. The CTests/CPU benchmarks used the new unpatched builds and remain valid. The earlier PR-specific title claim is withdrawn; corrected results follow. Corrected runtime result: the NID-patched #1312 library has SHA-256 `a15e22c1b1305f79ab39089c7640ab9b6dd0fb9e6bffc0910d053cddfc7d51eb`, differs from baseline, and contains the fingerprint verification code. `/proc` confirms the game loaded that file and the shared experimental NGS library. A fresh 120-second run with `APS5_VERIFY_REGISTER_KEYS=1` reported at least 1,706 register-key lookups, no fingerprint mismatch, and presented frames. It stopped at the imposed timeout (124). No performance comparison is claimed with this verification enabled.
MarcZX10 commented 2026-11-22 13:06:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T13:06:31Z.

Review: COMMENTED


Reviewed — comments

The description identifies this as an unverified reverb experiment that still needs reconciliation with the implementation on main; this review is incomplete for a formal decision.

What I ran

Reviewed head 70b4d2de4b4e9ed4c27259f4ef75f0e9f7b366e0. Read the prepared description, commits, manifest, and complete diff; inspected targeted ranges in Render.cpp, Voice.cpp, Rack.cpp, Reverb.cpp, and System.cpp. No build, tests, or console run were performed.

Results

Check Result Note
Prepared change bundle passed Description, commits, manifest, and diff read
Targeted source review passed Selected changed paths and ranges inspected
Build and tests not run No commands run
Console behavior not run No console run performed

Negative control

Not run; no test or build was run.

Findings

Blocking

None verified.

Non-blocking

  • The description says the branch's DSP is an unverified approximation and that a mergeable version must preserve the reference-based implementation on main and establish channel-conversion semantics. The submitted diff adds a separate Reverb.cpp implementation and its own channel mapping (Render.cpp:241, Reverb.cpp:455-468). Reconcile this with the current main implementation and validate the conversion before treating the change as merge-ready.

Sources

Not verified

No changed file was read in full through the repository reader. Targeted source ranges were read from Rack.cpp, Render.cpp, Reverb.cpp, System.cpp, and Voice.cpp; the complete diff was read. The other changed paths and uninspected portions of those source files were not verified. The bundle's files.json was unavailable; the changed paths listed by the review folder are all included, with none listed as excluded. The claimed integration run, benchmarks, and current main implementation were not independently checked.

To get this to a good state

Nothing is required for the non-blocking comment. Reconcile the DSP with the current reference-based implementation and validate channel conversion before presenting this as merge-ready.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6012411793 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1384#pullrequestreview-6012411793). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-22T13:06:31Z. **Review:** COMMENTED --- # Reviewed — comments The description identifies this as an unverified reverb experiment that still needs reconciliation with the implementation on `main`; this review is incomplete for a formal decision. ## What I ran Reviewed head `70b4d2de4b4e9ed4c27259f4ef75f0e9f7b366e0`. Read the prepared description, commits, manifest, and complete diff; inspected targeted ranges in `Render.cpp`, `Voice.cpp`, `Rack.cpp`, `Reverb.cpp`, and `System.cpp`. No build, tests, or console run were performed. ## Results | Check | Result | Note | |---|---|---| | Prepared change bundle | passed | Description, commits, manifest, and diff read | | Targeted source review | passed | Selected changed paths and ranges inspected | | Build and tests | not run | No commands run | | Console behavior | not run | No console run performed | ## Negative control Not run; no test or build was run. ## Findings ### Blocking None verified. ### Non-blocking - The description says the branch's DSP is an unverified approximation and that a mergeable version must preserve the reference-based implementation on `main` and establish channel-conversion semantics. The submitted diff adds a separate `Reverb.cpp` implementation and its own channel mapping (`Render.cpp:241`, `Reverb.cpp:455-468`). Reconcile this with the current `main` implementation and validate the conversion before treating the change as merge-ready. ## Sources - [Changed reverb processing at reviewed head](https://github.com/boykopovar/AnyPS5/blob/70b4d2de4b4e9ed4c27259f4ef75f0e9f7b366e0/core/libs/prx/libSceNgs2.native/src/Reverb.cpp) - [Changed render routing at reviewed head](https://github.com/boykopovar/AnyPS5/blob/70b4d2de4b4e9ed4c27259f4ef75f0e9f7b366e0/core/libs/prx/libSceNgs2.native/src/Render.cpp) ## Not verified No changed file was read in full through the repository reader. Targeted source ranges were read from `Rack.cpp`, `Render.cpp`, `Reverb.cpp`, `System.cpp`, and `Voice.cpp`; the complete diff was read. The other changed paths and uninspected portions of those source files were not verified. The bundle's `files.json` was unavailable; the changed paths listed by the review folder are all included, with none listed as excluded. The claimed integration run, benchmarks, and current `main` implementation were not independently checked. ## To get this to a good state Nothing is required for the non-blocking comment. Reconcile the DSP with the current reference-based implementation and validate channel conversion before presenting this as merge-ready.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1384:upstream-pr/1384'
git switch 'upstream-pr/1384'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1384'
git switch 'upstream-pr/1384'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1384'
git switch 'upstream-pr/1384'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1384'
git switch 'main'
git merge --squash 'upstream-pr/1384'
git switch 'main'
git merge --ff-only 'upstream-pr/1384'
git switch 'main'
git merge 'upstream-pr/1384'
git push origin 'main'
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!1384
No description provided.