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!2651
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2651"
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?
@Pierrot1398 on GitHub · 2026-11-25 17:34 UTC · original
Pierrot1398:gpu/wave64-sized-compute→main· +1968 −135 · 20 files · 30 commits · openFrom a tester working with Claude (AI-assisted); measured on my own machine.
Stacked on #1922 and #233. The first commit merges both into current
main(13f91ca); only the last commit is new. They are open separately and refuse each other's work when merged together, so this is the piece that makes them combine.Problem
Together, #1922 and #233 drop a wave64 compute program that would run correctly:
WaveSize(32). Programs it found to read no lane of the other half get no wave size, because they run per lane at any size.So #1922 refuses exactly the second kind, which #233 had shown to be safe.
On an RTX 5060 Ti with both PRs, one such program (
052a2316a03b9ba1) was dropped on every loading frame ("dropped 1.0/frame without a host pipeline"), and the run ended at the title's watchdog+0x23cf683(#1118) while the intro prestreamed.Change
wave_lanes_unsupported(pipeline/host.rs): an unsized console wave64 compute program is kept on a host without 64-lane waves.VICTORY_WAVE64_STRICT=1restores the refusal for compute too, in case a hang shows up. It's documented in the README's table.The merge commit also resolves
lower.rsagainstmain:main's newuniform_joinand quad-helper comment sit next to #233'sconsole_read_laneand console-flow note.main's new lane-mask join propagateslane_bit's refusal, which #233 made fallible.main's new tests pass #233's loweringtargetandconsole_cffields.Measured
RTX 5060 Ti 8 GB, driver 621.24, Windows 11 26300, on a tree with the other open NVIDIA fixes:
052a2316…runs ("dropped 0 without a host pipeline").+0x23cf683before running out of host memory on this 13.9 GB machine.translate --host-lanes 32-32: 2,330 of 2,679 compute programs and 8,765 of 8,765 mesh programs emitted.On this branch alone:
cargo test -p victory-gpu --lib: 197 passed. The 2 failures are the capped-heap tests, which fail onmainon this card (fixed by #1779, on currentmainin #2650).cargo clippy -p victory-gpu -- -D warningsandcargo xtask policyare clean.🤖 Generated with Claude Code
https://claude.ai/code/session_011f6R3kMoarujHzzA1AvSBb
A console wave64 program that reads masks whole or lanes of the other half now runs on a host without 64-lane waves when its group is one console wave (64 threads or fewer, no LDS). It runs as the console does ("console flow"): - `structure::structure_console` never resolves mask joins from what the lanes arriving know (every lane arrives); `Structured::execs` gives each vector instruction's EXEC bit. - Vector instructions are guarded by EXEC. Branches are the console's s_cbranch_*: EXEC, VCC and mask-operation SCC tests are the console wave's, from both halves' ballots exchanged through group-shared memory between group barriers, which every thread reaches since both halves branch alike. - Masks read whole are the exchanged ballots. v_readlane and v_readfirstlane read the owning half; v_writelane, v_mbcnt and mask bit tests use the console lane. The per-lane form is tried first; a program that needs the console flow is lowered again from the console structure. GPU tests on an RTX 5070 are exact against the console: s_bcnt1 over both halves (64, 48 and 32 threads), v_readlane 40, an exchange inside a branch only the lower half takes, and a loop the halves leave at different iterations with a lane read in each. The last one shows that the per-lane form, which hosts with 64-lane waves get, is wrong for it (on a Radeon iGPU): noted in docs/wave64-on-wave32.md, not changed. Co-Authored-By: Claude Opus 5.5 <[email protected]>940d32f) into the host wave sizes branch 02b955ffc902b955f) into the console flow e5ffedbb8b@Bj0rnis on GitHub · 2026-11-25 17:40 UTC · original
Independent Windows 11 + NVIDIA GeForce RTX 5070 Ti (32-lane Blackwell host) + WARP verification of #2651 at
59438221(cleangit merge-treewithorigin/main13f91cae, Rust 1.98.1 MSVC):victory-gpu):cargo test -p victory-gpu --features diagnostics --lib --locked -- --test-threads=1-> 200 passed, 2 failed, 1 ignored (2.74s; includes the 4 new tests, only the 2 pre-existing #1744 NVIDIA 1M view-heap baseline failures also present onmain13f91cae).VICTORY_D3D12_WARP=1): 202 passed, 0 failed, 1 ignored (1.71s).victory,victory-gpu,victory-shader):--all-targets --locked -- -D warnings-> 0 warnings across all three crates.cargo xtask policy-> 185 files ok.victory-shadertests: hit the pre-existing0xc0000005(STATUS_ACCESS_VIOLATION) inemit::memory_tests::heap_direct_texture_reads_mark_their_heap_indexon RTX 5070 Ti, which reproduces identically on cleanmain13f91cae.Not tested: live game workload /
victorybin tests.AI-assisted test run and summary.
@kotekompotek on GitHub · 2026-11-25 17:54 UTC · original
Reviewed (partial): the
--host-lanes MIN-MAXflag +VICTORY_WAVE64_STRICTis the fuller version of what #2633 attempted (which still has committed merge-conflict markers in its README — this PR subsumes it cleanly). Stacking on #1922/#233 is honest about dependencies. CI green.@pickles976 on GitHub · 2026-11-25 20:38 UTC · original
Independent Linux/Wine + NVIDIA Ada validation of exact head
5943822168c6aa94440c5b1dd3e96708471ea323, before applying any local compatibility integrations.RTX 4060 Laptop GPU (8 GB), NVIDIA 590.48.1, 16 GB system RAM, Wine 11.0, DXVK/vkd3d-proton, Rust 1.98.1 Windows-MSVC cross-build.
VICTORY_ADAPTER=nvidia,DXVK_CONFIG='dxgi.hideNvidiaGpu = False'; no desktop display required for these offscreen tests.pipeline::host::tests::{emitted_wave_size_checked_against_host_range,wave_lanes_refusal_reports_emitted_and_host_ranges,dxil_wave_lanes_reads_psv0_bounds}emit::split_testsThe GPU cases actually dispatched on NVIDIA GeForce RTX 4060 Laptop GPU, not a hardware-absent early return: output reports exact results with
split truefor DPP row masks, the branch skipped by one half,v_readfirstlane, in-half reads (32/64/128 threads), lane 40 reads, the divergent loop, whole-mask counts (32/48/64 threads), saveexec SCC and all six 3-D layouts. These are numerical synthetic checks, not a pipeline-creation-only result.Commands, with the usual Wine runner and NVIDIA ICD configured:
Limits: not a full-library run, title/world-entry test, runtime shader census, FPS measurement, or long-duration stability result. DXVK logged its
CreateDXGIFactory2: Ignoring flags/ unknown-interface warnings; this is not a warning-free-log claim. No code change proposed here; adding coverage for the Wine/NVIDIA path to the existing PR.AI-assisted execution and report: omp / openai-codex/gpt-6-astra.
@Marvisak on GitHub · 2026-11-25 22:15 UTC · original
Automated triage for the maintainers.
This PR no longer merges cleanly into
main(f3578e3):apps/victory/src/main.rsandcrates/victory-shader/src/emit/host.rsconflict with changes that landed onmain. It will be reviewed once it is rebased.Generated by Claude Code
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.