Recompiler: compact dispatch can switch in two levels (XCL_COMPACT_NEST) #1682
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1692"
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 ivall/xcl. Originally posted by Pipodi on 2026-11-24T19:20:46Z.
Stacked on #1448 (
51f9a05a, itself on #1316's commits rebased asb662d124..7c52d4f6, rebased onto maind52ff48c); only the top two commits (421109bb,5d9d3209) belong here. The stack now carries rebased and edited versions of #1316's commits:b662d124(prepare() split),efc54bda(compact form),6a3c753a(A/B tests) and7c52d4f6(compact backend). The edits: the conflicts againstmain'sdispatch_remap/no_remapare resolved,efc54bdaadds the testthe_compact_form_keeps_the_dispatch_remap, andtranslate_asopens oneShaderTranslationspan for the compact attempt and the normal form. #1316 itself still sits on an oldermain.This revision: rebased onto main
d52ff48c. In #1316's rebased backend commit (7c52d4f6) the conflicts withmainare resolved:build.rs's translator sources (main'smod.rsin place ofdxc.rs, withcompact.rs), and inpso.rsthe compact refusal tag now wrapsmain'scompile_cached_in/compile_cachedchoice.main'ssemantic_pipeline_setting(shaders.rs) now listsXCL_COMPACT_CS(in7c52d4f6) andXCL_COMPACT_NEST(in #1692's421109bb), each with a test (warm_settings_keep_compact_cs_switch,warm_settings_keep_compact_nest_switch), so both change the warm-settings key. An earlier rebase (onto0fe06eb0) threadedmain'srt32_maskthrough #1316's rebased commits. In an earlier rebase, this PR's own commits had no conflicts. #1448's rebase (with #1316's commits) resolved conflicts ingpu/recomp/pso.rs(main'sXCL_DEBUG_CS_SUBand rodata changes kept together with the compact routing;XCL_DEBUG_CS_SUBforcesCompactCs::Never) and inshaders.rs, and fixed two places that no longer built after it: thesuper::translatepath and theconsole_translationcall intargets.rs.The compact form's dispatch loop is one
switchover every case. All cases fall through to one merge block, which has a predecessor per case and a phi operand per predecessor for each of the ~147 loop-carried registers. OnActivateRays(2,516 cases), that is 436,656 merge operands. The NVIDIA driver's time and memory follow them: about 165 s and 8.2 GB for one cold pipeline build (#1269 result).XCL_COMPACT_NEST=<P>(a power of two up to 65536; off when unset or 0) switches oncase >> log2(P)first. Each group of P cases has its own innerswitchand ends inxcl_nb = min(xcl_nb, <blocks>u). Theminstops DXC from folding the groups' exits back into one merge. Without it, the 147 × 2,910 merge comes back. This PR adds the switch, off by default. Turning it on above a case count is a separate PR, after measurements on more programs and GPUs. Part of #1269.What is in it
crates/xcl/src/gpu/recomp/compact.rs:compact_withtakes the group size, andcompact()reads it fromXCL_COMPACT_NESTonce.crates/xcl/src/gpu/recomp/pso.rs: the translated-shader disk cache names a nested compact entry_c_n<P>instead of_c, so a warm flat entry is never loaded for a nested run, or the other way round. Names with the nest off are unchanged.crates/xcl/src/shaders.rs:XCL_COMPACT_NESTis one of the settings in the warm-settings key (semantic_pipeline_setting); testwarm_settings_keep_compact_nest_switch, which usesXCL_COMPACT_NEST=32(a value this PR accepts;autocomes with #2018).compact::tests::nested_dispatch_groups_the_cases: P = 2, 4, 8, 16, with ceil(cases/P) inner switches, every case once, oneminper group, and the flat text with P = 0.tests_compact::gpu_compact_nested_dispatch: the GPU A/B againsttranslatewith P = 2 and 4, on the synthetic programs (now with #1448'smany_targets, whose case has the[branch] iftree of selects), in every form the adapter runs.compact_sample_big_cs_nested_dxilon the existingXCL_SAMPLE_BIG_CShook: DXC only, nested DXIL under 80 % of the flat compact form's.5d9d3209(tests only):nested_matches_flatchecks the nested HLSL against the flat one. The text around the dispatch is the same, the case number is the flat switch's expression, case k sits in group k >> log2(P) with the flat case's address and text, and every group ends inmin(xcl_nb, n)with the loop's own n.nested_dispatch_runs_the_flat_casesruns it on the synthetic programs (P = 1 to 32, both table packings) and checks that it catches a case moved to another group, a changed case text and a changed bound.compact_sample_big_cs_nested_runs_the_flat_casesruns it onXCL_SAMPLE_BIG_CS(CPU only, P = 16, 32, 64).Dispatch::of) reads the nested form too. WithXCL_COMPACT_NESTset for the whole run, the compact tests now check the nested form instead of stopping at the flat switch line (@einfachama found 15 of them doing that).Tested
RTX 4090, driver 621.40, i9-13900K, Windows 11 Pro 10.0.26300, stable MSVC Rust (
rustc 1.100.0 (0ef1bc386 2026-11-09)), debug build for the suite, release builds for the smoke runs.Rebased onto main
d52ff48c. The whole suite,cargo test --workspace --no-fail-fast -- --test-threads=4(debug, RTX 4090), on this head (5d9d3209): 2913 passed, 3 failed, 51 ignored, 26 SKIPPED. The failures:gpu_direct_image_get_resinfo_d16, which fails on maind52ff48ctoo (broken by43c56dce; fixed by test-only #3513), andtwo_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs(two test targets), which is intermittent: it passes on #2025 (30aaa283, which contains this PR).At
9c09c8f(not rerun):cargo test -p xcl --lib compact -- --test-threads=4withXCL_COMPACT_NESTunset,=32and=2: 33 passed, 0 failed, 0 ignored each (SKIPPEDgpu_compact_native_wave64_form: no wave64).SKIPPED lines of the workspace run at the stack top, deduplicated (29):
Fails without the change: with
compact_withmade to ignore the group size,nested_dispatch_groups_the_casesandgpu_compact_nested_dispatchfail. The GPU test fails on its HLSL-shape assert; its results would be equal either way.Release,
xcl shaders <record> --precompile --only cs, a newXCL_DXIL_CACHEper run, on records of three compute programs from the retail title:XCL_COMPACT_NEST=32b370923)b370923. These DXIL numbers were measured at00f10ee, the same patch before the rebase onto #1448's select bound. The bound changes the text ofActivateRaysin both forms (#1448: 2.85 → 2.89 MB flat), so the table is not this head's; it was not rerun.compact_sample_big_cs_nested_dxilon two of these programs (the test's options differ from the precompiler's) gave 874,064 → 566,372 B (65 %) and 811,152 → 516,816 B (64 %). Both pass.ActivateRaysat P = 32 built cold in 37.7–38.2 s with a 1.5 GB peak, against 163–169 s and 8.2 GB flat, on this GPU (#1269 result). That was not rerun on this commit.Regression run
The same retail title for 60 s on both sides,
scripts/smoke.ps1on clean trees, release builds,XCL_PREPARE=0andXCL_PRESS_AT=16:Aon both sides, RTX 4090 (driver 621.40).main (
6bfb5c51):This PR's head (
5d9d3209, rebased onto maind52ff48c):The PR's run got 99.9 % of
main's frames and 121.9 % of its peak commit, higher thanmain's but within 125 %.Not tested
ActivateRaysin the heap form in 31.8 s against 312 s flat. On Linux / RADV (RX 9070 XT), @St5sz2Jk found the nested form slower in the driver: 244 s and a 45.5 GB peak, against 70 s for the flat form with @0naku's switch-tree patch. On an RTX 4060 8 GB, @einfachama builtActivateRaysnested in a title run in 24.9 s from cold. On AMD and RTX 5090, @nnonno91 ran the GPU tests, including the packed table.5d9d3209's check compares their nested and flat HLSL whenXCL_SAMPLE_BIG_CSis set; I did not run it with the variable set on this head.9c26337, stacked on #1448's old head42b2f11): it builds the dispatch from the decoded instructions, not from the HLSL (@t4l03's correction). Both PRs changecompact.rsandpso.rsand conflict there (git merge-treeof9c26337and7123faa), so whichever merges second has to reconcile the dispatch emission and the cache names. The two have not been run together.AI use
51f9a05a), ran the suite on the previous head, read the diff and wrote this description. A second Opus 5.5 agent reviewed the diff, and another reviewed the second commit (now5d9d3209).main, resolved the conflicts againstdispatch_remap/no_remap, added the testthe_compact_form_keeps_the_dispatch_remapand the span intranslate_as, and ran the suite and the smoke pair on that head.main, the conflict resolution, the test runs and that description update were done with Claude Code (Claude Opus 5.5 orchestrating, Claude Sonnet 5.5 subagents).mainand the conflict resolution, ran the suite and the smoke pair through subagents, and updated this description. A Claude Opus 5.5 reviewer agent checked the rebase (range-diff and the conflict resolutions).0fe06eb0: Claude Code, Claude Opus 5.5 (with subagents): the rebase, the suite and smoke runs, and this description update.d52ff48c, counts and description update: Claude Code, Claude Opus 5.55d9d3209(the test's value): Claude Code, Claude Opus 5.5 (main session) orchestrated it, restacked #2018 and #2025 and updated this description; a Claude Sonnet 5.5 subagent made the change; subagents ran the suite and the smoke pair.Imported from ivall/xcl. Originally posted by nnonno91 on 2026-11-24T19:35:01Z.
Independent Windows GPU check of commit
00f10eeceb4b58738610a2138c4361d5f5a69582. Nested dispatch with a densely packed table matched the reference on both AMD and NVIDIA.Tested
XCL_ADAPTER=AMD Radeonand the default compact settings,cargo build --workspace --lockedsucceeded.cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --show-outputreported 888 passed, 0 failed, 42 ignored. One of the reported passes logged an explicit skip,heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows.tests_compact.rsand rancargo test --locked -p xcl --lib -- gpu_compact_dense_nested_dispatch --test-threads=1 --nocaptureonce per adapter. Each run reported 2 passed, 0 failed, 0 ignored and no skips. Both used wave32, plus native wave64 on AMD or split wave64 on NVIDIA.gpu_compact_nested_dispatchto callcompact_withwithheavy=0,dense_above=0and groups of 2 or 4. The generated HLSL used both word-spanning extraction and nested switches. Its table data matched the flat dense form (nest=0). Each adapter ran 32 nested kernel configurations across the default and unstructured translation options, matching 4,235,392 result bytes againsttranslateand the flat dense form. The fixture tables contained 28 word-straddling entries across program/form pairs.gpu_compact_compute_dispatchfixture. All four nested compute configurations per adapter matched a CPU calculation for all 256 thread stores and preserved 16 sentinel dwords. Both GPU controls matched the same calculation. The worktree was restored after the targeted checks.Not tested
Retail output, cold compile timing, Intel, or Linux. The combined check forced the packing and grouping through
compact_with.AI use
OpenAI Codex (GPT-6 family, exact variant unavailable) adapted and ran the temporary tests, verified the logs, and wrote this report.
Imported from ivall/xcl. Originally posted by Pipodi on 2026-11-24T19:36:27Z.
@nnonno91 thanks. Your report covers one of the PR's Not tested points: the nested form with a packed table. You ran it on the GPU and it matched the flat dense form on AMD and NVIDIA, in wave32 and in native wave64 on AMD. That's a check the 4090 here can't make (no wave64). The other points are still open: retail programs on the GPU, AMD timing, and the merge order with #1548.
AI use: Claude Code (Claude Opus 5.5) wrote this reply.
Imported from ivall/xcl. Originally posted by brothernog on 2026-11-24T20:02:29Z.
Tested
00f10eeon an RTX 3050 8 GB (desktop, Ryzen 7 5800XT) (NVIDIA 610.88, Windows 11 build 26300, DXC 1.9.2602.17, release), with a retail program. This covers part of the Not tested point "retail programs on the GPU", on a smaller card than the 4090.ActivateRays (
95cc13288a27a96e), translated as the runtime does withXCL_COMPACT_CS=1 XCL_HEAP_WINDOWS=1and the translation cache off. Then a coldCreateComputePipelineStatewith the runtime's root signature and samplers, one PSO per process, one run each:XCL_COMPACT_NESTunset)XCL_COMPACT_NEST=32PeakPagefileUsagefromK32GetProcessMemoryInfo, read right after the PSO call (66 MB before it). It may count differently from your 8.2 GB / 1.5 GB figures.XCL_HEAP_WINDOWS=1); the nested-to-flat ratio is close (0.35 here, 0.36 on the 4090).Not tested:
main(kole's 8 GB run ran out of commit in DXC), other values ofP, and a title run.This comment was AI-assisted.
Imported from ivall/xcl. Originally posted by Pipodi on 2026-11-24T20:03:19Z.
@brothernog thanks, that's the first run of #1692 on a retail program on a small card. In the heap form, the driver went from 312 s to 31.8 s and its peak from 3,962 to 850 MB, and both pipelines were accepted. That is about 10× here against 4.4× on the 4090, so the small cards gain the most. On the 4090, the grid in #1269 (7142472413) puts the driver's time at about merge operands^0.8 × blocks. Yours looks steeper than that on this card. I'll use your table as the 8 GB data point when PR 2 (on by default above a case count) is measured.
Note: #1692 is now in conflict with
mainthrough #1316 (#1524 changedconsole_translationinpso.rs). I'll rebase it after #1316's next head.AI use: Claude Code (Claude Opus 5.5) wrote this reply.
Imported from ivall/xcl. Originally posted by Pipodi on 2026-11-24T20:20:45Z.
Rebased onto #1448's new head
42b2f11(on #1316f207df1, onmain85e3826). The new head is7123faa. The commit's patch is the same as00f10ee's, so the tests and measurements made at00f10ee(@0naku, @nnonno91, @brothernog) cover the same code.main85e3826reached 102.7 % ofmain's frames and 99.3 % of its peak commit, with no crash or device removal.The description has the new counts and both blocks.
AI use: Claude Code (Claude Opus 5.5) rebased and wrote this comment. A Claude Sonnet 5.5 subagent ran the suite and the smoke runs.
Imported from ivall/xcl. Originally posted by t4l03 on 2026-11-24T20:30:31Z.
@Pipodi a clarification for the compatibility note in the description: #1548 at
9c26337collects operands from decoded instructions, groups the block bodies, and only then emits the dispatch switch. Reading the emitted switch was part of the earlier HLSL prototype. I checked the two public heads (9c26337and7123faa) withgit merge-tree; they do conflict incompact.rsandpso.rs. Whichever lands second will need to reconcile dispatch emission and cache names. We have no measurements with both options enabled yet.AI use
Codex (gpt-6.2-sol) checked the source and merge tree and drafted this note.
Imported from ivall/xcl. Originally posted by Pipodi on 2026-11-24T20:31:31Z.
@t4l03 thank you, you're right. #1548's own commits on top of #1448 (
c934db6,8891798,9c26337) build the dispatch from the decoded instructions and don't parse the HLSL. I've corrected the line in the description. It now says that the two PRs conflict incompact.rsandpso.rs(I see the same withgit merge-treeof9c26337and7123faa), that whichever merges second reconciles the dispatch emission and the cache names, and that they haven't been run together.AI use: Claude Code (Claude Opus 5.5) checked the merge tree and #1548's commits, and wrote this comment.
Imported from ivall/xcl. Originally posted by einfachama on 2026-11-24T21:41:24Z.
Test report for #1692 with
XCL_COMPACT_NEST=32and heap windows, in title runs of my retail title on an 8 GB NVIDIA card. It covers the "Not tested" item "a title run" for both big programs.15ec6daefb19a780: builds in the driver in 24.9 s from cold, where the other forms I tried on this card did not finish.56c0cd3b82a00c6e: builds in 10.5 s.Setup
mainb9b6ea6(#1288 and #1524 are in it) + #899f3b7dd6+ one local log line (what a bind waits for, logged at the start of the wait; not part of any PR) + #1315 / #13165749171+ #132169a892c+ #1448b370923+ #169200f10ee.resolve_wait_for: both kept,_heldset from #899'salready.main'spub(crate) console_translation: #1316's version kept aspub(crate); the twomaincallers (console_hlsl,measure_pso) passCompactCs::get(), as #1316 does forconsole_to_hlsl.prepare():let program = code;at the top oftranslate.7123faaand #1448's42b2f11have the same patch ids as00f10eeandb370923.XCL_HEAP_WINDOWS=1,XCL_COMPACT_NEST=32,XCL_COMPACT_CSunset (auto),XCL_NETWORK=0,XCL_RUN_SECONDS=420, thread dumps at 100, 130, 160, 200, 260, 340 s. A pressed at 26 s and 30 s; the world load starts by itself at ~66 s.compact30 (SKIPPEDgpu_compact_native_wave64_form: no wave64),nested5,shared_targets1,dense_table1;oversized_structured1,memory_windows7,heap_window2,pso_async8,big_compile8.XCL_COMPACT_NEST=32set for the whole test run, 15compacttests fail. All stop at the same step: they read the HLSL for the flat dispatch lineswitch ((XCL_BT[xcl_b /, which the nested form replaces, and the GPU tests among them panic there before they run.The two programs, nested, in the title
15ec6daefb19a780(record95cc13288a27a96e)56c0cd3b82a00c6e(code hashd122faa48eb0afdc)76699 instructions, 2280459 B HLSL88863 instructions, 737038 B HLSL15ec6daefb19a780in thepc-block form (#1316 + #1321, compact refused at 9 975 table words): 13 297 372 B of DXIL, ~80 s of DXC. Not finished in the driver after 244–327 s, in 3 runs. Basec160d86with #1288.56c0cd3b82a00c6ein #1316's flat compact form: 983 404 B, 23.9 s in the driver. Same base.mainb9b6ea6with #1316 / #1321, no #1448 / #1692;XCL_DIRECT_DXIL=1withXCL_COMPACT_CS=0forced, which is not the default routing; without it neither program goes to the direct translator):15ec6daefb19a780: 8 360 348 B.56c0cd3b82a00c6e: 13 166 716 B.15ec6daefb19a780had not reached the driver).The title: 5 runs
15ec6daefb19a780or56c0cd3b82a00c6e.Not tested
XCL_COMPACT_NEST), and the flat #1448 form of15ec6daefb19a780on this card.AI use
Imported from ivall/xcl. Originally posted by St5sz2Jk on 2026-11-24T21:47:25Z.
Test report for #1692
7123faaon Linux / RADV (RDNA4), withXCL_COMPACT_NEST=32. It covers part of the Not tested item "AMD, Intel and dxil-spirv". ActivateRays builds in the title, but RADV takes 244 s and the process peaks at 45.5 GB, against 70 s for the flat form with @0naku's switch-tree patch on the same card.Tested
7.3.5-2-cachyos), Wine 11.22.ec207194(dxil-spirv7c048638),-Db_ndebug=true, with @0naku'sfast_dominatesand recursion-fix patches and aLoopMergeTracerfix (#1269, 7144483258). No switch tree: it makes invalid SPIR-V on some graphics shaders (same comment).main4178e88+ #871b66a150+ #684e56dbc3+ #144842b2f11+ #6405d6fac8+ this PR's7123faa(cherry-picked), release, cross-built forx86_64-pc-windows-msvc.XCL_COMPACT_NEST=32,XCL_DIRECT_DXIL=1,XCL_PAGE_BUDGET_MB=4096,XCL_PSO_TRACE=1.ActivateRays(95cc13288a27a96e)NEST=32spirv-valpasses at default limitsdriver compile finish)The rest of the run
MESA_SPIRV_FAIL_DUMP_PATHstayed empty).+0x23cf683) with 56,524 pipelines queued and none compiling (window overlay at about 1,840 s). That is the scheduling stall described in #1269, not something this PR causes.Not tested: other
Pvalues;NESTwith the switch tree; a cold driver cache for the other programs; repeat runs; RDNA2/3.AI use: Claude Code (Claude Opus 5.5) built the trees and vkd3d-proton, ran the offline conversion, read the logs and wrote this report.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T22:02:39Z.
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
mainincrates/xcl/src/gpu/recomp/mod.rs— needs a rebase before it can be tested.Imported from ivall/xcl. Originally posted by Pipodi on 2026-11-24T23:20:55Z.
New head
9c09c8f, rebased onto #1448's new head57d7574, which bounds the select list. The nested emission itself is unchanged. Two test changes are in the same commit:XCL_COMPACT_NESTset for the whole run, 15 compact tests stopped at the flat switch line. The tests' HLSL reader (Dispatch::of) now reads the nested form too. With the variable unset,=32and=2,cargo test -p xcl --lib compactgives 33 passed, 0 failed each, so setting it now runs those tests on the nested form.gpu_compact_nested_dispatchnow also runs #1448'smany_targets. Without it, the nested dispatch combined with the select tree was only compared withtranslatewhen the variable was set.Whole suite on
9c09c8f: 990 passed, 0 failed, 42 ignored. The smoke pair againstmain689f2dbis in the description (89.6 % ofmain's frames, no device removal, no crash). The description also links the three test reports: @brothernog (RTX 3050, 31.8 s against 312 s), @einfachama (RTX 4060, 24.9 s in a title run) and @St5sz2Jk (RADV, slower nested: 244 s against 70 s flat with the switch-tree patch). Thanks to all three.Turning the nest on by default is a separate step, claimed on #1269, after measurements on the ~700-case programs.
AI use: Claude Code with Claude Opus 5.5.
Imported from ivall/xcl. Originally posted by Pipodi on 2026-11-25T00:05:41Z.
Back to draft: since
mainmerged #1836, #1316 (which this PR is stacked on) conflicts withmaininpso.rs(details). This PR's own commits don't touch that code. I'll rebase onto #1316's new head once it's rebased, rerun the suite and smoke, and mark it ready again.AI use: Claude Code with Claude Opus 5.5.
Imported from ivall/xcl. Originally posted by Swagi-REDACTED on 2026-11-25T05:52:26Z.
Targeted RTX 3060 result for the exact compute record
95cc13288a27a96efrom A newer retail game. This follows the table-cap fallback seen during world loading with #1316.Hardware: Ryzen 7 9800X3D, RTX 3060 12 GB (driver 621.14), approximately 16 GB RAM, Windows 11 Home 26200. Rust 1.95.0 MSVC; DXC/DXIL 1.9.2602.17.
Tested local integration: main
cbc296ab65a2661a61e3e2da109134bcd5319f60plus #1315/#1316, then only the top commits57d7574(#1448) and9c09c8f(#1692), preserving their authors. Local head2ab922a. This is not an unmodified PR-head test: the integration retains main's shared shader cache and direct-DXIL cached-only deferral, has a one-line current mesh-cache signature adjustment, and an optional private live-input harness.With
XCL_COMPACT_CS=autoandXCL_COMPACT_NEST=32:The serialized
_c_n32cache payload contains 1,068,976 bytes of DXIL. In the preceding #1316-based title run, this record's compact translation exceeded the 8,192-word cap (9,979 words), fell back, and entered driver compilation with 10,896,240 bytes of DXIL. It had not finished when that run was intentionally stopped. This is not a completed before/after timing comparison, or an A/B isolating #1692 from #1448.Validation of this integration:
cargo test --locked -p xcl --lib compact -- --test-threads=4: 38 passed, 0 failed, 0 ignored; 1 explicit native-wave64 skip.cargo test --locked -p xcl --lib gpu::recomp::pso::shader_cache_tests -- --test-threads=4: 19 passed, 0 failed, 0 ignored; no explicit skips.cargo test --locked --workspace -- --test-threads=4: 1,190 passed, 0 failed, 46 ignored, across 21 result blocks; 26 explicit skip events included among passes (21 unavailable native-wave64 paths, 3 unsupported per-lane f16 cases, 1 heap-window-disabled case, 1 PSO measurement requiring Windows Developer Mode). Optional game-sample environment variables were unset.cargo build --locked --release --workspacepassed (46.52 s).Not tested: clean main/head smoke pair; completed gameplay/prologue; other GPUs. A new live world-load test is running separately. No game data is attached.
AI use: Codex, GPT-6 (exact serving variant not exposed), integrated the existing patches and ran/wrote this report. This report claims no authorship of the upstream compact-backend changes.
Imported from ivall/xcl. Originally posted by Pipodi on 2026-11-25T06:03:27Z.
@Swagi-REDACTED, thank you. This is the first RTX 3060 data point for this record, and it is useful for #1448 as well as this PR.
As you say, this is not an A/B of #1692 against #1448. If your live world-load run finishes, a second report is welcome. I'll rebase the whole stack once #1316 is rebased and post the new heads.
AI use: Claude Code with Claude Opus 5.5.
Imported from ivall/xcl. Originally posted by itsSio on 2026-11-25T09:59:03Z.
Tested
Independent check requested in #1269, on clean PR head
95e8abcfd8eb2da975255e5ea2c85ed2d812f37f, no local patches or merge. Windows 11 Pro 26200 on both systems, x64 MSVC, unoptimized dev/test with debug info off.cargo build --workspace --lockedandcargo test --workspace --locked --no-fail-fast -- --test-threads=4 --nocaptureboth exited 0 on each system.32.0.16.108832.0.16.1088Both runs logged 21 native-wave64 skips, three per-lane f16/f32 refusals, unavailable driver-cache control and unavailable heap windows. The RTX 2080 SUPER also skipped two D3D12 debug-layer tests (
test_title_draws_with_a_root_signature_under_the_debug_layer,uploads_start_from_each_subresources_state).Focused
cargo test -p xcl --lib --locked gpu::recomp::tests_compact -- --test-threads=1 --nocapture: 25 / 0 / 0 on the Radeon RDNA2 iGPU (32.0.21043.5001, same Ryzen 7 system), with no runtime skips, and 25 / 0 / 0 on the RTX 2080 SUPER with one native-wave64 skip. This includesgpu_compact_nested_dispatchandnested_dispatch_runs_the_flat_cases; environment settings were left at defaults except for adapter and DXC selection.Not tested
Retail smoke or shader samples, full AMD workspace, RADV, Intel, or compile and gameplay performance.
AI use
Ran via Samaritan:
openai/gpt-6.2-sol): ran both Windows checks, verified the raw results and wrote this report.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T00:29:07Z.
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current
mainon the new head — needs another rebase before it can be tested.Imported from ivall/xcl. Originally posted by Pipodi on 2026-11-27T15:43:00Z.
Rebased onto current main (
623d02e4); the suite rerun and the smoke pair on the new head are updated in the description.Imported from ivall/xcl. Originally posted by Pipodi on 2026-11-27T19:11:33Z.
@DavidM1911 rebased onto current main (
6089122a); new headf5c0edd5. The whole suite and a smoke pair were rerun, see the description. Ready for a retest when you have time.AI use: Claude Code (Claude Opus 5.5)
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:30:26Z.
Triage (#1607) – head
cf6d415Stacked on #1448, which itself carries #1316's compact-backend commits rebased; only the top two commits (
XCL_COMPACT_NESTand its test) belong here. #2018 and #2025 are stacked on this PR, and #1315, #1316 and #1548 share the lower compact commits, not the nested dispatch. None of it is on main.No problems found in the nested dispatch in
compact.rs::compact_with: an innerdefaultstill ends the loop throughmin(xcl_nb, n), and the cache name_c_n<P>keeps flat and nested entries apart.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-12-01T14:21:52Z.
Rerun on the new head (
5d9d3209; the only change is the warm-settings test now using32). The earlier report, oncf6d4158, is below.merge-check
base:
6bfb5c5153head:
5d9d320982merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2941 passed, 1 failed, 51 ignored (base: 2904 passed); SKIPPED: 26 (23 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps); failing:
hle::xaudio2::tests::xma2_source_voice_decodes_and_manages_lifetime. Not this PR: it is the shared-counter race #3551 fixes, and it passed alone 3 of 3 on this merge.review:
git range-diffagainstcf6d4158: the only change iswarm_settings_keep_compact_nest_switch, now comparing unset /32/0, all values this PR'sparse_nestaccepts. My earlier note aboutautois resolved. The rest is as reviewed below.shaders::warm_settings_keep_compact_nest_switch: 3 of 3 passed.performance: as below (opt-in; the default path is unchanged against #1448).
verdict: safe to merge
hardware / tool and model: RTX 3060 12 GB (610.88), Ryzen 7 5700X, Windows 11 Pro 26300 / Claude Code (Claude Opus 5.5)
Earlier report on
cf6d4158(baseb2b1f109)Imported from ivall/xcl. Originally posted by Pipodi on 2026-12-01T19:18:12Z.
Good catch, thanks. On this PR
XCL_COMPACT_NESTtakes only0or a power of two up to 65536 (autois added later, in the stacked nest-auto PR), soparse_nestrefusesautohere and the test only passed because the raw values are compared.warm_settings_keep_compact_nest_switchnow uses32(a valueparse_nestaccepts) against unset and against0. The fix is squashed into "Recompiler: compact dispatch can switch in two levels (XCL_COMPACT_NEST)", and the PRs stacked on this one are rebased onto it.Tests: the full workspace run on the new head is in the PR description.
Written with Claude Code (Claude Sonnet 5.5).
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T21:09:21Z.
Follow-up review (head
5d9d3209, sincecf6d415, diff read, not a merge-check):cf6d415the branch was rebased ontomaind52ff48c; the only change in this PR's own commits iswarm_settings_keep_compact_nest_switch(shaders.rs~118-123) now usingXCL_COMPACT_NEST=32instead ofauto, which is right becauseparse_nest(compact.rs~182) does not acceptautountil #2018. With #1316 closed, the stack is #1448 (b662d124,efc54bda,6a3c753a,7c52d4f6,51f9a05a) ← this PR (421109bb,5d9d3209, 327+/15-) ← #2018 ← #2025. The 2,645-line total is the stack, so no split is needed.New: none.
Fine: the two-level switch in
compact_with(compact.rs~290-300) runs the same cases as the flat one, with an innerdefaultandbreak/continuekeeping their flat meaning; the nest is off whenXCL_COMPACT_NESTis unset; the_c_n<P>cache name (pso.rs~402-423) and the warm-settings key keep flat and nested entries apart;nested_matches_flatchecks the nested text against the flat text for every group size and both table packings. Main already nests the direct-DXIL compact backend (XCL_DIRECT_COMPACT_NEST,gpu/dxil/compact.rs~696-740) with an auto default, so this stack is the HLSL-path counterpart.AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
Imported from ivall/xcl. Originally posted by Pipodi on 2026-12-02T15:59:22Z.
Closing: main's direct DXIL path now has its own compact dispatch and nesting (
dxil/kernel.rs, #2034, #2174), and with the defaults this stack'sgoes_direct(direct_on, compact_routed)(pso.rs) takes the programscompact_wantedpicks away from it and sends them back through HLSL and DXC, the form that never finished compiling on AMD (ActivateRays, @Nmopqr333). Foniass's #1316 triage reached the same conclusion. If the packing across words inpick_targetsstill pays off, it can come back as a small PR against the direct translator.AI use: Claude Code, Claude Opus 5.5 audited the stack; closed by the author.
Pull request closed