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!3587
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3587"
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?
@zed6000 on GitHub · 2026-11-27 19:24 UTC · original
zed6000:revive-permlane→main· +616 −1 · 4 files · 9 commits · openThis reopens #1737 by @jaschinski97-ops (permlane EXEC and FI/BC flags), together with the
v_permlane16_b32/v_permlanex16_b32lowering from #1014 by @bartikele that it builds on. Both were closed on 2026-11-26 without being merged. The change is still needed onmain: one program the title runs in the intro is refused withemit: v_permlanex16_b32.The branch is @steven-seagull27's fast-forward of #1737 onto
main63bcca4, from their comment on #1737. All original commits and authors are kept. It adds the divergent FI=0 readback fixture, the twods_bpermuteregressions found at the merge conflict, the permlane code in its own module (which keepslower.rsunder the size limit), and their fix that refuses scalar branches it can't prove host-uniform.Measured on an RX 7900 XTX (driver 32.0.32029.2010), Windows 11:
shaders.rpf(translate --validate --list, 26,084 programs), compared withmain63bcca4program by program: +1, 0 lost. The one is thatv_permlanex16_b32refusal.cargo test -p victory-shader --lib --locked: 311 passed, 0 failed.I'm happy to hand this back if any of the original authors wants to continue it. AI-assisted (Claude Code); counts only, no game data.
67e8ae1into permlane follow-up abb811f13dmaincan take merges more often #3347@oni-swr on GitHub · 2026-11-27 20:10 UTC · original
Independent verification of #3587 (head
733f9e8584e2a35cbf0f1e066a2077ad3502f039, basemain63bcca43). Claimed on #1633. AI-assisted: Claude Code (Claude Sonnet 5.5). Counts only, no game data.Setup: Windows 11 (26100), rustc 1.98.1,
VICTORY_WARP=1andVICTORY_D3D12_WARP=1, WARPd3d10warp.dll10.0.26100.9818,dxil.dll1.8.2502.11 (Windows SDK 10.0.26100). No physical GPU used. Note: adxil.dllfrom SDK 19041 crashes the test binary with STATUS_ACCESS_VIOLATION on both base and head, so use a newer one.Tests (
cargo test -p victory-shader --lib --locked -j 4):63bcca43: 298 passed, 4 failed, 3 ignored (305 tests).emit::synthetic_tests:a_mask_joined_with_data_at_a_uniform_loop_is_its_number,gathers_at_a_level_match_the_hardware,permutes_mask_high_address_bits_and_divergent_branches,permutes_read_the_lane_named_and_zero_from_lanes_left_out). They are not caused by this PR and are probably WARP-specific.v_permlanex16_b32, or the FI "outside the host branch" refusal missing). 3 still pass on base:permlane16_lowers(does not discriminate; the simple case already lowers on base), andpermlane_rows_and_inactive_sources/permlane_fi_zero_under_divergent_exec(see the caveat below).cargo clippy -p victory-shader --all-targets --locked -- -D warningson head: clean.lower.rson head: 521,003 bytes (limit 524,288), OK.Caveat (important): on this WARP the host reports waves 4..4, so the two execution tests print "GPU checks skipped". Row selection, FI/BC and EXEC behaviour at run time were therefore NOT executed here. They rest on the author's RX 7900 XTX run. What I verified is that the lowering is accepted, DXIL validates, and the refusals trigger.
Review of the diff (reading only, not run here):
(lane&7)*4. Matches the RDNA2 ISA.write_i(..., guard).lane_index()was not exercised here.matches!line added inlower.rsis over 100 columns (not rustfmt-formatted) and there is a stray blank line afterTWO_PI.cargo fmt --checkon the crate is already not clean on base, so this is not new.Overlap with other open PRs:
maininemit/wave.rs, and with #3587 as well. #3587 does not touchwave.rs, so #3587 does not cause it. Both lowerv_permlane16/v_permlanex16, so they overlap in purpose (#98 only in whole-wave sections).git merge-treeis clean). But the mergedlower.rswould be 524,420 bytes, 132 over the 524,288 limit. If that limit is enforced bycargo xtask policy(it appears to be,MAX_FILE_SIZEinxtask/src/policy.rs, not run here), whichever lands second would need to move code out oflower.rs.Verdict: the new tests pass and the control confirms 6 of 9 are meaningful on base; no correctness defect found in the lowering by reading, but the run-time behaviour was not exercised on this WARP.
@kilolimaVI on GitHub · 2026-11-27 21:05 UTC · original
Verified on AMD Radeon 780M (RDNA3, supports both wave32 and wave64), Windows 11, head
733f9e8.Before (main
63bcca4+ this PR'spermlane_tests.rs): 0/8 passed. Lowering fails before any check runs (lower permlaneexpect panics, and the rejection tests get a different error than the expectedUnsupported).After: 9/9 passed, 5 of 5 runs. Hardware readback from the first run:
Full suite (
victory-shader+victory-gpu --features diagnostics): 560 passed, 0 failed.AI-assisted (Claude).
View 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.