GPU: compare four complete landing blocks before checking the tail #4649

Open
github-bot wants to merge 1 commit from github-bot/gh-4648 into main AGit
Owner

@⁠faycalbaklouti on GitHub · 2026-12-01 00:42 UTC · original
faycalbaklouti:perf/compare-four-landing-blocks-ci → main · +20 −15 · 1 files · 1 commits · open

What it changes

Compare four complete 32-byte AVX2 blocks at a time, then the remaining complete blocks and scalar byte tail. There is no new CPU feature or alignment requirement. Coverage now crosses the second 128-byte boundary. The Phase 87c source CPU microbenchmark measured 78.1 ns before and 43.7 ns after for equal 4 KiB buffers (p87c-handoff/REPORT.md:7, p87c-handoff/bench/final.txt:4–5). These are source-workload timings, not measurements on this branch or a frame-time result.

How it was tested

Windows MSVC target under CPU-only Wine. Head 0eb978d41608fa788e1110f2be43dc87d5d15437; base 7d93ee07599bff5ceffdd1b50a1ed822bb854383.

base-victory-gpu-suite.log:
head_sha=7d93ee07599bff5ceffdd1b50a1ed822bb854383
command=cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --no-fail-fast 
test result: FAILED. 1117 passed; 16 failed; 66 ignored; 0 measured; 0 filtered out; finished in 65.76s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
exit=101

18-head-victory-gpu-suite.log:
head_sha=0eb978d41608fa788e1110f2be43dc87d5d15437
command=cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --no-fail-fast 
test result: FAILED. 1117 passed; 16 failed; 66 ignored; 0 measured; 0 filtered out; finished in 65.93s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
exit=101

18-head-exact.log:
head_sha=0eb978d41608fa788e1110f2be43dc87d5d15437
command=cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --no-fail-fast --lib -- --exact safecopy::tests::differences_are_seen_wherever_they_are --nocapture --test-threads=1 
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 1198 filtered out; finished in 0.00s
exit=0

18-base-exact.log:
head_sha=7d93ee07599bff5ceffdd1b50a1ed822bb854383
command=cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --no-fail-fast --lib -- --exact safecopy::tests::differences_are_seen_wherever_they_are --nocapture --test-threads=1 
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 1198 filtered out; finished in 0.00s
exit=0

18-control-exact.log:
head_sha=7d93ee07599bff5ceffdd1b50a1ed822bb854383
command=cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --no-fail-fast --lib -- --exact safecopy::tests::differences_are_seen_wherever_they_are --nocapture --test-threads=1 
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 1198 filtered out; finished in 0.00s
exit=0
  • victory-gpu: 16 identical named failures; none head-only.
  • Exact head/base/test-only-control outcomes matched expectations.
  • GPU and profile: no game or physical GPU run.
  • Before/after: package comparison above; no game or performance claim.
  • Shader wave sizes on hardware: not tested.
  • Touched package suites did not establish native Windows CI success.

The expanded test-only control passing on base is expected: it tests semantics, not speed.

Earlier workspace tests under Winefailed the same four CLI tests on head and base: the explicit !on_wine() assertion in tests::windows_is_not_wine, the system Direct3D version assertion, and two late-DLL visibility tests. This is baseline-identical on Wine, not a native Windows result. The target’s CI workflow has not run on our fork PRs yet; it may require maintainer approval. Those workspace results are historical; this is not a fresh workspace or CI result.

Checked for overlap

  • I searched open PRs for the same issue and touched files. Related: #3395 unrolls the mutating SEH word_diff_copy; it does not unroll the read-only differ. #1298 optimizes copy, not comparison. #4006 changes landing order allocation.

Radicle project hub (open-source porting and preservation history): https://radicle.network/nodes/rosa.radicle.network/rad:z3rqQw7796wMbgj8RszExtWR4wMSE
Live development stream: https://vdo.ninja/?view=gta6rtx4090live1080p60

