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!1492
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1492"
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?
@MamaLeVrai on GitHub · 2026-11-24 18:24 UTC · original
MamaLeVrai:bundle/shader-lowering→main· +623 −17 · 5 files · 24 commits · openOne PR in place of 10. After
mainmoved, this bundle keeps the 10 of its earlier 20 PRs that still merge; the left-out ones are listed below. The earlier description follows, and may mention PRs or measurements that no longer apply. Twenty open shader PRs that add or fix the lowering of single instructions (SAD, frexp and ldexp, f16 division fixup, packed and 16-bit integer ops, scalar SCC flags, buffer and image details, mesh output bounds, hardware tests), merged on top of the stack #1319 and #1402. Every head is merged unchanged ontomain(70564ae, after the maintainer's 28 commits of Nov 24, 22:36 CET), and the result is built and tested together.What is inside
344704e025d6889e8b645391bccf47ebd83f5ecb6abe78d67fa5b03d71ad1a67b57e8e8d41b2472e1393320dfaChanges made while bundling
No PR was edited, and there is no hand resolution: a PR that does not merge as it is, is left out (below).
Left out, and why
Rebuilt on the new
main. The earlier version of this bundle had 20 PRs; 10 merge here in order, each checked with clippy as it went in.main(or with an earlier PR of this bundle) in crates/victory-shader/src/emit/lower.rs, crates/victory-shader/src/emit/valu_tests.rs.main(or with an earlier PR of this bundle) in crates/victory-shader/src/emit/lower.rs.main(or with an earlier PR of this bundle) in crates/victory-shader/src/emit/valu_tests.rs.main(or with an earlier PR of this bundle) in crates/victory-shader/src/emit/valu_tests.rs.main(or with an earlier PR of this bundle) in crates/victory-shader/src/emit/valu_tests.rs.main(or with an earlier PR of this bundle) in crates/victory-shader/src/emit/valu_tests.rs.main(or with an earlier PR of this bundle) in crates/victory-shader/src/emit/valu_tests.rs.main(or with an earlier PR of this bundle) in crates/victory-shader/src/emit/lower.rs.main(or with an earlier PR of this bundle) in crates/victory-shader/src/io.rs.v_permlane16_b32in whole-wave sections): it was in the first version of this bundle and is out of this one. sinan-cmyk's offline measurement on a retail dump (comment below) shows it loses 31 programs that validate on #1402 (all fail with "a whole-wave section step the simulation does not follow"); reverting only its merge brings them back, and #1247 had measured 29 compute programs lost for #98 alone onmain. It needs to handle those programs first.v_sad/v_msadfamily as #162, which is in.v_cndmask_b32masks as #1084 (in #1319).structure.rs) or failed to compile or lint together with the PRs already in.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: 476 passed, 7 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
344704e028' into bundle/shader-lowering 4fbb2fc1835d6889e8be' into bundle/shader-lowering ac9d92e9aa645391bcce' into bundle/shader-lowering e5cee285e1f47ebd83f3' into bundle/shader-lowering a52aa005d15ecb6abe76' into bundle/shader-lowering d3902db2d78d67fa5b00' into bundle/shader-lowering 24916b6b3b3d71ad1a65' into bundle/shader-lowering e3e3d55b957b57e8e8da' into bundle/shader-lowering 602aee8f4f41b2472e13' into bundle/shader-lowering e097d48bde393320dfa8' into bundle/shader-lowering 8fb97d2fbf@justlovett0 on GitHub · 2026-11-24 18:48 UTC · original
Investigated this bundle and cherry-picked from it. Stack: main
ffe310e+ #175/#994/#747/#302/#193/#704/#309/#953/#1067/#986/#1260/#1267/#1254/#1276/#189 (wave64 emulation), RTX 3080 10 GB / Win10 21H2 (19044.7846) / driver 621.24 (32.0.16.2124). Re-census of captured runtime containers; world stable ~9 min, 0 device removals.The whole-bundle merge was entangled with the #1319/#1402 base and a large mod.rs test-module divergence, so instead I cherry-picked the components matching our runtime refusals: #1084, #305, #306, #176, #587. Measured: compute emission 493/560 (+3); #305 cleared our 64-bit image atomics (2 → 0); no regressions; world stable.
Finding for the bundle's framing: these instruction-lowering fixes sit deeper than the frontier that dominates our runtime refusals — "a descriptor's address or format read as data" (50), "an address not from a root parameter" (25), "an address from a phi" (12). Until those descriptor/address classes clear, the instruction fixes give marginal runtime gain (the same shaders stop at the earlier descriptor gap). The bundle is still valuable as those clear.
AI use: Qwen Code; local measurements, user-confirmed visuals. No game data posted.
@sinan-cmyk on GitHub · 2026-11-24 18:54 UTC · original
Offline measurement on a retail dump: #98 costs 31 programs; the other 20 PRs change no count
Recommendation: Drop #98 from this bundle until it handles these programs. All the PRs measured here lose nothing else.
I ran
victory translate --validate --listonshaders.rpf(1.0.2.1), with dxil.dll 1.8.2502.11, and compared the results program by program (25,889 programs). Each head is built on its own, release profile.2310409(this bundle's base)eb37d6d) revertedWhat #98 loses. All 31 programs fail with "a whole-wave section step the simulation does not follow". They validate on #1402, and they validate again once only the #98 merge is reverted. Another 15 programs that already failed move to the same reason: 11 from "a structured buffer of unknown stride" and 4 from "image_gather4_l". This matches what zed6000 measured for #98 alone on
mainin #1247 (29 compute programs lost).The other 20 PRs change no count on this data. Without #98, the bundle and #1402 agree program by program. That is expected for single-instruction lowerings and hardware tests whose instructions the remaining failures do not reach first. Their effect on output correctness is not measured here.
These counts show only that programs translate and pass the validator. They do not show that the output is correct. I did not render anything. No shader names or data are included, per the asset policy. AI-assisted (Claude Code).
@MamaLeVrai on GitHub · 2026-11-24 19:10 UTC · original
Thanks for the measurement, and for the two runs that agree on #98 (this one and #1247's). #98 is out:
bundle/shader-loweringis nowb372f6f, the same 20 other PRs, with clippy (both runs) andcargo test --workspaceclean (381 passed, 6 ignored). The PR text says why #98 was dropped. #1504 and #1511 are stacked on it and have been rebuilt on the new head: #1504 is now9ed1660(its tree differs from the previous one only by the removal of #98's change inwave.rs, nothing else), #1511 is24c8a52. The measurements above for them were taken on the previous heads; I expect the counts above #1492 to hold and the 31 programs to come back, but I have not measured it, so a re-run on the new heads would confirm. AI-assisted (Claude Code); no game data.@KainanP on GitHub · 2026-11-24 19:35 UTC · original
A heads-up on one member of this bundle: #98 has a measured regression on the retail shaders.
zed6000 merged #98 onto
mainffe310eand ranvictory translate --validate --listovershaders.rpf(1.0.2.1): 29 compute programs that validate onmainstop translating, all withemit: a whole-wave section step the simulation does not follow, and #98 gains no program on that data (#98 comment, also in #1247). #98's headf468457apredates that report and nothing on the PR addresses it yet, so this bundle (and #1504/#1511 stacked on it) carries those 29 losses.Unless #98 gets a fix, dropping it from the bundle would keep the rest of the bundle's gains without that loss. I have no game copy, so I could not re-measure the bundle itself; what I did run, on an RTX 4060 Laptop and WARP:
cargo test --workspace --lockedpasses on #1492 (382 passed); on WARP one test fails,emit::valu_tests::v_cndmask_on_an_untracked_mask_tests_this_lanes_bitfrom #1084 (already in #1319): it pins a wave size and, withVICTORY_WARP=1, its "hardware" pass also gets WARP, which refuses fixedWaveSizepipelines — a test-harness issue, not a translation one.AI use: Claude Code (Claude Opus 5.5) collected the reports and ran the tests; reviewed by the user before posting.
@MamaLeVrai on GitHub · 2026-11-24 19:51 UTC · original
KainanP: thank you, #98 is already out of this bundle since the earlier measurements (sinan-cmyk's and zed6000's); the current head is
5bbc098. On the WARP failure you found inv_cndmask_on_an_untracked_mask_tests_this_lanes_bit(#1084, in #1319): I agree it is the harness. That test pins a wave size and runs its 'hardware' pass throughHost::new(false), whichVICTORY_WARP=1turns into WARP, and WARP refuses fixedWaveSizepipelines. With the default run (hardware, then WARP) it passes on the machines that reported here. A skip of that pass whenVICTORY_WARPis set would fix it; it belongs to #1084, below the whole stack, so I will fold it into the next rebuild of #1319 rather than rebuild everything for it now.justlovett0: thank you for the cherry-pick and the framing, which I agree with: these instruction fixes sit behind the descriptor and address walls ("a descriptor's address or format read as data", "an address not from a root parameter", "an address from a phi"), and the bundle pays off as those clear. Your stack (#302, #193, #704, #309 and the others) conflicts with
mainin places and is the one that reaches the frontier, so it is what I will try to put on top of this one next. If you have a branch with your merged stack, the commit would let me check my merges against yours. AI-assisted (Claude Code); no game data.@MrEjecutor on GitHub · 2026-11-24 20:00 UTC · original
RTX 5060 Ti (NVIDIA, 32-lane waves) on
b372f6f: 1,688 more programs validate, 531 more compute pipelines build on the GPU, no hang in 2 world runs; the scene stays blackTested
b372f6f(the head before5bbc098, which I have not run), alone for the offline counts and on top offfe310e+ #578 +MIN_DYNAMIC = 1 << 18+ #322 for the runs (those three keep this card from hanging in the world, see #747). Branch: https://github.com/MrEjecutor/VIctory/tree/nvidia-integration-shaders.Setup: RTX 5060 Ti 16 GB, driver 621.24; Intel Core Ultra 5 225F; 32 GB; Windows 11 26200; Rust 1.100.0; dxil.dll from SDK 10.0.28000.
Offline,
victory translate <game dir> --validate(release builds, validated / programs):mainffe310eb372f6fWith
--pipelineson this GPU (host pipelines created, nothing run), on the integration branch without and with this PR: vertex + pixel 12,243 → 13,116, compute 1,121 → 1,652, mesh 8,214 → 8,380. About 330 compute programs are still refused at pipeline creation on both (the wave64 ones #578 refuses on 32-lane hosts; #189 conflicts with this bundle inemit/lower.rs, so I could not add it).In the title (diag build, Series X, Enter every 10 s, 240 s, two runs,
VICTORY_D3D12_DRED=1):nvlddmkmevents);Not tested:
5bbc098; AMD; Series S; more than two runs; whether the extra pipelines draw correctly (the picture shows nothing either way).AI use: Claude Code (Claude Opus 5.5) built, ran and wrote this; checked by mrejecutor.
@MamaLeVrai on GitHub · 2026-11-24 20:09 UTC · original
Thank you, MrEjecutor, for the offline counts and the two runs on the RTX 5060 Ti. The current head is
5bbc098, the one you have not run: the same 20 PRs asb372f6f(#98 already out of both), rebuilt on #1402's new head, which only adds a skip of two of #306's tests below validator 1.8. So the counts above #1402 should be the same. On #189: it conflicted with this stack inemit/lower.rsand in three struct literals of tests, and I have merged it on the stack in #1589 (one conflict, no other change to #189); clippy andcargo test --workspacepass there. If you rerun with #1589 in place of #189, the roughly 330 compute programs your host refuses at pipeline creation are the ones to look at (Impre-visible's run on #1589 went from 111 refused to 0 on a GTX 1660). AI-assisted (Claude Code); no game data.@sinan-cmyk on GitHub · 2026-11-24 21:13 UTC · original
Re-measured after #98 was dropped: 0 programs lost. Head
5bbc098, against #1402 at119b763: 23,412 validated with both, 0 gained, 0 lost, and no failure reason changes. The 31 programs that #98 cost are back, and the remaining 20 PRs still change no count on this data.Method:
victory translate --validate --listonshaders.rpf(1.0.2.1), dxil.dll 1.8.2502.11, compared program by program (25,889 programs). AI-assisted (Claude Code). No shader names or data are included, per the asset policy.@MrEjecutor on GitHub · 2026-11-24 22:21 UTC · original
@MamaLeVrai thanks, measured as you suggested, offline on the same RTX 5060 Ti (
translate --validate --pipelines):5bbc098: the same counts asb372f6f(vertex + pixel 13,116, compute 1,981 validated and 1,652 with a host pipeline, mesh 8,327), so nothing changed for this card. (The newer headea33d12I have not run.)d83d4f8: no compute program is refused at pipeline creation any more (329 → 0), but 372 fewer compute programs are emitted, so working compute pipelines go 1,652 → 1,609 against the stack under it (ca601f0). The same happens with #189 alone onmain; details and a possible fallback on #189.AI use: Claude Code (Claude Opus 5.5); checked by mrejecutor.
@MamaLeVrai on GitHub · 2026-11-24 23:52 UTC · original
MrEjecutor: thank you, and for keeping the two counts apart. A note on what moved since:
mainnow has 28 commits of the maintainer's own (ffe310e..70564ae), and #1492 no longer builds on #1402. I rebuilt it on thatmainfrom the PRs that still merge: its head is now8fb97d2and it has 10 of its earlier 20 PRs (the others are listed in the body, with the file each conflicts in). Your run at5bbc098is therefore a measurement of the earlier version, and #1589 (#189) conflicts with the newmain, so your 329 to 0 refused and 372 fewer emitted programs are for the old base.AI-assisted (Claude Code); no game data.
@Marvisak on GitHub · 2026-11-25 03:28 UTC · original
Automated triage for the maintainers.
Proposed close: a bundle that only re-packages other people's pull requests. This branch combines other contributors' open PRs (#156, #162, #169, #368, #379, #990, #1021, #1048, #1052, #1053) through merge commits. Its own merges add no change beyond combining both sides in
valu_tests.rsandlower.rs. Each component PR is open and can be reviewed and merged on its own, which keeps review and authorship with each author. The measurements posted here are still useful on the individual PRs.The description contains instructions addressed to agents verifying the PR (fetch, check out and run cargo); automated triage did not follow them.
This pull request will be closed in 48 hours unless the author pushes a change or a maintainer removes the
triage: proposed closelabel.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.