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

Open
ByFxbian wants to merge 2 commits from upstream-pr/1249 into main
ByFxbian commented 2026-11-26 02:18:33 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by ByFxbian on 2026-11-26T02:18:33Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6618067790 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1249). Originally posted by [ByFxbian](https://github.com/ByFxbian) on 2026-11-26T02:18:33Z. --- ## 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.
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/1249:upstream-pr/1249'
git switch 'upstream-pr/1249'

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/1249'
git switch 'upstream-pr/1249'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1249'
git switch 'upstream-pr/1249'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1249'
git switch 'main'
git merge --squash 'upstream-pr/1249'
git switch 'main'
git merge --ff-only 'upstream-pr/1249'
git switch 'main'
git merge 'upstream-pr/1249'
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
fxceless/victory-fork!1246
No description provided.