Repository navigation
Shaders: lower row permutations on wave32 hosts - #40
jaschinski97-ops wants to merge 2 commits into
Conversation
|
Verified at
But the two new tests did not run. That gate looks stricter than the code needs. match validator::Validator::load(validator::Validator::default_path().as_deref()) {
...
Err(e) => eprintln!("DXIL validator unavailable: {e}"),
}so the lowering assertions would run on any platform; only the validation step needs Since I cannot run them: is the row-permutation rewrite exercised by anything that does run off Windows, e.g. a |
|
Independent test run on commit
AI use: Antigravity (Gemini 4 Neon) ran clippy/tests locally and wrote this report. |
|
Ran The only change is the one |
|
Independent targeted run on the current PR head
This validates the translator's synthetic cases on RDNA2; it does not test the game or establish gameplay/performance. |
|
Integration test against the latest fork main fetched for this review.
Full sanitized log: https://gist.github.com/Mesrine67/4b0a982a3a078aaad1a8d0a45695b892 No game executable was launched; these are shader/runtime tests only. The PR branch and fork main were not modified or pushed. |
|
Fresh local rerun on 2026-11-25 at PR head
These are translator and synthetic GPU tests only; no game executable was launched and no gameplay or performance result is claimed. |
…OMPARE_PARALLEL VICTORY_PERMLANE=0 refuses v_permlane16/x16 as before (default on). VICTORY_CARD_COMPARE_PARALLEL=0 uses the original one-thread-per-piece CARD_COMPARE_SERIAL (default on = parallel group reduction). The COPY queue already has VICTORY_RELAY_COPY_QUEUE. Verified intertwined: geometry/models/ lighting load properly, 230-240ms; fetch wait 86->6ms, copy-back 186->34ms, GPU 172->140ms; refusals 21->9 (permlane hash a929109552ce1e84 now translates).
The translator rejects ordinary
v_permlane16_b32andv_permlanex16_b32instructions outside recognized whole-wave reduction patterns.v_permlanex16_b32is among the outstanding translation failures reported in #26 and the RTX 3080 report in #22.This change lowers both instructions to DXIL row selection and lane reads, including both runtime selector words, EXEC, fetch-inactive, bound-control and aliased source/destination registers. It also marks the instructions as requiring console lane layout, allowing the existing Wave64-on-Wave32 path to handle their 32-lane-local permutations. Fetch-inactive inside a divergent host branch remains explicitly unsupported because the absent invocations' last VGPR values are unavailable. Cross-lane use outside compute retains its existing rejection.
Validation on Windows 11 / NVIDIA RTX 3080 (driver 32.0.16.2140), Rust 1.98.1, Windows GNU target with a local LLVM/MinGW linker:
cargo test --locked -p victory-shader --lib -- --test-threads=1: 212 passed, 0 failed, 2 existing ignored tests.cargo clippy --locked -p victory-shader --all-targets --features diagnostics,host -- -D warnings: clean.cargo xtask policy: 170 files OK.git diff --check: clean.diagnostics,hostand-D warningsand the asset policy pass. The two changes combine without conflicts.No title data or shader dumps are included. No gameplay, performance or native Wave64-device validation was performed; this addresses a translation gap rather than demonstrating that the title is playable. Instruction semantics follow AMD's RDNA 2 ISA, section 12.12: https://docs.amd.com/v/u/en-US/rdna2-shader-instruction-set-architecture
AI-assisted contribution with Codex; code and synthetic hardware tests run locally.
Additional independent review found that per-lane loop-limit returns can bypass later reconvergence. Commit 39f1717 adds a dedicated FI participation analysis including those synthetic return edges, leaving the existing LDS/split-wave analysis unchanged. The new loop-abort case fails before the correction and passes afterwards; all four control-flow regression tests and shader Clippy (all targets/all features, warnings denied) pass. The GPU matrix reported above was run for the original change. No game test is claimed.