Repository navigation
Conversation
…cannot follow Co-authored-by: borosf <borosf@users.noreply.github.com>
RecompLive
added a commit
to RecompLive/victory-fork
that referenced
this pull request
Nov 25, 2026
…lled (victory #2344, borosf) `wave::Section` now carries `unknown`, the first step `simulate` could not follow, named by operation kind (lane set written another way, shared memory, lane swizzle, DPP, source modifiers, a select on an unnamed mask, a permutation, or a plain unmodelled op). `lower` reports it as the program's refusal instead of one flat string, so a census of a refused corpus (`victory translate --list`) counts kinds apart. Ported unchanged from Marvisak/VIctory#2344 (Koralski). New test `unmodelled_steps_are_named_by_operation_kind` (needs `Section::unknown`, so it cannot pass on the base tree).
DenRakEiw
approved these changes
Nov 25, 2026
DenRakEiw
left a comment
There was a problem hiding this comment.
Verified against origin/main (940d32f) on Windows 11 + NVIDIA GeForce RTX 5090 and WARP:
- Naming unmodelled whole-wave simulation steps by operation kind provides clearer diagnostics while preserving existing prefix/DPP recognition.
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).