Build: AVX2 codegen and fat LTO for the CPU-bound layer #649

Open
StarSparkleNova wants to merge 1 commit from upstream-pr/649 into main
StarSparkleNova commented 2026-11-27 16:26:58 +00:00 (Migrated from github.com)

Imported from Belobug/VIctory-Belobug-AMD. Originally posted by StarSparkleNova on 2026-11-27T16:26:58Z.


Rebased onto current main (the original branch was based on a commit no longer in main's history, so it showed the whole repo changed; now 2 files).

Build-only, no behaviour change:

  • .cargo/config.toml: target-cpu=x86-64-v3 (AVX2) for the Windows targets. The layer is CPU-bound (per-frame shadow compare, land dword merges, descriptor scans) and was built for baseline SSE2. v3 = AVX2 (Alder Lake has it, not AVX-512).
  • Cargo.toml: lto = fat (was thin, #96).

Compile-verified on x86_64-pc-windows-gnu (default + --features diagnostics). Not runtime-tested (no Windows/RX 7900 hardware).

<!-- greyfinch-sync:Belobug/VIctory-Belobug-AMD:issue:5529899055 --> Imported from [Belobug/VIctory-Belobug-AMD](https://github.com/Belobug/VIctory-Belobug-AMD/pull/649). Originally posted by [StarSparkleNova](https://github.com/StarSparkleNova) on 2026-11-27T16:26:58Z. --- Rebased onto current main (the original branch was based on a commit no longer in main's history, so it showed the whole repo changed; now 2 files). Build-only, no behaviour change: - .cargo/config.toml: target-cpu=x86-64-v3 (AVX2) for the Windows targets. The layer is CPU-bound (per-frame shadow compare, land dword merges, descriptor scans) and was built for baseline SSE2. v3 = AVX2 (Alder Lake has it, not AVX-512). - Cargo.toml: lto = fat (was thin, #96). Compile-verified on x86_64-pc-windows-gnu (default + --features diagnostics). Not runtime-tested (no Windows/RX 7900 hardware).
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/649:upstream-pr/649'
git switch 'upstream-pr/649'

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