NVIDIA compatibility: Wave64 control flow and lossless d16 buffer accesses #1249

Open
github-bot wants to merge 2 commits from github-bot/gh-1249 into main AGit
Owner

@⁠ByFxbian on GitHub · 2026-11-26 02:18 UTC · original
ByFxbian:integration/nvidia-compat → main · +1932 −43 · 19 files · 2 commits · open

Summary

An ongoing NVIDIA compatibility integration, combining and adapting existing translator improvements with independent hardware validation on an RTX 3070.

Implemented

  • Wave64 divergent-loop region analysis and LDS synchronization improvements.
  • Explicit opt-in for approximate half-wave execution.
  • Lossless 16-bit typed-buffer accesses with unsigned descriptor views (VICTORY_SHADER_D16_BITS=1).
  • Experimental R11 render-target PSO variant reproducing and addressing D3D12 error 613. This part has since been superseded by upstream commit a35c5573 and will be removed.

Hardware validation

  • RTX 3070, driver 610.88
  • Ryzen 5 5600X, 32 GB RAM
  • Resizable BAR enabled

Results:

  • Seven divergent-loop CPU-reference comparisons passed.
  • Cross-half LDS reads and lane numbering matched the CPU reference.
  • All 128 native d16 output patterns matched on hardware and WARP.
  • All 65,536 half-bit patterns survived the unsigned typed-buffer path.
  • Focused DXIL and GPU-based validation passed.

Workspace: 221 shader tests and 196 GPU tests passed. Three GPU failures also occur on clean upstream. Existing diagnostic files fail the repository asset policy.

Remaining work

  • Complete the paired Wave64 backend.
  • Preserve compatible fallback behavior.
  • Resolve overlap with recent upstream commits.
  • Validate multiple independently progressing console waves.
  • Measure shader execution performance.

Attribution

Based on contributions from Pilote Production (#854, #993), tippythetaidum (#927), and darkworldhm's published snapshot.

Developed with assistance from OpenAI Codex.

No commercial game files were used. No gameplay FPS or visual improvements are claimed.

This is a draft integration for review and further development, not yet a merge-ready patch.

**@⁠ByFxbian** on GitHub · 2026-11-26 02:18 UTC · [original](https://github.com/fxceless/victory-fork/pull/1249) `ByFxbian:integration/nvidia-compat` → `main` · +1932 −43 · 19 files · 2 commits · open ## Summary An ongoing NVIDIA compatibility integration, combining and adapting existing translator improvements with independent hardware validation on an RTX 3070. ### Implemented - Wave64 divergent-loop region analysis and LDS synchronization improvements. - Explicit opt-in for approximate half-wave execution. - Lossless 16-bit typed-buffer accesses with unsigned descriptor views (`VICTORY_SHADER_D16_BITS=1`). - Experimental R11 render-target PSO variant reproducing and addressing D3D12 error 613. This part has since been superseded by upstream commit `a35c5573` and will be removed. ### Hardware validation - RTX 3070, driver 610.88 - Ryzen 5 5600X, 32 GB RAM - Resizable BAR enabled Results: - Seven divergent-loop CPU-reference comparisons passed. - Cross-half LDS reads and lane numbering matched the CPU reference. - All 128 native d16 output patterns matched on hardware and WARP. - All 65,536 half-bit patterns survived the unsigned typed-buffer path. - Focused DXIL and GPU-based validation passed. Workspace: 221 shader tests and 196 GPU tests passed. Three GPU failures also occur on clean upstream. Existing diagnostic files fail the repository asset policy. ### Remaining work - Complete the paired Wave64 backend. - Preserve compatible fallback behavior. - Resolve overlap with recent upstream commits. - Validate multiple independently progressing console waves. - Measure shader execution performance. ### Attribution Based on contributions from Pilote Production (#854, #993), tippythetaidum (#927), and darkworldhm's published snapshot. Developed with assistance from OpenAI Codex. No commercial game files were used. No gameplay FPS or visual improvements are claimed. This is a draft integration for review and further development, not yet a merge-ready patch.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:00:21 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/descriptor/host.rs
  • crates/victory-gpu/src/draw.rs
  • crates/victory-shader/src/emit/valu_tests.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1249'
git switch 'github-bot/gh-1249'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1249'
git switch 'github-bot/gh-1249'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1249'
git switch 'main'
git merge --squash 'github-bot/gh-1249'
git switch 'main'
git merge --ff-only 'github-bot/gh-1249'
git switch 'main'
git merge 'github-bot/gh-1249'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.