feat: RDNA 2 HLSL recompiler ported to Rust (in progress) #303

Open
github-bot wants to merge 41 commits from github-bot/gh-303 into main AGit
Owner

@⁠LooperSalty on GitHub · 2026-11-26 01:53 UTC · original
LooperSalty:codex/rdna2-hlsl → main · +4854 −3 · 58 files · 41 commits · draft

Change (in progress)

Port of the RDNA 2 -> HLSL recompiler (PrototypeScarlett/emu/rdna2_hlsl*.py) to Rust, written by OpenAI Codex at the maintainer's request, family by family on top of rust/full, reusing the decoder of crates/anyxboxx-rdna2-ref.

  • Parity harness: the Python and Rust recompilers run on the same programs (the encoders of tests/test_rdna2_hlsl*.py); the emitted HLSL text is compared, then the GPU results (rule 4) through the Rust GPU runner on WARP.
  • Done so far: scalar families (SOP1, SOP2, SOPC, SOPK, 64-bit, indexed moves), VOPC (integer, f32, f16), VOP2 (integer, verified floating, carry, f16), VOP1 (basic, f16 conversions and rounding, indexed moves and swaps).
  • To do: VOP3, VOP3P, memory, images, graphics stages. Draft until complete.

Verification (local, Windows)

Each family: targeted HLSL tests pass under WARP; cargo build/test --release --workspace, clippy (-D warnings), fmt and ruff pass. No game or game file was run.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LwHrL4bPjrVJiDKC8BDYfz

**@⁠LooperSalty** on GitHub · 2026-11-26 01:53 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/303) `LooperSalty:codex/rdna2-hlsl` → `main` · +4854 −3 · 58 files · 41 commits · draft ## Change (in progress) Port of the RDNA 2 -> HLSL recompiler (`PrototypeScarlett/emu/rdna2_hlsl*.py`) to Rust, written by OpenAI Codex at the maintainer's request, family by family on top of `rust/full`, reusing the decoder of `crates/anyxboxx-rdna2-ref`. - Parity harness: the Python and Rust recompilers run on the same programs (the encoders of `tests/test_rdna2_hlsl*.py`); the emitted HLSL text is compared, then the GPU results (rule 4) through the Rust GPU runner on WARP. - Done so far: scalar families (SOP1, SOP2, SOPC, SOPK, 64-bit, indexed moves), VOPC (integer, f32, f16), VOP2 (integer, verified floating, carry, f16), VOP1 (basic, f16 conversions and rounding, indexed moves and swaps). - To do: VOP3, VOP3P, memory, images, graphics stages. Draft until complete. ## Verification (local, Windows) Each family: targeted HLSL tests pass under WARP; `cargo build/test --release --workspace`, clippy (`-D warnings`), fmt and ruff pass. No game or game file was run. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01LwHrL4bPjrVJiDKC8BDYfz
Co-Authored-By: OpenAI Codex <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:42:27 +00:00
github-bot changed target branch from rust/full to main 2026-11-26 11:48:25 +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/303/head:github-bot/gh-303'
git switch 'github-bot/gh-303'

Merge

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