Skip to content

Shaders: name the operation kind a whole-wave section the simulation cannot follow - #2344

Open
borosf wants to merge 1 commit into
Marvisak:mainfrom
borosf:vibe/section-refusal-kinds-842ca5
Open

borosf wants to merge 1 commit into
Marvisak:mainfrom
borosf:vibe/section-refusal-kinds-842ca5

Conversation

@borosf

@borosf borosf commented Nov 25, 2026

Copy link
Copy Markdown

Summary

  • The whole-wave section simulation (crates/victory-shader/src/emit/wave.rs) now records the first
    step 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's
    refusal instead of the single generic a whole-wave section step the simulation does not follow,
    so victory translate --list tabulates refused programs by the class of step that needs support.
  • This is the logging half of Black world after loading on NVIDIA: measurements, ranked hypotheses and a research dossier #1317 H-6.3 / FIND-7 ("Log refusals by operation kind, then
    implement"): the counts tell which intra-half cross-lane operation support would move the most
    refused programs.

claiming: FIND-7 (H-6.3, the logging step first; commenting from this account is blocked by the
integration's permissions, so the claim rides this pull request).

Verification

  • cargo test -p victory-shader --lib — 145 passed, 0 failed (includes the new
    unmodelled_steps_are_named_by_operation_kind, wave32 and wave64).
  • cargo clippy -p victory-shader --all-targets --locked -- -D warnings — error set identical to
    pristine main (940d32f); the remaining 4 are pre-existing non-Windows gating warnings, CI's
    windows-latest run is unaffected; no new warnings introduced.
  • cargo run -p xtask --locked -- policy — 182 files ok.
  • No game data used; the change runs on the pure translation pipeline (victory translate --list
    consumes the new reasons unchanged).

…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 DenRakEiw left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 (including unmodelled_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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants