Shaders: name the operation kind a whole-wave section the simulation cannot follow #2344
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2344
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@borosf on GitHub · 2026-11-25 11:12 UTC · original
borosf:vibe/section-refusal-kinds-842ca5→main· +132 −14 · 2 files · 1 commits · openSummary
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).
@Marvisak on GitHub · 2026-11-25 15:29 UTC · original
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
@DenRakEiw on GitHub · 2026-11-25 11:26 UTC · original · approved these changes
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).
@catminou4 on GitHub · 2026-11-25 11:51 UTC · original · approved these changes
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.@fuzeofficlal on GitHub · 2026-11-26 02:10 UTC · original · reviewed
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.