Repository navigation
Recompiler: route compute programs through a compact backend (XCL_COMPACT_CS) - #1316
CowboyBingus wants to merge 4 commits into
Conversation
490ccbb to
5e312d5
Compare
|
Tested on Bazzite RTX 5060 Laptop GPU (8 GB, NVIDIA 615.78.08), Intel Core 7 240H, 16 GB RAM, Bazzite 44 Testing and Proton Experimental 11.0-20261112. Windows MSVC release, Rust 1.98.1 and DXC 1.9.2609.5. Exact #1316 head Using the same executable, separate empty DXIL caches, one compile worker, four memory windows and split wave64, I compiled the same 88,863-instruction compute shader used in #1315. Both runs compiled one input with zero errors. XCL's CPU-only precompile took 125.3 s with Separate offline Series X title runs with Not tested Driver PSO creation for the isolated CPU comparison, native Windows on this laptop, or playable world entry. AI use OpenAI Codex with GPT-6.2-Sol high ran the focused tests, compared the builds and prepared this report. |
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
Tested the branch you named (
So forcing the compact form on every compute program is a regression on this title: nearly double the driver time, and the largest build got bigger (1.54 MB against 1.14 MB). It compacted 106 programs where it does not pay. Worth saying in the PR description, because
The other thing the run shows: the programs the compact form targets are not reached in the first 140 s. With If you want, I can run AI use: OpenCode, DeepSeek V4.1 Flash 1017. |
|
Testing #1316 at AI use: Claude Code (Claude Opus 5.5) runs the measurements and writes the report. |
|
Retail world load on an RTX 5080 (32-lane waves) at Tested
Not tested
AI use
|
|
Linux / Wine test report on the RTX 5070 Ti I tested the exact head Tested
The two precompiles completed with zero errors. Both PSO runs logged entry to D3D12 pipeline creation with an empty pipeline cache, then exited with timeout code 124. I collected a five-second user-space CPU profile during each attempt with Follow-up with the legacy structurizer I repeated the cold PSO step on the same head, RTX 5070 Ti, driver, and vkd3d-proton build, following the experiment reported by itsd-effex. I reused the exact DXIL files. The vkd3d-proton shader hashes matched across the two runs, and the cached DXIL SHA-256s stayed unchanged during the rerun. The configuration changed from
Both legacy runs exited successfully and each reported one pipeline made, zero refused, and zero loaded from disk. The total is the XCL CLI time with DXIL already compiled. I also recorded user-space CPU samples across each complete legacy command with ActivateRays with #1321 applied on top of #1316 I ran the requested commit pair on Wine against the single
I measured HLSL size separately with a translation-only helper using the corresponding build's routed translator and the same shader options. The actual timed runs used Same RTX 5070 Ti, driver 620.73.04, Ryzen 7 9700X, CachyOS Not tested Native Windows, full title or shader dispatch, the non-compact form of the original two compact shaders, and default-structurizer completion beyond the process timeout. Synthetic cross-check of the compact translator I exercised AI use Codex (GPT-6, exact variant unavailable) cross-built the PR, ran and profiled the commands, and drafted the report. Codex also generated the synthetic inputs and ran the standalone conversion tests. Codex also resolved the local merge and ran the isolated ActivateRays comparison. |
|
A short native Windows run can exercise We sampled the presented buffer every fourth frame. At 77.593 s, frame 1523 was opaque black at every one of the 518,400 sampled texels. XCL counted 1,526 presents in total, so the final two frames were outside our capture cadence. The last interval with a present ended at 78.088 s. The title faulted at The control run was interrupted, so these observations cover Offline PSO cache check on native Windows Same release
One run per arm. NVIDIA’s internal cache was uncontrolled, and a separate compile was running in the background, so the timings are descriptive. This check covers offline PSO creation. In-title reuse and progression beyond the black frame remain unverified. AI use for this update: OpenAI Codex (GPT-6.2 Sol) assisted with verification and reporting. |
|
@brainhay5 thanks. AI use: Claude Code (Claude Opus 5.5) wrote this reply. |
pvfreis
left a comment
There was a problem hiding this comment.
Review of 5e312d5 (stacked on #1315; merge base 930e8b4), by reading the code; nothing was built or run here. No defect found in the routing or the cache naming: only compute programs are routed, an incomplete or failed compact form falls back to translate, and a _c entry and a normal one are never served for each other.
- CONFIRMED:
only_compute_goes_to_the_compact_backenddoes not test that only compute is routed. Its non-compute case is a loneS_ENDPGM, which has no branch target, socompact()returnstranslatefor it (compact.rs:167-169) andalways.hlsl == normal.hlslholds whether or not kernel programs are routed. Removingmatches!(opt.mode, Mode::Compute(_))fromtranslate_as(mod.rs:1409) would leave the test green, and that check is what keeps other modes out underXCL_COMPACT_CS=1. A branching program for the non-compute mode, asserting that its compact text differs fromtranslate's and that the routed result equalstranslate's, would cover it.
Also: the stack conflicts with #1321 in crates/xcl/src/gpu/recomp/mod.rs (git merge-tree), so whichever lands second needs a rebase; and at the next rebase, the body of 5e312d5 still says it adds "a stub recomp::compact", which comes from 2912ed3.
Verdict: fine as far as I read once the routing test checks what its name says.
Review by Claude Code (written by Claude Opus 5.5, two adversarial checks by Claude Fable 5.2, checked by Claude Opus 5.5); each point checked by a person before posting.
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
RTX 4070 Ti follow-up: the shared-target prototype completed ActivateRays with a longer time budget This is an independent check alongside Pipodi’s RTX 4090 experiment. I reran the exact branch-free, factored DXIL from my earlier #1269 report, which stopped at 75 s. With a 150 s limit, both runs created the pipeline and saved a 1,300,766-byte driver blob.
RTX 4070 Ti, driver 617.14, Windows 11 build 26300, DXC 1.9.2609.5. Four switch-based memory windows, release helper using XCL’s ABI root signature and the shader’s static samplers. Each run used a differently named helper executable and a fresh XCL cache. NVIDIA’s global DXCache remained enabled. The local prototype also has 2,516 shared cases. It uses a different override encoding: a default target per case plus 6,566 sparse absolute-target overrides assigned by block index (11,498 total table words in this experiment). Its 2,787,188-byte DXIL has 6,418 explicit block labels, 44,484 SSA definitions and 6,526 Not tested: dispatch output, full-title loading, or Pipodi’s exact implementation. The shared-target PR is theirs. I’m looking at the remaining case bodies and memory-window variants as noted in #1269. AI use: Codex ( |
5e312d5 to
6cefa5c
Compare
|
Test report at Tested
So on a machine of this size the fallback is more than slow: once the title has used the program, the preload starts it in every run and the process is gone before the world's set-up. A higher cap alone does not make the program usable here either (11,909 texts are 5.2 MB of HLSL), which speaks for the denser table discussed in #1269. I can run that on this machine when it is up. Not tested
AI use
|
|
AMD dedicated GPU (RX 7800 XT, native wave64) at Tested
For the same two programs @Pipodi measured on the 4090: 14.3 s and 11.4 s of driver time, 1.8 and 1.5 GB. Here the driver time is about 30 times longer and the commit about 13 times higher. The rows are not matched (DXC 1.8.2502.11 here, and the HLSL is the native wave64 form), but a factor of 30 is not explained by that.
On this adapter that test panics at What it says
Not tested
AI use
|
|
Edited: rerun on the current head Test report for this PR's head Tested
Not tested
AI use
|
|
Thanks, @pvfreis (review). New head:
Full suite on AI use: Claude Code (Claude Opus 5.5) wrote this reply. |
|
World-loading run on a 12 GB 32-lane card, for the case nobody above has: RTX 3060 12 GB (581.80), Windows 11 26200, 64 GB RAM. This PR's head
So on this card the PR gets the big program built, but the title still stops at the same point, and process commit grows by ~18 GB between 80 s and 100 s where Written with Claude Code (Claude Opus 5.5) from runs on this machine. |
|
A data point for the routing rule here: forcing the compact form on the title's mid-size compute programs ( Setup: RTX 5070 Ti (driver 621.01), Ryzen 7 9700X, Windows 11 26300, release.
So the compact form pays off for the giants with heavy block repetition, as in the PR's 29.75 MB case, but not as a general switch for big programs. The title's ~1,800 compute programs with 0.5–1.4 MB of DXIL, at 30–190 s each in NVIDIA's compiler in our precompile logs, stay the open problem from #1269. Not tested: the 1.4 MB-DXIL programs themselves (the two above are smaller), AMD, and the driver compile timed on its own, separately from the run. AI-assisted. |
|
AMD on Linux, since the reports so far are NVIDIA:
Not tested: |
|
Test report for #1316 on AMD RDNA3 (native wave64), Windows: head Edited: rerun on the current head This covers the "Not tested: AMD, wave64 hardware" line of #1315 / #1316. On this adapter Tested
Not tested
AI use
|
|
RTX 3080 10 GB on head Tested
Regression run main: this PR:
Review note (found with an AI tool, checked in the code): Not tested
AI use
|
|
@CowboyBingus heads-up: since
Both need a decision on how the compact routing and #1836's deferral combine, so I haven't tried to resolve them. #1448 and #1692 are stacked on this PR, so I've put them back to draft until it's rebased, and I'll rebase them onto your new head then. AI use: Claude Code with Claude Opus 5.5. |
|
A/B on a desktop 8 GB card, with this PR merged onto
Not tested: the test suite, the smoke pair, AMD, native wave64. AI-assisted (Claude Code, Claude Opus 5.5); run on my machine. |
|
With #1448 merged in, record Setup: RTX 4060 Ti 16 GB (NVIDIA 615.71.09), Ryzen 9 9950X3D, Fedora 44, Wine 11.21 Staging, vkd3d-proton v3.1-90-g30b0eb9b (dxil-spirv Tested
Natively, no GPU:
Read The line is in let _ = writeln!(body, " if (xcl_nb <= xcl_b) {{ {LOOP_GUARD} }}");At // no branch here: a second back edge to the loop head crashes dxil-spirv (#1805)
body.push_str(" bool xcl_back = xcl_nb <= xcl_b;\n if (xcl_back && xcl_budget == 0u) break;\n xcl_budget -= (uint)xcl_back;\n");( The SPIR-V of this program fails dxil-spirv's maintainer has since fixed the recursion on its branch Not tested: the title with the change on unpatched vkd3d-proton; #1448's current head AI use: Claude Code (Claude Fable 5.2) read the runs, made the native reproduction and the change, and wrote this comment. Posted without review by a person: the account owner was away and reads replies later. |
The two largest compute programs of a retail pack are 14,377 and 14,346 blocks of 602 and 576 kinds: one code many times, each copy lowered again. A program of at least 20,000 instructions with under 30 % of them in its distinct blocks (the HLSL compact form's thresholds) now takes a compact form: each distinct block once, inside one loop that reads the block's class and its two successors from constant tables and switches to the class. Registers are local variables across the loop; as SSA values each was a phi with an edge from every class, and the form came out larger. Two blocks are of one class when the lowering would emit the same for both: the same instruction words, the same kind of end, and the same of what it looks up by address (static samplers, whether a mask is read whole in the split form, s_getpc_b64). The tables are constant data the driver has to take, and xcl-dev#1316 measured an RTX 5070 Ti accepting a table of 12,288 words and refusing one of 15,360, so a program takes the form by itself only when its two tables are at most 8,192 words (the HLSL compact form's limit). The largest compute programs of the pack, split wave64, direct DXIL: 4,321,608 -> 471,728 B and 4,293,632 -> 436,740 B for the two the rule picks. The third largest (3,914,652 B) repeats itself too, but its branches go to 6,530 different pairs of offsets and its tables would be 23,913 words: it keeps the plain form, and is 1,294,548 B when forced. XCL_DIRECT_COMPACT=1 forces the form on every compute program and 0 turns it off. Part of xcl-dev#1269. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The two largest compute programs of a retail pack are about 14,000 blocks of about 600 kinds: one code many times, each copy lowered again, 4.3 MB of DXIL each. A program of at least 20,000 instructions with under 30 % of them in its distinct blocks (the HLSL compact form's thresholds) now takes a compact form: each distinct block once, inside one loop that reads the block's class and its two successors from constant tables and switches to the class. The two come out under 0.5 MB each. Two blocks are of one class when the lowering would emit the same for both: the same instruction words, the same kind of end, and the same of what it looks up by address (static samplers, whether a mask written there is read whole in the split form, s_getpc_b64). Registers are local variables across the loop; as SSA values each was a phi with an edge from every class, and the form came out larger than the plain one for programs with little repetition. The tables are constant data the driver has to take, and xcl-dev#1316 measured an RTX 5070 Ti accepting a table of 12,288 words and refusing one of 15,360, so a program takes the form by itself only when its two tables are at most 8,192 words together (the HLSL compact form's limit). The third largest program repeats itself too, but its branches go to thousands of different offsets and its tables would be about 24,000 words: it keeps the plain form. XCL_DIRECT_COMPACT=1 forces the form on every compute program and 0 turns it off. Part of xcl-dev#1269. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The two largest compute programs of a retail pack are about 14,000 blocks of about 600 kinds: one code many times, each copy lowered again, 4.3 MB of DXIL each. A program of at least 20,000 instructions with under 30 % of them in its distinct blocks (the HLSL compact form's thresholds) now takes a compact form: each distinct block once, inside one loop that reads the block's class and its two successors from constant tables and switches to the class. The two come out under 0.5 MB each. Two blocks are of one class when the lowering would emit the same for both: the same instruction words, the same kind of end, and the same of what it looks up by address (static samplers, whether a mask written there is read whole in the split form, s_getpc_b64). Registers are local variables across the loop; as SSA values each was a phi with an edge from every class, and the form came out larger than the plain one for programs with little repetition. The tables are constant data the driver has to take, and xcl-dev#1316 measured an RTX 5070 Ti accepting a table of 12,288 words and refusing one of 15,360, so a program takes the form by itself only when its two tables are at most 8,192 words together (the HLSL compact form's limit). The third largest program repeats itself too, but its branches go to thousands of different offsets and its tables would be about 24,000 words: it keeps the plain form. XCL_DIRECT_COMPACT=1 forces the form on every compute program and 0 turns it off. Part of xcl-dev#1269. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Test report for the table cap on RTX 5090 (driver 32.0.16.1714), main ActivateRays ( Not tested: correctness of the compact ActivateRays against the normal form. AI use: Claude Code (Claude Opus 5.5). |
The two largest compute programs of a retail pack are about 14,000 blocks of about 600 kinds: one code many times, each copy lowered again, 4.3 MB of DXIL each. A program of at least 20,000 instructions with under 30 % of them in its distinct blocks (the HLSL compact form's thresholds) now takes a compact form: each distinct block once, inside one loop that reads the block's class and its two successors from constant tables and switches to the class. The two come out under 0.5 MB each. Two blocks are of one class when the lowering would emit the same for both: the same instruction words, the same kind of end, and the same of what it looks up by address (static samplers, whether a mask written there is read whole in the split form, s_getpc_b64). Registers are local variables across the loop; as SSA values each was a phi with an edge from every class, and the form came out larger than the plain one for programs with little repetition. The tables are constant data the driver has to take, and xcl-dev#1316 measured an RTX 5070 Ti accepting a table of 12,288 words and refusing one of 15,360, so a program takes the form by itself only when its two tables are at most 8,192 words together (the HLSL compact form's limit). The third largest program repeats itself too, but its branches go to thousands of different offsets and its tables would be about 24,000 words: it keeps the plain form. XCL_DIRECT_COMPACT=1 forces the form on every compute program and 0 turns it off. Part of xcl-dev#1269. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The two largest compute programs of a retail pack are about 14,000 blocks of about 600 kinds: one code many times, each copy lowered again, 4.3 MB of DXIL each. A program of at least 20,000 instructions with under 30 % of them in its distinct blocks (the HLSL compact form's thresholds) now takes a compact form: each distinct block once, inside one loop that reads the block's class and its two successors from constant tables and switches to the class. The two come out under 0.5 MB each. Two blocks are of one class when the lowering would emit the same for both: the same instruction words, the same kind of end, and the same of what it looks up by address (static samplers, whether a mask written there is read whole in the split form, s_getpc_b64). Registers are local variables across the loop; as SSA values each was a phi with an edge from every class, and the form came out larger than the plain one for programs with little repetition. The tables are constant data the driver has to take, and xcl-dev#1316 measured an RTX 5070 Ti accepting a table of 12,288 words and refusing one of 15,360, so a program takes the form by itself only when its two tables are at most 8,192 words together (the HLSL compact form's limit). The third largest program repeats itself too, but its branches go to thousands of different offsets and its tables would be about 24,000 words: it keeps the plain form. XCL_DIRECT_COMPACT=1 forces the form on every compute program and 0 turns it off. Part of xcl-dev#1269. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
gsucristo
left a comment
There was a problem hiding this comment.
Reviewed the top commit (964f5ed9) — clean routing, _c.bin cache isolation, and thorough unit tests for XCL_COMPACT_CS.
A couple of points to consider:
- Redundant
compact_wantedscans on cache misses (crates/xcl/src/gpu/recomp/pso.rs&mod.rs): InAutomode on a cache miss,compact_form(blob)/cs.takes(code)decodes and scans the full compute program up to 3 times (once inconsole_to_dxil_into choose the_c.binpath, once incompile_console_shaderforgoes_direct, and once intranslate_as). Passing the already-computedbooldown would avoid re-decoding 88k-instruction shaders on misses. XCL_DIRECT_DXILprecedence (pso.rs,goes_direct): Now that #2034 implements the compact form natively in Direct DXIL (0.48 MBDXIL with no DXC compile), routingXCL_DIRECT_DXIL=1compute shaders to the HLSL+DXC compact path first may no longer be desirable once #2034 lands.- Tiny formatting nit (
crates/xcl/src/gpu/recomp/mod.rs): Missing space inlet compact =compact::translate_compact(&code, &opt).unwrap();inonly_compute_goes_to_the_compact_backend.
(AI disclosure: review drafted with Antigravity — exact model name not provided to the agent — and checked by the reviewer before posting.)
The third-largest compute program of a retail pack repeats itself as the two largest do (13,890 blocks of 2,643 kinds), but its branches go to 6,530 different pairs of offsets. As an index into a table of pairs its tables were about 24,000 words, over the limit, and it kept the plain form: 3.9 MB of DXIL. In it, as in the other large programs, a block's second successor is always the next block. For such a program a table entry now holds the taken successor itself when that makes the tables smaller, about 11,300 words here. The limit goes from 8,192 to 12,288 words, the size xcl-dev#1316 measured an RTX 5070 Ti accepting, and the program takes the form. A class's key also marks whether an instruction has a static sampler (from the review of xcl-dev#2034): the one section an instruction can have and another with the same words lack. Part of xcl-dev#1269. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The third-largest compute program of a retail pack repeats itself as the two largest do (13,890 blocks of 2,643 kinds), but its branches go to 6,530 different pairs of offsets. As an index into a table of pairs its tables were about 24,000 words, over the limit, and it kept the plain form: 3.9 MB of DXIL. In it, as in the other large programs, a block's second successor is always the next block. For such a program a table entry now holds the taken successor itself when that makes the tables smaller, about 11,300 words here. The limit goes from 8,192 to 12,288 words, the size xcl-dev#1316 measured an RTX 5070 Ti accepting, and the program takes the form. Part of xcl-dev#1269. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The third-largest compute program of a retail pack repeats itself as the two largest do (13,890 blocks of 2,643 kinds), but its branches go to 6,530 different pairs of offsets. As an index into a table of pairs its tables were about 24,000 words, over the limit, and it kept the plain form: 3.9 MB of DXIL. In it, as in the other large programs, a block's second successor is always the next block. For such a program a table entry now holds the taken successor itself when that makes the tables smaller, about 11,300 words here. The limit goes from 8,192 to 12,288 words, the size xcl-dev#1316 measured an RTX 5070 Ti accepting, and the program takes the form. Part of xcl-dev#1269. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Stacked on #1315; only the top commit belongs here.
Routes translated compute programs through the compact form of #1315 when it pays, behind
XCL_COMPACT_CS:auto(the default): the programscompact::compact_wantedtakes (20,000+ instructions, distinct blocks under 30 % of them);0: never;1: every compute program. It is for tests and measurements, not for play: in brainhay5's run it raised the total driver compile time from 84.2 s to 158.8 s; on an RX 7800 XT, forcing it on 18 sampled records raised DXIL from 5.29 to 17.03 MB and driver time from 186.5 s to more than 1,152 s (oni-swr).A compact translation that returns an error or is incomplete falls back to
translate, and so does one whose HLSL fails in DXC (dxc::compile_cached). Part of #1269, #505 and #1598.With it,
indirect_diffuse_lighting:CS_ScreenProbes_ActivateProbes(56c0cd3b82a00c6e) is compiled as 1,053,264 B of DXIL instead of 29,750,144 B (numbers in #1315).What is in it
Recompiler: route compute programs through a compact backend (XCL_COMPACT_CS):gpu/recomp/mod.rs:CompactCs(the switch, read once) andtranslate_routed. Only compute is routed; geometry, mesh and kernel mode are not.gpu/recomp/pso.rs:console_translationusestranslate_as(translate_routedwith the switch given). A program routed to the compact backend gets a…_c.bintranslated-cache entry, so the two forms never share an entry. DXC and driver-blob keys already come from the HLSL / DXIL bytes. Whendxc::compile_cachedfails on a compact form, the program is compiled in the normal form (or taken from the normal entry when that is on disk) and kept under the normal entry, not the_cone, with one WARN line; a cached-only attempt is not retried, and a refusal is not remembered between runs. A driver (CreateComputePipelineState) rejection of a compact pipeline is not retried in the normal form. WithXCL_DIRECT_DXIL(gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426) on, a compute programXCL_COMPACT_CSroutes to the compact form goes to the compact form first, not to the direct translator; a program the compact form then refuses (e.g. its table limit) falls back totranslate, and one whose compact HLSL DXC refuses is retried in the normal form through the direct translator first, thentranslate. Every other compute program goes to the direct translator as before (goes_direct, tested inthe_compact_routing_goes_before_direct_dxil). The reason: forActivateProbeson an RX 9070 XT, ezamelczyk measured 80.9 / 81.2 MB of DXIL from gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426's direct translator against 0.77 / 0.87 MB compact.shaders.rs,gpu/shader.rs: the offlinexcl shaderspaths are routed the same way.build.rs:compact.rsis listed as a translator source, so the translated cache's identity follows it.Tested
RTX 5070 Ti (driver 621.24), AMD Ryzen 7 9800X3D, Windows 11 (10.0.26300).
cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4(debug) on this PR's head964f5ed(onmain266b845): 981 passed, 1 failed, 42 ignored (lib tests 932 / 1 / 22). The failure ishle::kernelx::tests::xmem_virtual_query_marks_cpu_readable_memory(kernelx.rs:2070), which fails the same way onmain930e8b4. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware,gpu_compact_native_wave64_form, and 16 lines ofmain'slower/lower_dxiltests. SKIPPED (per-lane form refused): 3 lines oflower_dxil's f16 / f32-conversion tests. SKIPPED (no heap windows):heap_window_out_of_memory_falls_back_to_the_switch_form.Same base, cold:
main266b845against this PR's head964f5edwithXCL_COMPACT_CSunset (auto), on the programsautoroutes. Each record was extracted to a folder of its own (xcl rpf shaders.rpf --extract <name>) and measured withxcl shaders <folder> --measure-pso <hash>(driver caches off), one process per run from a new copy of the exe and an emptyXCL_DXIL_CACHE, 4 memory windows, split wave64; HLSL fromxcl shaders shaders.rpf --export-hlsl <dir> --record-hash <hash>; peak commit is the process's peak private commit, sampled every 0.5 s; one run each, a run ofmainstopped at 600 s:CreateComputePipelineState56c0cd3b82a00c6e(ActivateProbes)main958400d2caf07244(ActivateProbesTarget)main95cc13288a27a96e(ActivateRays) is left out: both builds translate it the same way (15,000 KB of HLSL each; this PR's compact form refuses it,9975-word table (at most 8192)).A title run (retail title) of a local build of
31be310plusac1ca18:31be310is a merge of this stack's branches; its tree differs from this stack's intests_compact.rs, two comments incompact.rsand the order of twopub modlines inmod.rs.ac1ca18is an earlier local version of theSleeprule in kernelx: Sleep does not count the time a bind waits for a pipeline build #1288; its code differs from kernelx: Sleep does not count the time a bind waits for a pipeline build #1288's.56c0cd3b82a00c6ein the compact form, logged by its code hash:[SHADER] compact backend, compute program d122faa48eb0afdc: 88863 instructions, 723453 B HLSL.ActivateRaysfell back:compact form: 19949 blocks of 11909 texts need a 9975-word table (at most 8192) – translated as before.Regression run
scripts/smoke.ps1 -Game <game folder> -Seconds 60(release builds, menus, no input):main:
this PR:
Not tested
ActivateProbeswith this stack alone, without aSleeprule like kernelx: Sleep does not count the time a bind waits for a pipeline build #1288's.XCL_HEAP_WINDOWS=1).XCL_DIRECT_DXILtogether withXCL_COMPACT_CSin a title orxcl shadersrun: only the unit test of their order.ActivateProbespipeline was not built within 300 s on an RX 9070 XT (RADV), nor wasmain's form (47efa2e) (ezamelczyk); with the legacy structurizer (a local vkd3d-proton patch) it was built in about 75 s each.AI use
🤖 Generated with Claude Code