Translator: consider RDNA2 → NIR → DXIL instead of direct lowering #1308

Open
opened 2026-11-26 13:36:53 +00:00 by github-bot · 0 comments
Owner

@⁠liuycsbxbxn on GitHub · 2026-11-26 13:33 UTC · original

Split out of #1273.

Suggested labels: shader / research
Verification cost: [CPU] for translation-only work, [GPU] for anything about output quality

What the meta-issue says

Port the translator to be RDNA2 → NIR → mesa NIR optimized → NIR → DXIL. mesa NIR optimizer is probably more powerful … and it will eventually enable easier ports to SPIR-V / Vulkan.

Acceptance (as a research issue, not an implementation)

  1. A spike on 10 programs: translate RDNA2 → NIR, run the Mesa optimizer, then NIR → DXIL, and compare instruction counts and validation results against what victory-shader emits today.
  2. Say whether the console's wave semantics survive the round trip (wave64_tests.rs / scc_some lowering are the known hard spots).
  3. Only then decide whether the pipeline is worth a real port.

**@⁠liuycsbxbxn** on GitHub · 2026-11-26 13:33 UTC · [original](https://github.com/fxceless/victory-fork/issues/1308) Split out of #1273. **Suggested labels:** shader / research **Verification cost:** `[CPU]` for translation-only work, `[GPU]` for anything about output quality ### What the meta-issue says > Port the translator to be RDNA2 → NIR → mesa NIR optimized → NIR → DXIL. mesa NIR optimizer is probably more powerful … and it will eventually enable easier ports to SPIR-V / Vulkan. ### Acceptance (as a research issue, not an implementation) 1. A spike on 10 programs: translate RDNA2 → NIR, run the Mesa optimizer, then NIR → DXIL, and compare instruction counts and validation results against what `victory-shader` emits today. 2. Say whether the console's wave semantics survive the round trip (`wave64_tests.rs` / `scc_some` lowering are the known hard spots). 3. Only then decide whether the pipeline is worth a real port. ---
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 13:36:53 +00:00
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/fxceless--victory-fork#1308
No description provided.