Shaders: name the operation kind a whole-wave section the simulation cannot follow #2342
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2344"
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 Marvisak/VIctory. Originally posted by borosf on 2026-11-25T11:12:51Z.
Summary
crates/victory-shader/src/emit/wave.rs) now records the firststep it cannot follow, classified by operation kind (DPP over lanes it has not named, a DPP pattern
it does not model, source modifiers, a lane set written another way, a select on a mask it does not
name, a lane permutation, a fixed-lane read, a lane swizzle, a shared-memory step, an unmodelled
operation) on a new
Section::unknown.Lower::section_inst(crates/victory-shader/src/emit/lower.rs) reports that kind as the program'srefusal instead of the single generic
a whole-wave section step the simulation does not follow,so
victory translate --listtabulates refused programs by the class of step that needs support.implement"): the counts tell which intra-half cross-lane operation support would move the most
refused programs.
Verification
cargo test -p victory-shader --lib— 145 passed, 0 failed (includes the newunmodelled_steps_are_named_by_operation_kind, wave32 and wave64).cargo clippy -p victory-shader --all-targets --locked -- -D warnings— error set identical topristine
main(940d32f); the remaining 4 are pre-existing non-Windows gating warnings, CI'swindows-latestrun is unaffected; no new warnings introduced.cargo run -p xtask --locked -- policy— 182 files ok.victory translate --listconsumes the new reasons unchanged).
Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-25T11:26:25Z.
Review: APPROVED
Verified against
origin/main(940d32f) on Windows 11 + NVIDIA GeForce RTX 5090 and WARP:cargo test -p victory-shader emit::wave: 7/7 passed on RTX 5090, 7/7 passed on WARP (includingunmodelled_steps_are_named_by_operation_kind).cargo clippy -p victory-shader --all-targets -- -D warnings: 0 warnings.cargo xtask policy: 183 files ok.AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T11:51:52Z.
Review: APPROVED
Tested locally: merged into main
940d32f69b,cargo test -p victory-shader --lockedon macOS arm64 — 145 passed, 0 failed, 2 ignored (Windows-gated hardware execution tests not run here). Approving — operation kind named for whole-wave sections in simulation.Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T15:29:57Z.
Automated triage for the maintainers.
Merge candidate (diagnostics). This records the first step the whole-wave section simulation in
emit/wave.rs(simulate) cannot follow, as a reason per operation kind on the newSection::unknown, andLower::section_instreports it in place of the single generic reason, sovictory translate --listcan group refused programs by what needs support. Shapes and lowering are unchanged, and the generic reason stays when nothing was recorded. I checked that each new reason is set exactly wheremainalready producedSym::Unknown, and that values unknown only because an input was unknown don't overwrite the root cause. Only the first of several independent unknown steps is named, which is fine for a census. The new test covers wave32 and wave64. CI: passing.Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T02:10:48Z.
Review: COMMENTED
Reviewed and verified against
main(63bcca43) on Windows 11 — clean diagnostic improvement and ready to merge:wave::simulate(ds_swizzle/ds_permute, otherds_*, general unmodelled ops, non-constantEXEC) and forwarding it toVal::Missinginlower.rs:1115-1127givesvictory translate --listactionable buckets without dropping other tracked register shapes.emit/lower.rssize on63bcca43: 520,811 B (+248 B, 3,477 B under the 512 KiB cap).Local verification:
cargo test --locked -p victory-shader --lib emit::wave:: emit::lower::tests: 41/41 passed (includingunmodelled_steps_are_named_by_operation_kindfor wave32 and wave64)cargo clippy --all-targets -- -D warnings+cargo xtask policy(191 files ok): 0 warningsView 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.