Formats: keep each XMA FFT point together #3794

Open
andrewpozdnakov7-jpg wants to merge 1 commit from upstream-pr/3794 into main
andrewpozdnakov7-jpg commented 2026-11-28 21:21:02 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T21:21:02Z.


Store the real and imaginary components of each FFT point and rotation together. The inverse transform traverses one scratch slice and one rotation slice at each stage. The butterfly expressions and the order of the operations on each component are preserved.

On Windows x86-64, all 262,016 samples matched bit for bit across generated transforms from 2 to 2,048 coefficients. In 15 alternating CPU-pinned pairs, the 128-, 256- and 512-sample transform medians were 0.841x, 0.804x and 0.787x baseline.

The full decoder matched 1,053,696 PCM samples and 1,769,472 floating-point output state words from 1,152 generated frames. The fixtures cover mono and three stereo transform patterns, four sample rates, and all three subframe sizes. The median throughput ratios across the 16 cases per subframe size were 1.029x, 1.039x and 1.050x.

The 46 active release formats tests, strict formats Clippy and the asset policy passed.

Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding the change into another commit.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5544685292 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3794). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-28T21:21:02Z. --- Store the real and imaginary components of each FFT point and rotation together. The inverse transform traverses one scratch slice and one rotation slice at each stage. The butterfly expressions and the order of the operations on each component are preserved. On Windows x86-64, all 262,016 samples matched bit for bit across generated transforms from 2 to 2,048 coefficients. In 15 alternating CPU-pinned pairs, the 128-, 256- and 512-sample transform medians were 0.841x, 0.804x and 0.787x baseline. The full decoder matched 1,053,696 PCM samples and 1,769,472 floating-point output state words from 1,152 generated frames. The fixtures cover mono and three stereo transform patterns, four sample rates, and all three subframe sizes. The median throughput ratios across the 16 cases per subframe size were 1.029x, 1.039x and 1.050x. The 46 active release formats tests, strict formats Clippy and the asset policy passed. Please retain the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding the change into another commit. AI-assisted with OpenAI Codex.
andrewpozdnakov7-jpg commented 2026-11-28 21:24:34 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T21:24:34Z.


Windows CI passed on 333d5d9, including both Clippy configurations and the workspace tests. The local release comparison matched all 262,016 generated inverse-transform samples and all 1,053,696 PCM samples. The 128-, 256- and 512-sample transform medians were 0.841x, 0.804x and 0.787x baseline. The full decoder's median throughput ratios across 16 generated cases per size were 1.029x, 1.039x and 1.050x.

The next step is maintainer review. Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding the change into another commit.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7245998199 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3794#issuecomment-7245998199). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-28T21:24:34Z. --- [Windows CI](https://github.com/Marvisak/VIctory/actions/runs/46191141135/job/141121948887) passed on 333d5d9, including both Clippy configurations and the workspace tests. The local release comparison matched all 262,016 generated inverse-transform samples and all 1,053,696 PCM samples. The 128-, 256- and 512-sample transform medians were 0.841x, 0.804x and 0.787x baseline. The full decoder's median throughput ratios across 16 generated cases per size were 1.029x, 1.039x and 1.050x. The next step is maintainer review. Please retain the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding the change into another commit. AI-assisted with OpenAI Codex.
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/3794:upstream-pr/3794'
git switch 'upstream-pr/3794'

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