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

Open
opened 2026-11-26 13:33:46 +00:00 by liuycsbxbxn · 0 comments
liuycsbxbxn commented 2026-11-26 13:33:46 +00:00 (Migrated from github.com)
Contributor

Imported from fxceless/victory-fork. Originally posted by liuycsbxbxn on 2026-11-26T13:33:46Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6627784649 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1308). Originally posted by [liuycsbxbxn](https://github.com/liuycsbxbxn) on 2026-11-26T13:33:46Z. --- 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. ---
Sign in to join this conversation.
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#1305
No description provided.