feat: RDNA 2 HLSL recompiler ported to Rust (in progress) #303
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/303"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-26T01:53:42Z.
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 ofrust/full, reusing the decoder ofcrates/anyxboxx-rdna2-ref.tests/test_rdna2_hlsl*.py); the emitted HLSL text is compared, then the GPU results (rule 4) through the Rust GPU runner on WARP.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
Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-27T18:20:06Z.
Update: 62 commits on this branch now (MUBUF bytes finished, origin/main merged, 57 image operations and 34 typed-buffer encodings, wave32/wave64 forms, vertex and pixel shaders,
anyxboxx rdna2 FILE --hlslmatching the Python output). Two parity decisions are open for the maintainer:v_cos_f32(0.25)(Python HLSL under WARP 0xB33BBD2E vs interpreter 0x248D3132) andv_movrels_b32reading out-of-range v260 (shader writes zero, interpreter raises Untranslated). 568 cargo tests, pytest 4319 passed under WARP.Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-27T18:23:01Z.
Maintainer decision on the two open parity questions: the RDNA 2 reference interpreter is the reference (AGENTS.md rule 4).
v_cos_f32and the transcendental family get aligned on the interpreter (or refused with an error naming the instruction if exact parity is impossible), andv_movrel*out of range is refused like the interpreter instead of writing zeros, in both the Rust and the Python generators.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.