Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1589"
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?
Imported from Marvisak/VIctory. Originally posted by MamaLeVrai on 2026-11-24T19:31:01Z.
A merge resolution for one PR. #189 emulates Wave64 compute shaders on 32-lane and narrower hosts. The open issues from NVIDIA owners keep hitting that wall: compute pipelines refused because the shaders ask for wave size 64 and the device maximum is 32 (#1107, #1323, #1001). This is #189 merged onto the whole shader stack (#1319, #1402, #1492, #1504, #1511), where it conflicts and fails to compile in a few places. Every head is merged unchanged onto
mainplus #1511, and the result is built and tested together.What is inside
54b333fc5Changes made while bundling
No change inside #189. Two things came up when merging it onto the stack:
emit/lower.rs: a helper that buildsPartsand callslower. #189 adds anoptionsfield toParts(options: TranslateOptions::default()); another PR of the stack reformatted the closing lines of the same call. Resolution: #189's field, in rustfmt's layout.cube_image_get_lod_lowersfrom #1004 andimage_atomics_64_bit_lower_with_typed_int64_flagfrom #305 inemit/lower.rs, andbuildinemit/root_view_tests.rsfrom #1056) buildPartswithout the newoptionsfield. Each now hasoptions: super::TranslateOptions::default(), which is what #189 does in its own tests.That is all of the merge: #189 does not conflict with the stack in the lowering itself.
Left out, and why
host.rs(#208's capability probe next to #189'srecommended_wave64_mode) and inshader_cache.rs(#189's mode byte in the cache input,input[33..], next to #358'stranslatedflag), and two tests of #358 then need the newWave64Modeargument ofcached(). The resolution is small and is in the merge commit on top of the branchbundle/allofMamaLeVrai/VIctory(clippy twice and 725 tests pass there); no bridge pull request, as the GPU bundles do not depend on this one.Verification
Windows 11, RX 6950 XT, Rust 1.98.1 (the pinned toolchain):
cargo clippy --workspace --all-targets --locked -- -D warningscargo clippy --workspace --all-targets --all-features --locked -- -D warningscargo test --workspace --lockedmain: 342 passed, 6 ignored)The title was not run, so this says nothing about in-game effect. No game data is used or committed.
Re-verify in one go
To confirm that no component PR moved since this was built, compare each
Headabove withgh pr view <n> --repo Marvisak/VIctory --json headRefOid. If one differs, the branch needs a rebuild: merge the new head in the same order.If this lands
The component heads are in the history unchanged, so each PR's commits and authorship are kept and GitHub should mark them merged. Merging them one by one instead works too, with the exceptions noted above.
AI-assisted (Claude Code); no game data.
🤖 Generated with Claude Code
Imported from Marvisak/VIctory. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-24T19:31:12Z.
Review: COMMENTED
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
Imported from Marvisak/VIctory. Originally posted by Impre-visible on 2026-11-24T19:53:03Z.
Test report for this bundle on a 32-lane host under Linux (not a code review).
Setup: Arch Linux, Wine from GE-Proton11-6 + vkd3d-proton (Proton Experimental), GTX 1660 6 GB (Turing, 32-lane waves only), NVIDIA 620.73.04, Series X mode, diagnostics build, empty shader cache, native
d3dcompiler_47in the prefix so indirect execution runs.Tree: this bundle + #1077 #1175 #523 #530 #1040 #1406 #542 #1056 #1392 #1516 #1388 #1189 #1523 (all merge cleanly except #542, a small conflict in
emit/lower.rs; #1407 conflicts inemit/lower.rsand is left out).cargo test -p victory-shader --lib: 153 passed, 0 failed, 1 ignored.One run into the world, to frame 2073 (about 7 minutes):
So the refusals for
WaveSize(64)are gone on this card.Compute programs that now do not translate, by reason (distinct shaders warned about in this run): a lane mask holding lanes elsewhere read as data (67),
v_readfirstlanein divergent control flow (64), a structured buffer of unknown stride (56), LDS accesses without a uniform LDS fence in split wave64 (40), a 64-lane wave ballot in divergent control flow (35), an address not from a root parameter (29).By dropped work per frame the first one is
LDS accesses without a uniform LDS fence in split wave64(10 shaders actually dispatched).The final image is still dark at frame 2048, and the title's stop of #1323 still comes at about frame 2000-2070. Runs differ in how many shaders they reach, so the two columns are one run each, not an exact A/B.
Imported from Marvisak/VIctory. Originally posted by MamaLeVrai on 2026-11-24T20:09:33Z.
Thank you, Impre-visible: 111 compute pipelines refused by the host down to 0 on a 32-lane card is the number this PR is for, and the list of walls that remain (lane mask holding lanes elsewhere,
v_readfirstlanein divergent flow, unknown stride, split wave64 LDS fence, wave ballot in divergent flow, address not from a root parameter) is the useful next map. I see #1407 conflicts with #189 inemit/lower.rsin your tree; I am building your whole tree as one branch on top of this PR (the list you ran, with #1523, and #1407 resolved against #189 if it can be), and will post it here and on #1495 with the checks. AI-assisted (Claude Code); no game data.Imported from Marvisak/VIctory. Originally posted by MamaLeVrai on 2026-11-24T20:17:19Z.
Impre-visible: your tree is now one branch, #1638, stacked on this PR: #189 as merged here plus #1077 #1175 #523 #530 #1040 #1406 #1392 #1516 #1388 #1189 #1523 #542 (#1056 is already in #1319). Clippy (both runs) and
cargo test --workspacepass on it (461 passed, two runs). #1407 is left out for the reason you found: it rewrites the lane-mask ballot in the same function as #189 (mask_dword), and I did not try to join two different rewrites. What it took beyond your list is described in #1638: the one-linekeep_dynamicchange after #1388,root_uavsin four test literals, the duplicateRENDER_TARGETconstant between #1523 and #1040, #542's bound applied to the stack's raw-view branch, and a fix of #1040's test (it assumed every adapter refuses a typed UAV on B5G5R5A1; an RX 6950 XT accepts it). If your counts differ on that branch (MamaLeVrai/VIctory,bundle/nvidia-stack), I would like to know. AI-assisted (Claude Code); no game data.Imported from Marvisak/VIctory. Originally posted by MamaLeVrai on 2026-11-24T20:30:34Z.
Impre-visible: the unknown-stride wall (56 shaders in your list) has its own PR now, #1644 (#704 on #193, on top of #1511; branch
bundle/stride-stack). Clippy (both runs) and 412 tests pass here; I did not run the title. It is built on #1511, not on #1589 or on your tree, so it does not change your wave64 numbers by itself.I tried merging it onto your tree (#1638): 11 files and 28 conflict hunks (
emit/lower.rs6,emit/shader.rs6,emit/mod.rs4,pipeline/host.rs3,shader_cache.rs3, one in each of the other six), among them the root-UAV and wave64 changes. That is not a mechanical merge and I have not built it. If you want #1589 and the stride stack in one tree to run now,bundle/allhas both (751 tests; it does not have your world-run list). The other walls in your list are not touched by it.AI-assisted (Claude Code); no game data.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:42:55Z.
Automated triage for the maintainers. Closing because this pull request re-packages other open pull requests. Each of those is reviewed on its own, so a bundle cannot be merged.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
upstream-sync referenced this pull request2026-11-25 08:06:33 +00:00
Pull request closed