fix(ngs2): start the custom Gain ramp at the previous gain #11352
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11352"
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 edubox on 2026-10-26T07:22:05Z.
What
Start the custom Gain module's ramp at the previous gain. Sample
iofNnow getsold + (new - old) * i / N, so the new gain is first reached at the next grain, instead of the previous implementation that reached it on the last sample of the current grain.This follows fma-rc's reading of the 12.70 module: the ramp starts at the old gain, equal gains skip the ramp and zero writes zeros. The debt entry and the existing
TestCustomGainexpectations are updated.Tested
Linux, GCC 16.2.1. All 16
ngs2_*tests pass, including the updatedTestCustomGainramp expectations.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-26T07:26:36Z.
Review: COMMENTED
I reviewed the custom Gain interpolation, test expectations and debt update. The new expression samples the ramp at
i / grain, leaving the old gain at the first sample and reaching the new gain at the next grain; the updated assertions cover both increasing and decreasing transitions. The code, test and documentation describe the same behavior.The PR description reports all 16
ngs2_*tests passing on Linux. The hosted checks did not run the Build test jobs (they are marked skipped), so this is the author’s local result rather than CI. I did not independently run the suite in this review.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T09:14:03Z.
Review: APPROVED
Reviewed exact head
66bca2376f64b8846397063c646f4f1c57673730against current main8100e480f7d55e87afb5376b8f784bf17df0f75c.The custom Gain update now samples the interpolation at
i / grain, keeping the old gain at sample 0 and reaching the target on the next grain. The updated increasing/decreasing assertions match that formula, and the shortened debt entry preserves the remaining unverified cases. The merge preview is clean and retains both this debt entry and main’s separate mastering-gain entry. Current-main conventions andgit diff --checkpass.The author reports all 16
ngs2_*tests pass on this rebased head. I did not independently run them; hosted eligibility, conventions, labels and report checks pass, while the product/build test jobs are skipped by path policy.AI-assisted review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T09:35:34Z.
Review: CHANGES_REQUESTED
Follow-up on my approval of exact head
66bca2376f64b8846397063c646f4f1c57673730: current upstreammainis now 63 commits beyond merge basec3db979cd33a65a0a651f1e7ba7958137a961413. The branch still merges cleanly, and my current-head conventions/diff checks pass. The PR's reported 16-test run was onc3db; since thenmainchanged NGS2 source/test/debt paths. Product test jobs remain skipped by path policy, so there is no hosted run on the current merged tree. Please rebase onto currentmainand rerun the focused NGS2 suite on the resulting head. I cannot independently execute it here because this host's CPU preflight lacks the required instruction set.There is also a current pairwise debt-file conflict with #11354 in
docs/dev/debt/libSceNgs2.native.md(the code changes are separate). Please coordinate the order and retain both entries. This branch'sDepends on: nonecan remain if there is no functional dependency, but the shared file still needs reconciliation.Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-26T15:13:28Z.
Review: APPROVED
Reviewed
6fee515against035ac96. No actionable findings. The gain ramp samplesold + (new - old) * i / grain, so sample zero uses the old gain and the target takes effect on the next grain. The updated regression checks both increasing and decreasing transitions and the following grain at the target value. I builtngs2_custom_testsin Release with WinLibs GCC 15.2.0 and ran focused CTest: 1 passed, 0 skipped, 0 failed. The exact-head Actions run passed eligibility only; product build/test jobs were skipped. This is an independent Windows/MinGW build and runtime check of the affected target, not a run of the full NGS2 suite or console firmware.Pull request closed