**@⁠faycalbaklouti** on GitHub · 2026-12-01 00:42 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4648) `faycalbaklouti:perf/compare-four-landing-blocks-ci` → `main` · +20 −15 · 1 files · 1 commits · open ## What it changes Compare four complete 32-byte AVX2 blocks at a time, then the remaining complete blocks and scalar byte tail. There is no new CPU feature or alignment requirement. Coverage now crosses the second 128-byte boundary. The Phase 87c source CPU microbenchmark measured 78.1 ns before and 43.7 ns after for equal 4 KiB buffers (`p87c-handoff/REPORT.md:7`, `p87c-handoff/bench/final.txt:4–5`). These are source-workload timings, not measurements on this branch or a frame-time result. ## How it was tested Windows MSVC target under CPU-only Wine. Head `0eb978d41608fa788e1110f2be43dc87d5d15437`; base `7d93ee07599bff5ceffdd1b50a1ed822bb854383`. ```text base-victory-gpu-suite.log: head_sha=7d93ee07599bff5ceffdd1b50a1ed822bb854383 command=cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --no-fail-fast test result: FAILED. 1117 passed; 16 failed; 66 ignored; 0 measured; 0 filtered out; finished in 65.76s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s exit=101 18-head-victory-gpu-suite.log: head_sha=0eb978d41608fa788e1110f2be43dc87d5d15437 command=cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --no-fail-fast test result: FAILED. 1117 passed; 16 failed; 66 ignored; 0 measured; 0 filtered out; finished in 65.93s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s exit=101 18-head-exact.log: head_sha=0eb978d41608fa788e1110f2be43dc87d5d15437 command=cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --no-fail-fast --lib -- --exact safecopy::tests::differences_are_seen_wherever_they_are --nocapture --test-threads=1 test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 1198 filtered out; finished in 0.00s exit=0 18-base-exact.log: head_sha=7d93ee07599bff5ceffdd1b50a1ed822bb854383 command=cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --no-fail-fast --lib -- --exact safecopy::tests::differences_are_seen_wherever_they_are --nocapture --test-threads=1 test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 1198 filtered out; finished in 0.00s exit=0 18-control-exact.log: head_sha=7d93ee07599bff5ceffdd1b50a1ed822bb854383 command=cargo xwin test --locked --target x86_64-pc-windows-msvc -p victory-gpu --no-fail-fast --lib -- --exact safecopy::tests::differences_are_seen_wherever_they_are --nocapture --test-threads=1 test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 1198 filtered out; finished in 0.00s exit=0 ``` - `victory-gpu`: 16 identical named failures; none head-only. - Exact head/base/test-only-control outcomes matched expectations. - GPU and profile: no game or physical GPU run. - Before/after: package comparison above; no game or performance claim. - Shader wave sizes on hardware: not tested. - Touched package suites did not establish native Windows CI success. The expanded test-only control passing on base is expected: it tests semantics, not speed. Earlier workspace tests under Winefailed the same four CLI tests on head and base: the explicit `!on_wine()` assertion in `tests::windows_is_not_wine`, the system Direct3D version assertion, and two late-DLL visibility tests. This is baseline-identical on Wine, not a native Windows result. The target’s CI workflow has not run on our fork PRs yet; it may require maintainer approval. Those workspace results are historical; this is not a fresh workspace or CI result. ## Checked for overlap - [x] I searched open PRs for the same issue and touched files. Related: #3395 unrolls the mutating SEH `word_diff_copy`; it does not unroll the read-only `differ`. #1298 optimizes copy, not comparison. #4006 changes landing order allocation. --- **Radicle project hub (open-source porting and preservation history):** https://radicle.network/nodes/rosa.radicle.network/rad:z3rqQw7796wMbgj8RszExtWR4wMSE **Live development stream:** https://vdo.ninja/?view=gta6rtx4090live1080p60
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 00:46:37 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/4649/head:github-bot/gh-4648'
git switch 'github-bot/gh-4648'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-4648'
git switch 'github-bot/gh-4648'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-4648'
git switch 'github-bot/gh-4648'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-4648'
git switch 'main'
git merge --squash 'github-bot/gh-4648'
git switch 'main'
git merge --ff-only 'github-bot/gh-4648'
git switch 'main'
git merge 'github-bot/gh-4648'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!4649
No description provided.