Run synthetic GFX10 compute snippets on a selected Windows GPU #202

Open
github-bot wants to merge 6 commits from github-bot/gh-202 into main AGit
Owner

@⁠GeaorgeAyvazov on GitHub · 2026-11-24 22:32 UTC · original
GeaorgeAyvazov:shader/terminal-runner → main · +230 −9 · 4 files · 6 commits · draft

This integration branch makes the tested Windows setup reproducible. Run-Rdna.ps1 uses Cargo to build and dispatch a one-thread synthetic GFX10 compute snippet through the shader translator and D3D12. Input words are hexadecimal; four input dwords are available in s0..s3 and v1..v4. The result is read back from v0.

Verified from PowerShell on the RTX 3070 Ti Laptop:

.\Run-Rdna.ps1 -Adapter NVIDIA -Words 'be861a00 7e000206' -Inputs 'face8000 0 0 0'

Result: v0 = 0xffff8000 (4294934528 unsigned, -32768 signed). The focused run passed; 215 other tests were filtered by its exact name. The integrated shader library test binary previously passed all 216 tests on this setup with VICTORY_STRICT_JOINS=1 and --include-ignored --test-threads=1.

This draft includes the changes proposed separately in #78 (original author retained), #171, #182, and #197. The terminal harness and PowerShell entry point are the additional changes. No game assets or prebuilt executable are required. Prepared and tested with OpenAI Codex.

**@⁠GeaorgeAyvazov** on GitHub · 2026-11-24 22:32 UTC · [original](https://github.com/fxceless/victory-fork/pull/202) `GeaorgeAyvazov:shader/terminal-runner` → `main` · +230 −9 · 4 files · 6 commits · draft This integration branch makes the tested Windows setup reproducible. Run-Rdna.ps1 uses Cargo to build and dispatch a one-thread synthetic GFX10 compute snippet through the shader translator and D3D12. Input words are hexadecimal; four input dwords are available in s0..s3 and v1..v4. The result is read back from v0. Verified from PowerShell on the RTX 3070 Ti Laptop: ```powershell .\Run-Rdna.ps1 -Adapter NVIDIA -Words 'be861a00 7e000206' -Inputs 'face8000 0 0 0' ``` Result: v0 = 0xffff8000 (4294934528 unsigned, -32768 signed). The focused run passed; 215 other tests were filtered by its exact name. The integrated shader library test binary previously passed all 216 tests on this setup with VICTORY_STRICT_JOINS=1 and --include-ignored --test-threads=1. This draft includes the changes proposed separately in #78 (original author retained), #171, #182, and #197. The terminal harness and PowerShell entry point are the additional changes. No game assets or prebuilt executable are required. Prepared and tested with OpenAI Codex.
A 1-thread compute group has no peers sharing LDS without barriers, so
declaring WaveSize(32) for `group == 1` is unnecessary and causes
CreateComputePipelineState to fail with E_INVALIDARG on 64-lane-only AMD GCN
GPUs (e.g. Vega 8 / gfx90c) and on WARP.

Restrict `one_wave` in `crates/victory-shader/src/emit/lower.rs` to
`group > 1 && group <= wave`, add a unit test pinning `threads = [1, 1, 1]`
vs `[2, 1, 1]`, and run `ds_min_max_f32_order_floats_and_return_the_old_value`
on both hardware and WARP.

AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:38:11 +00:00
This pull request has changes conflicting with the target branch.
  • 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/202/head:github-bot/gh-202'
git switch 'github-bot/gh-202'

Merge

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