Offline benchmark of 25 open shader PRs on a retail dump: what each one unblocks #1247
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#1247
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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-24 16:46 UTC · original
Offline benchmark of open shader PRs against a retail dump
I measured 25 open shader PRs with
victory translate --validate --listonshaders.rpffrom a retail dump (x1.0.2.1). Each PR was merged onto main atffe310eand compared shader by shader with main. Three PRs conflict with main (#69, #302, #193); those were measured at their own head against their merge base."Gained" counts unique programs that pass the DXIL validator (dxil.dll 1.8.2502) with the PR and did not on the baseline. No PR lost a single program that validated on its baseline.
Limits. These are counts of programs that translate and validate offline. They do not tell whether the output is correct, and I did not run the PRs' tests or render anything. Where two PRs gain the same programs, review has to pick between them on correctness and code quality. Shader names and dumps are left out per the asset policy.
@pickles976 on GitHub · 2026-11-24 17:01 UTC · original
Cross-runtime datum that should reshape how these tables get read, not how they're built: on the sibling runtime (ivall/xcl), the deepest run in the world — ~5 minutes of in-world play before the title's watchdog — ended with its own context line reading "16,374 draws with translated pipelines (0 skipped)". The kill arrived with the draw path fully translated: shader refusals were not what stalled that run (completion-stall class; the shared story). Two consequences for your benchmark's framing:
Also worth pinning: your "no PR lost a program" line is the most under-appreciated safety property in the weekend's data — it means the merge risk on all 25 is one-directional, which is exactly what a jammed review queue needs to hear.
@marquezinii on GitHub · 2026-11-24 17:35 UTC · original
Runtime data for the "biased image sample with 16-bit coordinates" rows. The counts above can't tell overlapping PRs apart, so I ran the same three a16 sampling tests on a GPU against each candidate. The tests read back which mip level the hardware picked.
Tests:
bc7fe21, details in #306. Wave32 compute programs runimage_sample_l,_dand_bwitha16on a 16x4 texture whose mipmholdsm. Per-lane address dwords come from a buffer, with junk in the high halves the hardware ignores. Hardware: RTX 5070 (driver 621.40, the only adapter). Each PR head got its own worktree and its own target directory. WARP agreed with the hardware in every run.sample_la16sample_da16sample_ba16ffe310elower93421537cc2445+ #106537f838d5ce85c5+ #106537f838daed9637+ #106537f838d090d61f+ #106537f838d_bin a compute shader fails DXIL validation on #73, #160 and #996 ("features incompatible with the shader stage (cs)"): validator 1.8 is needed for implicit derivatives in compute. That comes from my test running_bin compute; it says nothing about the bias. #306 has the same fix built in.sample_d"wrong levels". Lanelasks for levell % 5and gets[2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, ...]. main lays out a16 derivatives as packed halves. Outside the_g16opcodes they are 32-bit dwords, which is the point r4tedx raised on #306. #569 and #996 don't touch this, so it is main's behaviour, not a regression in either._breads it as an f16 from the low half of its own dword, so it is correct in all of them.1d7bf9bwasn't tested: it no longer merges with main, and the test harness has changed since its base.For review this means #306, #73 + #1065 and #160 + #1065 give the same sampled levels in these three cases. #569 and #996 fix
_b, buta16_dstays wrong with them. None of this is a comparison with console hardware: the tests check each translation against the GFX10 a16 address layout.@zed6000 on GitHub · 2026-11-24 17:44 UTC · original
Batch 1 of the remaining open shader PRs (27 more)
I'm now benchmarking all 261 open PRs that touch
crates/victory-shaderand will post the results here in batches. The method is the same as above: each PR is merged onto mainffe310e(or measured against its merge base where it conflicts), thenvictory translate --validate --listruns onshaders.rpf(1.0.2.1) and the result is compared with main program by program.Regression
Gains (programs that newly validate; no losses unless stated)
d2a4bae(conflicts with main); all 61 are within #160's 77No change in which programs translate or validate: #78, #91, #92, #94, #105, #109, #110, #112, #120, #126, #139, #142, #145, #148, #154, #156, #157, #162, #164, #165, #166. That is expected for correctness-only changes (for example, a different NaN result), and for instructions or forms this title does not use. It is not a judgement on whether a change is correct.
Counts are offline translation and validation only. They say nothing about whether the output is correct, and I did not run any PR's tests.
@MamaLeVrai on GitHub · 2026-11-24 17:46 UTC · original
Thanks for this table. The four PRs that gain the most (#1067, #305, #306, #176) are merged together, on top of the bundle #1319, in #1402, with four hand-resolved merges described there. Clippy (both CI runs) and
cargo test --workspacepass on it, but I have no dump, so the one thing that is not measured is the combined gain and whether anything is lost. If you can run the samevictory translate --validate --liston the branch (MamaLeVrai/VIctory,bundle/shader-high-yield) and compare with main, that would show whether the sum of the four holds and whether the conflict resolutions cost a program. AI-assisted (Claude Code); no game data.@zed6000 on GitHub · 2026-11-24 17:49 UTC · original
Batch 2 (23 more)
The method is the same as batch 1, against main
ffe310e. No regressions in this batch.Gains
Moves programs to a later failure, no net gain
d2a4bae; it conflicts with main): 268 programs no longer stop at "a lane mask holding lanes elsewhere read as data". They now get further and stop at the next gap: 242 at "a descriptor read only as data" (the reason #1067 and #180 address), 10 at "a structured buffer of unknown stride", and a few elsewhere. It may pay off combined with one of those. I have not measured it stacked.Not comparable
No change: #168, #169, #171, #175, #177, #185, #189, #190, #192, #200, #223, #226, #233, #235, #244, #254, #259, #265, #281.
@zed6000 on GitHub · 2026-11-24 18:19 UTC · original
Batch 3 (29 more)
No regressions in this batch. Most of the gainers conflict with main, so they were measured against their merge base,
d2a4bae.Gains
Other
No change: #284, #286, #288, #292, #294, #308, #317, #326, #328, #332, #342, #343, #362, #368, #369, #379, #391, #395, #411, #420.
@EduBertozzi on GitHub · 2026-11-24 18:32 UTC · original
A correctness pass on the PRs in your table, which you noted you hadn't run: their
victory-shadertest suites on a GTX 1060 6 GB (Pascal, 32-lane waves). The machine is Windows 10 22H2 19045 with driver 32.0.15.8266, and the Agility 1.620.2 runtime through #486 so the GPU tests get SM 6.6 on hardware. Each PR was merged ontomain(ffe310e) as in your table, thencargo test -p victory-shader --lib. No game data.mainNothing fails on Pascal. For the pairs that gain the same programs, the difference is coverage. #539 and #585 add no test anywhere in their diffs, while #305 and the packed-half PRs carry their own. That may help pick between #305 and #539.
At their own heads, #592 and #621 are 18 commits behind
mainand #585 is 131 behind. #592's head doesn't build its tests there, because of the oldlowers(&words)call thatmainhas since fixed. Merged ontomain, all three build and pass.AI-assisted (Claude Code).
@sinan-cmyk on GitHub · 2026-11-24 18:59 UTC · original
Bundle PRs measured with the same method
These are measured, so you can skip them in the batches. I used the same setup as above:
shaders.rpf1.0.2.1, dxil.dll 1.8.2502.11, 25,889 programs, compared program by program.mainmain/ #1319Note for single PRs measured against
main: with #1402, "a descriptor's address or format read as data" becomes the largest failure (809 programs). Ten open descriptor PRs conflict with #1402 inemit/lower.rs. #1376 has the breakdown by descriptor dword.For everyone who measures: #1541 adds
victory list-diff <before> <after>. It does the program-by-program comparison of two--listoutputs and prints only counts and reasons, so you need no private script.AI-assisted (Claude Code).
@sinan-cmyk on GitHub · 2026-11-24 19:20 UTC · original
The
victory-shadersuites of the measured bundles on Ada (RTX 4070 SUPER)Result: nothing fails on Ada. This continues @EduBertozzi's Pascal pass above, for the shader bundles in my table.
mainffe310e643aef62310409Each head was tested as is, with
cargo test --locked -p victory-shader --lib. Each one is based onmainffe310e. One test is ignored on every head: thebitcodebenchmark, which is opt-in.The GPU tests ran on hardware:
Host::newcreates the device on the default adapter. dxdiag lists the RTX first, because it drives the displays.VICTORY_WARPwas not set.These results add hardware coverage only. #1492 still loses 31 programs offline because of #98, as posted on #1492. That regression is a coverage gap that these tests do not catch.
No game data. AI-assisted (Claude Code).
@ThomasSAMP on GitHub · 2026-11-24 19:26 UTC · original
Follow-up to this table: 19 more open shader PRs, measured the same way, plus what they cost.
Setup.
victory translate --validate --listover the title's files (retail 1.0.2.1), program by program. The 15 PRs that merge cleanly were each merged ontoffe310eand compared withffe310e. The four that conflict (#699, #309, #586, #383) were measured at their own head against their merge based2a4bae. Same workflow as above, except for the validator: mine isdxil.dll1.7.2308 from Windows SDK 10.0.26100.Why "emitted" and not "validated". With this validator, 15,054 of the 21,898 programs that
ffe310eemits fail on PSV0 ("Pipeline State Validation does not match"). Only #1208 changes validation. For every other PR the validated count hides almost everything, so the table counts programs emitted: gained means emitted with the PR and not on the base, lost means the reverse.ffe310ed2a4baed2a4baeffe310effe310effe310effe310effe310effe310effe310effe310effe310effe310effe310effe310ed2a4baed2a4baeWhat it says for review.
v_readlane_b32 s2, v112, 4, thenv_cndmask_b32 v30, 1.0, 0, s2. That looks like the SGPR-spill case #309 and #1074 target, not the uniform-mask case #1270 handles. I haven't checked whether either of them clears these 284. #1270 still has its own synthetic value; it just doesn't reach these.Same limits as above: these are offline counts. They do not say whether the output is right; I ran no PR's own tests and rendered nothing. No program names or dumps here, per the asset policy.
AI-assisted (Claude Code, Claude Opus 5.5); no game data.
@EduBertozzi on GitHub · 2026-11-24 19:30 UTC · original
The same five bundles on Pascal (GTX 1060 6 GB, 32-lane waves, Windows 10 19045, Agility 1.620.2 via #486), each merged onto
mainffe310ewithcargo test -p victory-shader --lib. Nothing fails here either:643aef6119b763(Ada run:2310409)5bbc098(Ada run:c1e74a3)1d41891(Ada run:0f3e062)ca601f0(Ada run:289f241)Four of the heads have moved since @sinan-cmyk's run, and three of them now hold one test fewer. So between the two passes, every bundle passes on Pascal and Ada at the head each run used. As noted above, this covers hardware only, not the offline regressions.
AI-assisted (Claude Code).
@KainanP on GitHub · 2026-11-24 20:26 UTC · original
A combined branch for the next measurement, if someone with the dump has a slot:
KainanP/VIctory@integ/next(0ae381d, based onmainffe310e).It holds 108 open PRs, heads unchanged, in this order: the [BUNDLE] stack #1319 → #1402 → #1492 → #1504 → #1511 (MamaLeVrai), then #704, #180, #309, #160, the wave64 stack #223 → #233 → #320 → #439, the GPU bundles #1418, #1426, #1439, and #493, #431. The tables above measure each PR alone on
main; nobody has measured them together, which is what MamaLeVrai asked for on #1402.What I'd expect to show up, so it can be checked rather than assumed:
Every conflict and every change git did not flag is described in its merge commit;
INTEGRATION.mdon the branch lists the PRs, authors and heads.Tested here, no game data: Windows 11, RTX 4060 Laptop (32-lane waves) and WARP.
cargo test --workspace: 552 passed, 0 failed on the RTX; 560 with--all-features; clippy andxtask policyclean. On WARP the only failure is #1084'sv_cndmask_on_an_untracked_mask_tests_this_lanes_bit, a test-harness issue withVICTORY_WARP=1, not a translation one.AI use: Claude Code (Claude Opus 5.5) resolved the merges, ran the validation and wrote this; reviewed by the user before posting.
@MamaLeVrai on GitHub · 2026-11-24 20:41 UTC · original
KainanP: thank you for building the combined branch and for writing down what it should show. Two facts that change what to expect from it:
5bbc098since 19:23 UTC and does not contain #98 (I checked that its head is not an ancestor of the branch): sinan-cmyk's measurement on #1402 showed it loses 31 programs, so I took it out. A tree built from the earlier head of #1492 still has it.bundle/stride-stack, #193 comes with #704's branch). Its only conflict with the stack is the tests at the end ofemit/mod.rs(both sets kept), plus astride_tablefield that two test literals of the stack need; clippy (both runs) and 412 tests pass there. I tried #160 on the same stack and it conflicts in 13 hunks (emit/lower.rs10,gfx10/fields.rs2,emit/host.rs1), so your hand fixes for it are the part I did not find a mechanical way for.AI-assisted (Claude Code); no game data.
@KainanP on GitHub · 2026-11-24 21:11 UTC · original
@MamaLeVrai thanks for the correction: my snapshot of the bundle heads was older than
5bbc098, so both my note on #1492 andinteg/next(0ae381d) still carry #98. I'm rebuilding the branch on the current heads (#1511ca601f0) and will say here when it's up; until then, a measurement of0ae381dwould include #98's losses.On #160: the 13 hunks are resolved in the merge commit
f895638don that branch, with each hunk described in its message (the bundle's #306 a16 layout kept as the base, #160's offset/compare/gather/_clforms ported onto it, the duplicatecube_gradient,image_get_lodon cubes restored to the bundle's behaviour, and a TiledResources flag that validator 1.8 requires when a compute module samples with a level clamp). #160's owntexel_offsets_and_levels_sample_the_texels_they_namepasses for every form on an RTX 4060 on that commit. If it helps, the commit can be cherry-picked onto your stack as a starting point once #180 is there too (two of the fixes are the #180/#160 interaction from r4tedx's note).AI use: Claude Code (Claude Opus 5.5).
@zed6000 on GitHub · 2026-11-24 21:16 UTC · original
@KainanP I measured
integ/nextat0ae381dbefore your rebuild, with the same method as the table above:shaders.rpf1.0.2.1, dxil.dll 1.8.2502, compared program by program with mainffe310e.Result: 24,854 programs validate, against 21,724 on main: +3,130, with 0 lost.
ffe310e2310409integ/next0ae381d0ae381d, so something else in the branch makes up for it. So your rebuild without #98 shouldn't change this count for those programs. My guess is the wave64 stack, but I haven't checked.0ae381dlists 14,233 vertex/pixel programs, against 14,027 on main. The "0 lost" comparison doesn't depend on that, but the totals aren't over exactly the same set.integ/nextdoesn't have. #437 ("preserve raw scalar buffer loads", +856 alone on main) isn't in the branch. Those 34 fail there with "a descriptor read only as data" (18), "a lane mask read as data" (15) and "a descriptor's address or format read as data" (1). On a stack with #1065, #437's extra compute programs also pass the validator. Without #1065, 638 of them fail with "incompatible with the shader stage", so the two belong together.cargo test -p victory-shader --libon0ae381dgives 243 passed, 0 failed on an RX 7900 XTX (RDNA3, which runs 64-lane waves natively). Together with the Pascal and Ada passes above, that covers all three GPU families.After your rebuild on
ca601f0is up, I'll measure it the same way, with and without #437 + #1065 on top.Offline translation and validation counts only. No program names or data, per the asset policy.
RTX 4060) D3D12 compatibility, 2s TDR submissions, and 16 GB host OOM #1076@zed6000 on GitHub · 2026-11-24 21:20 UTC · original
Final batch: the remaining 158 open shader PRs, and a summary of all 261
This completes the benchmark of every open PR that touched
crates/victory-shaderwhen I started (261 in all). The method is unchanged: each PR merged onto mainffe310e(where it conflicts, measured at its head against its merge base), thenvictory translate --validate --listonshaders.rpf1.0.2.1 with dxil.dll 1.8.2502, compared with main program by program. Every PR built.Thanks to @EduBertozzi (Pascal) and @sinan-cmyk (Ada) for the test passes, to @sinan-cmyk, @ThomasSAMP and @MamaLeVrai for the bundle and extra-PR measurements, and to @KainanP for
integ/next. The combined-branch numbers are in my reply above.Regressions (validate on the baseline, fail with the PR)
Two PRs showed −1 / +1, #587 and #1052. That is run-to-run noise: #1052 only adds a test. Which copy of a duplicated container a run keeps depends on thread timing, so one listed program can swap between runs.
Gains in this batch ("unique" = gained by no other PR measured)
Moves programs to a later failure, no net gain: #655, #947, #978, #999, #1013, #1176, #1255.
No change on this data (expected for correctness-only fixes, tests, GPU-side and non-shader changes): #422, #426, #434, #438, #447, #452, #456, #465, #470, #477, #483, #486, #502, #511, #517, #521, #523, #524, #526, #534, #542, #551, #568, #584, #596, #605, #606, #608, #617, #627, #628, #646, #650, #659, #660, #661, #664, #667, #668, #672, #673, #682, #684, #697, #707, #709, #710, #925, #926, #946, #955, #961, #969, #984, #990, #994, #1002, #1004, #1005, #1015, #1017, #1021, #1033, #1042, #1043, #1045, #1046, #1048, #1050, #1053, #1055, #1057, #1066, #1077, #1081, #1088, #1090, #1095, #1106, #1108, #1112, #1114, #1133, #1136, #1138, #1142, #1144, #1145, #1148, #1149, #1164, #1170, #1175, #1180, #1182, #1183, #1185, #1190, #1195, #1197, #1202, #1209, #1211, #1223, #1229, #1244, #1253, #1256.
Across all 261 PRs
integ/next0ae381dreaches 24,854 (+3,130, 0 lost). A 6-PR stack of #437, #305, #621, #704, #298 and #1065 reaches 24,053 (+2,329, 0 lost), of which 34 programs are missing frominteg/next, all from #437. #437, #1065, #704 and #298 each conflict with #1402 (inemit/lower.rs,emit/mod.rs,emit/container.rsandemit/shader.rs).cargo test -p victory-shader --libpasses on an RX 7900 XTX (RDNA3) for all 38 PRs that change programs here, for the stacks, and forinteg/next(243 passed). The one exception is #101: its test callsresource::trackwith 3 arguments, but main's has 4, so it needs a rebase. Its twin #116 passes.Two scope notes from reading the diffs (not measurement results):
f23c493adds aVICTORY_PATCHhook that patches the loaded image. That is unrelated to its title. The hook ignores itsmodulefield and only bounds-checks the start offset, so a long patch panics.cargo fmtand a WinRT speech module.Offline translation and validation counts only; they don't show the output is correct. No program names or data, per the asset policy.
@sinan-cmyk on GitHub · 2026-11-24 21:29 UTC · original · edited 2026-11-25 02:56 UTC
Index of my dump measurements (one table instead of the separate comments)
All counts:
victory translate --validate --listonshaders.rpf(1.0.2.1), dxil.dll 1.8.2502.11, 25,889 programs, compared program by program.mainisffe310e(21,724 validated). "Ada" meanscargo test --locked -p victory-shader --libon an RTX 4070 SUPER. Each PR links to its full comment.PRs that gain programs on
mainEvery gain in this table except #1399's and 7 of #1433's is already among #1402's or #1319's gains.
Duplicates (same program sets)
Review can pick within each set on correctness and test coverage alone.
No count change on
main(45 PRs, 0 gained, 0 lost)#1336, #1393, #1407, #1412, #1423, #1270, #1397, #1550, #1545, #1540, #1536, #1534, #1524, #1519, #1516, #1554, #1501, #1493, #1491, #1489, #1488, #1486, #1485, #1483, #1480, #1478, #1477, #1476, #1474, #1473, #1471, #1469, #1462, #1460, #1443, #1441, #1437, #1420, #1417, #1416, #1408, #1404, #1398, #1395, #1391
Programs that still fail but move on to a later reason: #1423 219 move on to "descriptor read only as data"; #1491 61 move on to "scalar memory read as data"; #1550 15 move on to "scalar memory read as data"; #1407 5 move on; #1420 5 move on; #1501 1 moves on.
Test failures on Ada
All other PRs above pass on Ada.
v_mad_f32_flushes_subnormals_around_omodimmediate_sampler_used_with_and_without_comparison_validates_and_runsimage_gather4_c_lz_and_offset_match_rdna2Stacked results
main; needs #1067mainare goneBundles
mainmainRuntime boot checks to the first menus, no input: #1456, #1363, #1368, #1386, #1389, #1358, #1439, #1418, #1426, #1542, #1521. All boot like
main, with nocrashes.logentries. #1426 and #1542 drop two refused 2560×1440 targets instead of failing them.Update 2026-11-25
mainmoved to940d32f(319 commits sinceffe310e). Counts above are againstffe310eunless stated. On the newmain: 23,918 validated.main, already reported (#1973, #1987): 867 vertex programs fail with "Flags must match usage" sincecd94d35. My independent bisect gives the same commit (868 atcd94d35, 0 at its parent). #1977 and #1989 each restore exactly those 867, the same set, 0 lost.940d32f: −138, all refused on purpose as "a lane mask holding lanes elsewhere read as data" (its #1498 soundness check). 691 programs thatmainemits invalid are refused cleanly instead.ffe310e: +310, 0 lost, of which 15 are new. Two of its own tests fail off by one, on hardware, on WARP and at its head alone. (Now closed.)ffe310e, Ada tests passing: #1387, #1371, #1370, #1366, #1359, #1355, #1342, #1341, #1340, #1339, #1338, #1337, #1327, #1328, #1663, #1662.mainproves dead edges instead of zero-filling them. Against940d32f,mainvalidates 1,782 of the 2,183 programs #1597 added overffe310e. Of the other 401, 365 are emitted but rejected by the validator onmain, and 36 are refused. detailslist-diff) is rebased onto940d32fand mergeable.My own PRs
victory list-diff <before> <after>, the program-by-program comparison used for all of the above.AI-assisted (Claude Code). No shader names or data, per the asset policy.
@zed6000 on GitHub · 2026-11-24 22:02 UTC · original
main moved to
70564ae: most measured gains have landedMain moved from
ffe310e(the base of every table above) to70564ae. Same method:victory translate --validate --listonshaders.rpf1.0.2.1, dxil.dll 1.8.2502, compared program by program.ffe310e70564ae70564ae+ #1065 (rebased)cargo test -p victory-shader --libon70564aegives 209 passed and 0 failed on an RX 7900 XTX.What this means for the open PRs. For almost every PR that gained programs in the tables above, 85–100% of those programs now validate on
70564aeas well. That includes #305 / #539 / #705 / #1127, #953, #1067, #437, #1198, #453, #306, #176 / #621 / #592, #160, #193 / #704, #298, #309 and #383. Their counts againstffe310eshould now be read as already covered by main. What a PR still adds has to be measured on70564ae.What still fails on
70564ae70564aein two hunks. The resolution and the measurement are on #1065ffe310e). It conflicts with70564aein 9 files, so I couldn't measure it thereffe310e; they need a rebase#1409 and #1237, which target the same validator error as #1065, also conflict with
70564ae.Counts are offline only. No program names or data, per the asset policy.
@zed6000 on GitHub · 2026-11-25 02:12 UTC · original
Open shader PRs measured on the new main: none still gains a program
After the merges since
ffe310e, I re-checked all 444 open PRs that touchcrates/victory-shader:70564aeand need a rebase.70564aewith the same method (shaders.rpf1.0.2.1, dxil.dll 1.8.2502, program by program). The program counts are unchanged from70564aethroughccfb029, so these results still hold there.70564aeSo, of the open PRs that still apply, none adds a translated program today. The useful remaining work is the rebases of PRs that fix what still fails:
e198449: +735 / 0 lost onccfb029)ffe310e, needs a rebase)ffe310e; each needs a rebaseNew regression on main: commit
cd94d35makes 867 vertex programs fail validation with "Flags must match usage" (main940d32f: 23,918 validated, against 24,785 before it). The details and a tested fix (the "UAVs at every stage" flag; +867, 0 lost, tests and clippy clean) are in #1973.Offline counts only; no program names or data.
@zed6000 on GitHub · 2026-11-25 04:25 UTC · original
PRs opened tonight, and what merging the ready fixes would give
Newly opened shader PRs. 90 were opened since my last listing. 59 merge cleanly onto main
940d32f, and I measured all of them there with the same method (shaders.rpf1.0.2.1, dxil.dll 1.8.2502, program by program). 31 conflict.940d32f#1737's new test file doesn't compile on
940d32f(it misses main's newview_marksfield); details are on #1737.What the ready fixes add together. These four merge cleanly onto
940d32fand with each other:940d32f940d32f+ #1989 + #1065 + #1971 + #1883On that combined tree,
cargo test -p victory-shader --libpasses (252/0) on an RX 7900 XTX.What would still fail after those four:
ffe310e; needs a rebase)v_cvt_f32_f64(5), barycentrics (3), othersOffline counts only; no program names or data.
@reboot0000-cmd on GitHub · 2026-11-25 05:58 UTC · original
Hardware-side numbers to go alongside these offline tables, since validation is close to saturating and pipeline creation is the gap they cannot see. Measured on a Windows 10 IoT Enterprise LTSC 2021 host, build 19044.7846 (frozen servicing — deliberately not a patched 19045 box), RTX 4090 24 GB, DXC 1.8.2502
dxil.dllviaVICTORY_DXIL, main940d32f6+ PR #463's Agility opt-in (1.614.1) so the host reaches SM 6.6,translate --validate --pipelinesovershaders.rpf(26,084 programs), ~43 min, no device removal.Two things the validation tables cannot show:
Flags must match usageprograms and all 71 meshoutput size > 32768programs still created a pipeline on hardware — the driver accepted what the validator rejected. For the mesh 32 KiB class specifically (#459/#1563) that means the practical blocker is the driver limit, not this validator message, and any count of "mesh shaders fixed" should be stated as validated-vs-runnable, because the two differ here.The parameter is incorrect.), and 382 of those 394 pass validation — they are driver-only rejections, invisible to every table above. They are not a concentrated family: 394 refusals span 382 distinct program names (at most two per name), so no single lowering fix is likely to clear them, and thread-group/wave requirements are the obvious next thing to split them by.So the remaining offline-to-hardware gap is: 394 compute pipelines, 867 vertex validator misses (harmless on this driver), 735 compute
dx.valvermisses (#1065's class), 71 mesh output-size misses. Offline counts say "24,785 programs validate"; the driver runs 25,197 of the 25,591 that emit. Both numbers are useful, they are not the same number.Host detail that made this measurable at all: on this LTSC build the in-box D3D12 reports SM 6.5, so
--pipelinesaborts before doing anything; #463's app-local opt-in is what turns it on (#1945 covers a related trap — the SDK's owndxil.dllhere is a 1.7 engine that prints 1.8.2502, so any of these tables measured with the default validator is counting a different thing). Counts and offsets only, no title data.@KainanP on GitHub · 2026-11-25 09:48 UTC · original
@zed6000 a GPU pass for the four ready fixes you listed, on NVIDIA (your runs are on AMD): #1989
0f11320, #1065e198449, #19711ae8ad3, #1883a31d8cc, merged in that order onto main940d32f— all four merge cleanly together.RTX 4060 Laptop (Ada, 32-lane waves, driver 32.0.16.1047), Windows 11 26200, plus WARP;
cargo test --workspace --locked --no-fail-fast, compared test by test with940d32f:940d32f--all-features(RTX)-D warnings,xtask policyThe four add 8 tests, all passing; no test changes outcome. The failures are main's own and already reported: the two
descriptor::host/memorydynamic-slot tests andstride_tests::a_heap_buffer_read_*/synthetic_tests::gathers_at_a_level_match_the_hardwareare #1835 (HEAP_VIEWS= 2^21 above NVIDIA's 1,000,000-descriptor heap; several open PRs fix it), and on WARPsynthetic_tests::permutes_read_the_lane_named_and_zero_from_lanes_left_out("no pipeline for a wave of 32").AI use: Claude Code (Claude Opus 5.5) ran the merges and tests and wrote this.
@Marvisak on GitHub · 2026-11-25 10:12 UTC · original · edited 2026-11-26 06:47 UTC
Automated triage for the maintainers.
Thanks for the offline benchmark and the follow-up batches; they are useful for review. Where it stands, per the later comments here:
main:Shader::finishincrates/victory-shader/src/emit/shader.rssets the "UAVs at every stage" flag for vertex, geometry and mesh programs that declare UAVs.main63bcca4validates 24,850 of 26,084 programs. Of the shader PRs measured since (#2936–#3038), only #2999 (+748, the same programs as #1065) and #3016 (+4, the last "lane mask read as data" programs) gain; the rest change no program's outcome. #2405 at head7ffdba5now loses 878 programs (down from 1,829); details on #2405. #3033 was not measured.main's count now, all open: #1065 (validator 1.8 for compute derivatives, +748) or #2999 instead (same programs; reported to pick the console's mip in 2D compute groups on RDNA3 where #1065 does not); #1924 (rebase of #1399, +390); and, stacked with those, #385, #2978, #1737, #3016 and #2363. That stack measured 26,012 of 26,084 (+1,162, 0 lost), with the shader and GPU tests passing on an RX 7900 XTX. Left after that: 71 oversized mesh programs (validator only; the driver creates them) and 1barycentrics read directly, which #1738 fixes but which needs porting onto #385 and #1924.mainis tracked in #2930, now with PRs #3047 and #3048.On the compute pipelines refused on 32-lane hosts ("wants wave lane count of 64"):
main's behaviour inLower::new(crates/victory-shader/src/emit/lower.rs). Tracked in #2220 and, for the world hang it causes, #71.Please keep to counts here; the game's own program names must not be posted in this tracker.
Counts here are offline only and say nothing about output correctness. This stays open as tracked review data.
Generated by Claude Code
@reboot0000-cmd on GitHub · 2026-11-25 15:24 UTC · original
Closing the loop on the 394 compute refusals in my table above: they are all one cause, measured at archive scale. The driver's reason is identical for every one (
CreateComputeShader: Shader wants wave lane count of 64 but maximum wave lane count for device is 32), a static read of all 2,621 emitted compute programs agrees exactly (394 demand 64 lanes; the 2,227 that create either declare nothing — 1,315 — or demand 32 — 912; none of the created ones demand 64), and changing only that declaration metadata flips the whole set: 2,621 of 2,621 create, nothing new breaks.Two things that change what "fixed" means: the driver polices minimum lane count, not whether a wave size is declared — so a skip-rule written as "declares 64-lane waves" would wrongly skip the 912 programs that declare 32 and run fine. And 14 of the 394 demand 64 lanes for thread groups of ≤32 threads (
0xbe1c0abis 1x1x1), which look like over-declarations rather than needs — the lowering hard-codes the console lane width in its cross-lane math, so they need review, not a metadata flip. Details, method and the causal test on #2220.Caveat for the leaderboard: this is Windows 10 LTSC 2021 19044.7846 + RTX 4090. Nothing here tests whether a 64-lane-capable card accepts all 394.
@reboot0000-cmd on GitHub · 2026-11-25 17:05 UTC · original
Re-ran both censuses after the merge burst, so the hardware table above has a before/after rather than a single snapshot. Same host (Windows 10 IoT Enterprise LTSC 2021 19044.7846, RTX 4090, Agility 1.614.1 via #463), same DXC 1.8.2502 validator, same archive (26,084 programs);
940d32f→67e8ae1(82 commits).940d32f67e8ae1The
Flags must match usageclass I reported at 867 is gone — that was thecd94d35view-mark regression, fixed bya1a2077, and vertex and pixel validation is now complete at 100%. Mesh is unchanged: still the 71 programs over the 32 KiB output budget, still all 8,765 creating on hardware.Program-by-program the refusal sets are worth stating exactly, because a total is misleading here: 0 previously-refused programs were cleared, 394 are still refused, and 2 newly appear, both newly-emitted programs. So the merge burst moved compute emission by +37 and creation by +35 while the wave64 population on this host grew slightly rather than shrinking — expected, since #189 / #439 / #1890 / #1922 / #2176 are all still open. The 394 remain the full set of creation-stage failures on this machine, and 383 of the 396 refuse despite passing validation.
Net: 72 more programs run on hardware than before, the validation story is now complete for vertex and pixel, and the one remaining hardware gap is unchanged in character. No new failure classes appeared.
@reboot0000-cmd on GitHub · 2026-11-25 17:29 UTC · original
One-line correction to my re-measurement above, now that I have the two programs identified: the 394 → 396 change is not a regression.
alphaResolve:CS_AlphTransmissionPrefilterMip_610a2fad(0xbdf7769) andindirect_light_probes:CS_IrradianceCache_Shade_823aad37(0xc32ac63) previously failed to translate at all — one refused at resource tracking, one in emission — so they never reached a pipeline. The merge burst carried both through to emission and validation, and the driver then refused them with the same message the other 394 carry.So
a1a2077restored 867 vertex programs and additionally promoted two compute programs from "not translated" to "translated, validated, refused on a 32-lane host". They now belong to the wave64 population in #2220; we have not yet confirmed their declared lane count directly.@zed6000 on GitHub · 2026-11-25 18:32 UTC · original
@KainanP thanks, that's the NVIDIA half of the picture. An update since then, on main
13f91ca, using the same offline method:a1a2077, and the 867 vertex programs validate again. The programs #1971 and #1883 gained on940d32f(35 and 21) now validate on main as well. Main stands at 24,846 of 25,889, +928 over940d32fwith 0 lost.d22149a) on13f91ca: +748, 0 lost, giving 25,594. That count is 748 now rather than 735, because 13 more compute programs reach the same validator error on main.cargo test -p victory-shader --libpasses (273/0) on the RX 7900 XTX.So #1065 is the one ready fix left from that list. After it, the remaining failures are the 195 SGPR-address geometry programs (#1399 / #1924, both need a rebase), the 71 oversized mesh programs (validator only) and about 29 small cases. I'm measuring the 187 shader PRs opened since yesterday against
13f91caand will post the results here. Offline counts only; no program names or data.@zed6000 on GitHub · 2026-11-25 23:51 UTC · original
The shader PRs opened on 2026-11-25, measured on main
13f91caThe method is the same as above: each PR merged onto
13f91ca,victory translate --validate --listovershaders.rpf1.0.2.1 with dxil.dll 1.8.2502, compared program by program. 187 shader PRs were opened since my last listing. 167 merge cleanly onto13f91ca; I security-reviewed them before building, and 166 were measured (20 conflict). None failed to build.Two checks along the way:
13f91cabuild give an identical outcome for every program (24,846 each). The tables in this issue are reproducible run to run.552208c(after tonight's merges) validates exactly the same 24,846 programs as13f91ca(0 gained, 0 lost), andcargo test -p victory-shader --libpasses (289/0) on an RX 7900 XTX.What would move main's count now:
cbd152c: +748, 0 lost on13f91ca)13f91cawith tests and clippy clean; the resolution is on #1924)Measured together (the #1924 port plus #1065, merged onto
13f91ca): +1,138, 0 lost, so 25,984 programs validate, against 24,846 on main (#1065 also lets more programs reach the listing: 26,084 instead of 25,889).cargo test -p victory-shader --libpasses (278/0).Offline counts only; no program names or data.
@zed6000 on GitHub · 2026-11-26 01:55 UTC · original
The 69 shader PRs opened since the last listing, measured on main
63bcca4Same method as above: each PR merged onto
63bcca4,victory translate --validate --listovershaders.rpf1.0.2.1 with dxil.dll 1.8.2502, compared program by program. Everything was security-reviewed before building. 66 of the 69 were measured.63bcca4: 24,850 programs validate, of the 25,889 listed as before (+4 on13f91ca, the lane-mask programs of #2468; 0 lost).cargo test -p victory-shader --libpasses (302/0).63bcca4: none changes a program's outcome (0 gained, 0 lost for each). They also leave the IR instruction count exactly as onmain(40,601,701). None of them regresses the title's shaders, and none moves the count; their effects are in what the emitted code does at run time, which this measurement can't see.63bcca4(#2822, #2813, #2733, #2723). At their own heads against their base13f91ca, they also give 0 gained / 0 lost.What would move the count is unchanged: #1065 (748) and #1924 / #1399 (390). Measured together on
13f91ca, they give +1,138 / 0 lost (above).Separately, the pipeline pre-build skipped 1,029 of the pack's 28,164 pipelines on
main. #2930 has the cause and a measured fix that brings it to 41.Offline counts only; no program names or data.
@zed6000 on GitHub · 2026-11-26 02:47 UTC · original
Five open PRs take main to 26,007 of 26,084 (99.7%), measured together
Stacked on main
63bcca4(24,850 validate), measured the same way as above, program by program:cbd152c)13f91ca)63bcca4)a3defec)63bcca4)ab08acb, carries #2348)v_cvt_f32_f64inside f64 wave sums63bcca4)abb811f)v_permlanex16_b3213f91ca)All five together: +1,157, 0 lost, 26,007 of 26,084 validate.
cargo test -p victory-shader --libpasses 337/0 on the stack (RX 7900 XTX, built-in WARP). A second run with #2978's earlier head gave the same outcome for every program.What's left on the stack (77):
63bcca4now).Merge notes, all keep-both:
mod sum64;/mod phi;inemit/lower.rs, and the tests at the end ofvalu_tests.rs.mod teststail ofemit/lower.rs(see #1737).emit/lower.rsplusgs: Nonein test initializers. Whichever of #385 / #1737 / #2978 lands first adds more of those (lower/phi.rs,permlane_tests.rs, one invalu_tests.rs). The main list is on #1924.Offline counts only; no program names or data.
@zed6000 on GitHub · 2026-11-26 03:34 UTC · original
23 more shader PRs (#2936 to #2999), on main
63bcca4Same method. All 23 merge cleanly and were security-reviewed before building.
v_cvt_f32_f64programs with #385 + #1065.So the stack above stays the way to 26,007, with #2999 as an alternative to #1065 there. Offline counts only; no program names or data.
@zed6000 on GitHub · 2026-11-26 04:09 UTC · original
8 more (#3000 to #3023), and the stack is now at 26,011
On
63bcca4, same method, all security-reviewed:a lane mask read as dataprograms (the ones #2289 had).Stack update: #1924 (port) + #2978 + #385 + #2999 (or #1065, which gains the same 748, but #2999 picks the console's mip in 2D compute groups; see #1065) + #1737 + #3016 on
63bcca4gives 26,011 of 26,084 validated (+1,161, 0 lost), with 334/0 tests on an RX 7900 XTX. What's left: the 71 mesh programs over the validator's output size (the AMD driver creates them), 1barycentrics read directlyand 1a descriptor read only as data(#2363). Offline counts only; no program names or data.@zed6000 on GitHub · 2026-11-26 05:10 UTC · original
Where things stand (2026-11-26, morning), on main
63bcca4The latest measurements, for anyone picking this up (method as above):
63bcca4barycentrics read directly. #1738 fixes that one (+1, 0 lost alone on63bcca4). It needs a real port onto #385 (fill_phismoved tolower/phi.rs) and #1924 (theinterpsfields), so it isn't measured on the stack.7b5a3fcgives the same +748.3980ea0. Head7ffdba5loses only the 878 compute programs from its VCC refusals, down from 1,829.7872701keeps its +4.Offline counts only; no program names or data.
@zed6000 on GitHub · 2026-11-26 11:52 UTC · original
29 more shader PRs (#3043 to #3166), on main
63bcca4Same method, all security-reviewed before building: every one is 0 gained, 0 lost. They are #3043, #3051, #3056, #3082, #3083, #3086, #3088, #3090, #3093, #3115, #3116, #3117, #3124, #3127, #3131, #3135, #3142, #3143, #3147, #3148, #3149, #3151, #3152, #3153, #3155, #3158, #3159, #3160 and #3166. #3097 couldn't be fetched (its head ref is gone).
Main hasn't moved since
63bcca4, so the stack figures above (26,011, or 26,012 with #2363) still stand. The pre-build fixes from #2930 are open as #3047 and #3048. Offline counts only; no program names or data.@zed6000 on GitHub · 2026-11-26 13:11 UTC · original
Update: the stack reaches 26,013 of 26,084. With #1738 ported onto it (the resolution is on #1738), every program of the title validates except the 71 mesh programs over the validator's output size: +1,163 on
main, 0 lost. Shader tests pass 357/0 and GPU tests 231/0 on the stack, and clippy is clean. Offline counts only; no program names or data.