Recompiler: route compute programs through a compact backend (XCL_COMPACT_CS) #1316

Open
github-bot wants to merge 4 commits from github-bot/gh-1316 into main AGit
Owner

@⁠CowboyBingus on GitHub · 2026-11-24 14:39 UTC · original
CowboyBingus:recomp-compact-routing → main · +1894 −55 · 8 files · 4 commits · open

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:

  • unset or auto (the default): the programs compact::compact_wanted takes (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) and translate_routed. Only compute is routed; geometry, mesh and kernel mode are not.
    • gpu/recomp/pso.rs: console_translation uses translate_as (translate_routed with the switch given). A program routed to the compact backend gets a …_c.bin translated-cache entry, so the two forms never share an entry. DXC and driver-blob keys already come from the HLSL / DXIL bytes. When dxc::compile_cached fails 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 _c one, 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. With XCL_DIRECT_DXIL (#1426) on, a compute program XCL_COMPACT_CS routes 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 to translate, and one whose compact HLSL DXC refuses is retried in the normal form through the direct translator first, then translate. Every other compute program goes to the direct translator as before (goes_direct, tested in the_compact_routing_goes_before_direct_dxil). The reason: for ActivateProbes on an RX 9070 XT, ezamelczyk measured 80.9 / 81.2 MB of DXIL from #1426's direct translator against 0.77 / 0.87 MB compact.
    • With #2120 on main, a title's compute program (and xcl shaders --precompile's) whose HLSL is longer than dxc::UNOPTIMISED_ABOVE (8 MiB) is tried in the direct translator first when XCL_DIRECT_DXIL is off (pso::compile_hlsl); xcl shaders --measure-pso does not do this. That check is made on the HLSL console_translation returns: the compact HLSL for a program in the compact form, the normal HLSL for one the compact form refuses or whose compact HLSL DXC refuses.
    • shaders.rs, gpu/shader.rs: the offline xcl shaders paths are routed the same way.
    • build.rs: compact.rs is listed as a translator source, so the translated cache's identity follows it.
    • One INFO line per routed program, the first time.

Tested

  • RTX 5070 Ti (driver 621.24), AMD Ryzen 7 9800X3D, Windows 11 (10.0.26300).

  • This PR's head 5328b15 (on main afc5ee8): cargo build --workspace and cargo build --release -p xcl succeeded; cargo test -p xcl --lib compact -- --test-threads=4: 33 passed, 0 failed, 0 ignored, with gpu_compact_native_wave64_form SKIPPED (no wave64); cargo test -p xcl --lib pso:: -- --test-threads=4: 23 passed, 0 failed, 1 ignored (compile_time_bench::repeated_pso_shader_compile). The full suite was not run locally on this head.

  • cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4 (debug) on an earlier head of this PR, 964f5ed (on main 266b845): 981 passed, 1 failed, 42 ignored (lib tests 932 / 1 / 22). The failure is hle::kernelx::tests::xmem_virtual_query_marks_cpu_readable_memory (kernelx.rs:2070), which fails the same way on main 930e8b4. 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 of main's lower / lower_dxil tests. SKIPPED (per-lane form refused): 3 lines of lower_dxil's f16 / f32-conversion tests. SKIPPED (no heap windows): heap_window_out_of_memory_falls_back_to_the_switch_form.

  • Same base, cold: main 266b845 against this PR's head 964f5ed with XCL_COMPACT_CS unset (auto), on the programs auto routes. Each record was extracted to a folder of its own (xcl rpf shaders.rpf --extract <name>) and measured with xcl shaders <folder> --measure-pso <hash> (driver caches off), one process per run from a new copy of the exe and an empty XCL_DXIL_CACHE, 4 memory windows, split wave64; HLSL from xcl 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 of main stopped at 600 s:

    program build HLSL DXIL DXC CreateComputePipelineState peak commit
    56c0cd3b82a00c6e (ActivateProbes) main 30,301 KB – – not built within 600 s 4,986 MB
    this PR 706 KB 1,050,616 B 15.0 s 18.3 s 579 MB
    958400d2caf07244 (ActivateProbesTarget) main 30,222 KB – – not built within 600 s 4,973 MB
    this PR 650 KB 953,540 B 23.4 s 6.2 s 503 MB

    95cc13288a27a96e (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 31be310 plus ac1ca18:

    • 31be310 is a merge of this stack's branches; its tree differs from this stack's in tests_compact.rs, two comments in compact.rs and the order of two pub mod lines in mod.rs.
    • ac1ca18 is an earlier local version of the Sleep rule in #1288; its code differs from #1288's.
    • At 342.1 s the title translated 56c0cd3b82a00c6e in the compact form, logged by its code hash: [SHADER] compact backend, compute program d122faa48eb0afdc: 88863 instructions, 723453 B HLSL.
    • At 370.8 s ActivateRays fell back: compact form: 19949 blocks of 11909 texts need a 9975-word table (at most 8192) – translated as before.
    • Presents had stopped at 88 s in that run. It ended at 403 s on my harness's memory guard (system commit at 99 %), with no crash or device removal.

Regression run
scripts/smoke.ps1 -Game <game folder> -Seconds 60 -Title retail (release builds, menus, no input):

main:

xcl-smoke v1
commit: afc5ee86ae3a9521c9f15d96505cd73fe72f2191
gpu: NVIDIA GeForce RTX 5070 Ti
title: retail
seconds: 60
exit: 0x0
frames shown: 1664 (PresentX 1664)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16555 MB

this PR:

xcl-smoke v1
commit: 5328b157590f14bd4b04eaa6719d9b112f766e1b
gpu: NVIDIA GeForce RTX 5070 Ti
title: retail
seconds: 60
exit: 0x0
frames shown: 1664 (PresentX 1664)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 17124 MB

Not tested

  • AMD, Linux / Wine.
  • A title run that reaches ActivateProbes with this stack alone, without a Sleep rule like #1288's.
  • The compact backend with #680's heap windows (XCL_HEAP_WINDOWS=1).
  • XCL_DIRECT_DXIL together with XCL_COMPACT_CS in a title or xcl shaders run: only the unit test of their order.
  • Linux / vkd3d-proton: with dxil-spirv's default structurizer the compact ActivateProbes pipeline was not built within 300 s on an RX 9070 XT (RADV), nor was main's form (47efa2e) (ezamelczyk); with the legacy structurizer (a local vkd3d-proton patch) it was built in about 75 s each.

AI use

  • Claude Code (Claude Opus 5.5) wrote the code, the tests and this description; I ran the tests and runs on my machine and checked the results.

🤖 Generated with Claude Code

**@⁠CowboyBingus** on GitHub · 2026-11-24 14:39 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316) `CowboyBingus:recomp-compact-routing` → `main` · +1894 −55 · 8 files · 4 commits · open 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`: - unset or `auto` (the default): the programs `compact::compact_wanted` takes (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](https://github.com/ivall/xcl/pull/1316#issuecomment-7135567805) 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](https://git.gtahub.st/github/xcl-dev--xcl/issues/1269)). 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) and `translate_routed`. Only compute is routed; geometry, mesh and kernel mode are not. - `gpu/recomp/pso.rs`: `console_translation` uses `translate_as` (`translate_routed` with the switch given). A program routed to the compact backend gets a `…_c.bin` translated-cache entry, so the two forms never share an entry. DXC and driver-blob keys already come from the HLSL / DXIL bytes. When `dxc::compile_cached` fails 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 `_c` one, 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. With `XCL_DIRECT_DXIL` (#1426) on, a compute program `XCL_COMPACT_CS` routes 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 to `translate`, and one whose compact HLSL DXC refuses is retried in the normal form through the direct translator first, then `translate`. Every other compute program goes to the direct translator as before (`goes_direct`, tested in `the_compact_routing_goes_before_direct_dxil`). The reason: for `ActivateProbes` on an RX 9070 XT, [ezamelczyk measured](https://git.gtahub.st/github/xcl-dev--xcl/pulls/1316) 80.9 / 81.2 MB of DXIL from #1426's direct translator against 0.77 / 0.87 MB compact. - With #2120 on `main`, a title's compute program (and `xcl shaders --precompile`'s) whose HLSL is longer than `dxc::UNOPTIMISED_ABOVE` (8 MiB) is tried in the direct translator first when `XCL_DIRECT_DXIL` is off (`pso::compile_hlsl`); `xcl shaders --measure-pso` does not do this. That check is made on the HLSL `console_translation` returns: the compact HLSL for a program in the compact form, the normal HLSL for one the compact form refuses or whose compact HLSL DXC refuses. - `shaders.rs`, `gpu/shader.rs`: the offline `xcl shaders` paths are routed the same way. - `build.rs`: `compact.rs` is listed as a translator source, so the translated cache's identity follows it. - One INFO line per routed program, the first time. **Tested** - RTX 5070 Ti (driver 621.24), AMD Ryzen 7 9800X3D, Windows 11 (10.0.26300). - This PR's head `5328b15` (on `main` `afc5ee8`): `cargo build --workspace` and `cargo build --release -p xcl` succeeded; `cargo test -p xcl --lib compact -- --test-threads=4`: 33 passed, 0 failed, 0 ignored, with `gpu_compact_native_wave64_form` SKIPPED (no wave64); `cargo test -p xcl --lib pso:: -- --test-threads=4`: 23 passed, 0 failed, 1 ignored (`compile_time_bench::repeated_pso_shader_compile`). The full suite was not run locally on this head. - `cargo build --workspace`, then `cargo test --workspace --no-fail-fast -- --test-threads=4` (debug) on an earlier head of this PR, `964f5ed` (on `main` `266b845`): 981 passed, 1 failed, 42 ignored (lib tests 932 / 1 / 22). The failure is `hle::kernelx::tests::xmem_virtual_query_marks_cpu_readable_memory` (kernelx.rs:2070), which fails the same way on `main` `930e8b4`. 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 of `main`'s `lower` / `lower_dxil` tests. SKIPPED (per-lane form refused): 3 lines of `lower_dxil`'s f16 / f32-conversion tests. SKIPPED (no heap windows): `heap_window_out_of_memory_falls_back_to_the_switch_form`. - Same base, cold: `main` `266b845` against this PR's head `964f5ed` with `XCL_COMPACT_CS` unset (`auto`), on the programs `auto` routes. Each record was extracted to a folder of its own (`xcl rpf shaders.rpf --extract <name>`) and measured with `xcl shaders <folder> --measure-pso <hash>` (driver caches off), one process per run from a new copy of the exe and an empty `XCL_DXIL_CACHE`, 4 memory windows, split wave64; HLSL from `xcl 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 of `main` stopped at 600 s: | program | build | HLSL | DXIL | DXC | `CreateComputePipelineState` | peak commit | |---|---|---|---|---|---|---| | `56c0cd3b82a00c6e` (`ActivateProbes`) | `main` | 30,301 KB | – | – | not built within 600 s | 4,986 MB | | | this PR | 706 KB | 1,050,616 B | 15.0 s | 18.3 s | 579 MB | | `958400d2caf07244` (`ActivateProbesTarget`) | `main` | 30,222 KB | – | – | not built within 600 s | 4,973 MB | | | this PR | 650 KB | 953,540 B | 23.4 s | 6.2 s | 503 MB | `95cc13288a27a96e` (`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 `31be310` plus `ac1ca18`: - `31be310` is a merge of this stack's branches; its tree differs from this stack's in `tests_compact.rs`, two comments in `compact.rs` and the order of two `pub mod` lines in `mod.rs`. - `ac1ca18` is an earlier local version of the `Sleep` rule in #1288; its code differs from #1288's. - At 342.1 s the title translated `56c0cd3b82a00c6e` in the compact form, logged by its code hash: `[SHADER] compact backend, compute program d122faa48eb0afdc: 88863 instructions, 723453 B HLSL`. - At 370.8 s `ActivateRays` fell back: `compact form: 19949 blocks of 11909 texts need a 9975-word table (at most 8192) – translated as before`. - Presents had stopped at 88 s in that run. It ended at 403 s on my harness's memory guard (system commit at 99 %), with no crash or device removal. **Regression run** `scripts/smoke.ps1 -Game <game folder> -Seconds 60 -Title retail` (release builds, menus, no input): main: ``` xcl-smoke v1 commit: afc5ee86ae3a9521c9f15d96505cd73fe72f2191 gpu: NVIDIA GeForce RTX 5070 Ti title: retail seconds: 60 exit: 0x0 frames shown: 1664 (PresentX 1664) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16555 MB ``` this PR: ``` xcl-smoke v1 commit: 5328b157590f14bd4b04eaa6719d9b112f766e1b gpu: NVIDIA GeForce RTX 5070 Ti title: retail seconds: 60 exit: 0x0 frames shown: 1664 (PresentX 1664) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 17124 MB ``` **Not tested** - AMD, Linux / Wine. - A title run that reaches `ActivateProbes` with this stack alone, without a `Sleep` rule like #1288's. - The compact backend with #680's heap windows (`XCL_HEAP_WINDOWS=1`). - `XCL_DIRECT_DXIL` together with `XCL_COMPACT_CS` in a title or `xcl shaders` run: only the unit test of their order. - Linux / vkd3d-proton: with dxil-spirv's default structurizer the compact `ActivateProbes` pipeline was not built within 300 s on an RX 9070 XT (RADV), nor was `main`'s form (`47efa2e`) ([ezamelczyk](https://git.gtahub.st/github/xcl-dev--xcl/pulls/1316)); with the legacy structurizer (a local vkd3d-proton patch) it was built in about 75 s each. **AI use** - Claude Code (Claude Opus 5.5) wrote the code, the tests and this description; I ran the tests and runs on my machine and checked the results. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
No behaviour change: the decoding, block leaders and emitter set-up at the
start of translate() move into prepare(), so a second form of the program
(the compact form) is built from exactly the same decoded program and
emitter state.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
DXC inlines every helper of a cs_6_x target, so a retail compute shader
with thousands of equal blocks (ActivateProbes 56c0cd3b82a00c6e: 88,863
instructions, 3,281 buffer_load_format_x) becomes 29.75 MB of DXIL that
the driver needs minutes for. translate_compact() cuts the program into
blocks (leaders, plus every instruction whose HLSL exceeds 600 B on its
own), emits each instruction with emit::Em as translate() does,
temporaries numbered from t1 per instruction, and shares equal block
texts as cases of one dispatch loop. Branches go to a block at an offset
from their own (part of the text), so a static table only holds every
block's case, packed. The table is capped at 8,192 words: on an RTX 5070
Ti, CreateComputePipelineState of this program's compact form with an
added 12,288-word static array succeeded; with 15,360 words it failed
with E_OUTOFMEMORY. Back edges spend the loop budget (65,536 per lane);
once it is spent the program ends, where the structured form leaves the
loop and runs what follows. compact_wanted() picks programs of
20,000+ instructions whose distinct blocks hold under 30 % of them.
Not called yet.

Measured on 56c0cd3b82a00c6e (4 memory windows, split wave64, RTX 5070
Ti, a local merge, 31be310): 723,453 B HLSL, DXIL
1,053,264 B in 12.5 s, CreateComputePipelineState 9.7 s from a new exe
with no cached blob.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
tests_compact translates each program with translate and with
compact::translate_compact and runs both on the same inputs. The kernel
programs assert byte-identical SGPRs, SCC, VGPRs of all lanes, exports
and the split form's upper-half SGPRs, plus flat memory or the first
64 KiB of each memory window; the compute dispatch compares memory.

Programs: nested execz regions, divergent and scalar backward loops,
one block repeated at five addresses, far jumps (s_getpc_b64, add or
sub, s_setpc_b64) forward and backward, v_mul_lo_u32,
buffer_load_format_x in twelve formats and repeated as a block of its
own, a cross-lane block (ballot, readfirstlane, readlane) repeated
under four exec masks, s_endpgm before the last block, a loop through
four memory windows with loads, stores and per-lane atomics, a
compute dispatch, and 200 forward jumps that #1307's bound sends to
pc blocks in translate (gpu_compact_against_the_pc_block_fallback). The kernel programs run in each form forms() lists
for the adapter (wave64 split or native, wave32; with branches also
unstructured), and in the wave64 forms with mem_windows: 4; the
compute dispatch runs in wave64 (split where the adapter needs it) and
wave32.

Every program here except one has a branch, and the tests assert that
translate_compact gives it the compact form: they read its dispatch
loop back from the HLSL. translate_compact keeps translate's form for a
program without branches, so the two straight-line programs start with
a branch to the next instruction. For the repeated blocks, the
exchange block, the buffer loads, the window loop, the far jumps and
s_endpgm they also assert the shape: fewer cases than blocks, one case
for the four copies of the exchange block and one for the block after
the load, the load a case of its own, the far jumps' block offsets,
two program ends before the last block. The exception is the
memory-window program of gpu_memory_windows_above_4_gib (no branch):
it gets translate's form from both, so its test compares translate
with itself; the window loop runs the compact form through the
windows.

The atomics in the memory-window programs add to a dword per lane. On
an RTX 5070 Ti (split wave64, 4 windows), with all 64 lanes adding to
one dword, 40 runs of the same DXIL returned two different lane 0
values (5 and 35 runs): the split halves' atomics land in either
order.

gpu_compact_sample_big_cs (XCL_SAMPLE_BIG_CS=<code file>) runs a retail
program both ways. A program translate_compact refuses (e.g. its table
limit) is SKIPPED; when the driver cannot create translate's pipeline
(e.g. E_OUTOFMEMORY), the A/B comparison is SKIPPED and the compact
form must still compile and run.

Needs the compact backend (compact.rs and `pub mod compact`).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The switch XCL_COMPACT_CS: unset / auto = the programs compact_wanted
picks, 0 = none, 1 = every compute program; another value logs a warning
and acts as auto.
`translate_routed` gives a compute program to translate_compact where the
switch says so and uses `translate` when that returns an error or an
incomplete translation. The PSO path (console_translation, both FSPX and
FSSM), `xcl shaders` statistics and precompile, and the shader dump's
recompile use it.

The on-disk translation cache names an entry of a program routed to the
compact backend `..._c.bin`, so a compact and a normal translation of one
program never share a file; the file name of a normal entry is unchanged.
compact.rs is added to the translator sources that identify compatible
cache entries (this commit changes that identity, so existing entries are
translated again once). One INFO line per compute program routed to the
compact backend, the first time: instructions and HLSL bytes, or why it
fell back.

When dxc::compile_cached fails on a compute program's compact-form HLSL, the
program is compiled in the normal form (or taken from the normal form's
translation-cache entry when that is on disk), and the result is kept under
the normal entry, never the `_c` one; one WARN line is logged before that.
A cached-only attempt is not retried: its DXIL is not refused, only not made
yet. A refusal is not remembered between runs. A driver
(CreateComputePipelineState) rejection of a compact pipeline is not retried in
the normal form.

With XCL_DIRECT_DXIL (#1426) on, a compute program XCL_COMPACT_CS routes to
the compact form goes to the HLSL path's compact form first, not to the direct
translator; if DXC refuses that HLSL, the retry in the normal form goes to the
direct translator first, then to translate. Every other compute program goes
to the direct translator as before, and to the HLSL path when that falls back.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:50:29 +00:00
Author
Owner

@⁠Filip722 on GitHub · 2026-11-24 15:02 UTC · original

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 490ccbb491e99508e10be5c1b78e4ba03f543398 on XCL main 930e8b4 with our existing local Series X texture and mesh loading changes. Eight focused routing, cache-key and DXC tests passed.

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 XCL_COMPACT_CS=0 and 15.0 s with auto. The single cached DXIL file went from 29,750,440 to 1,053,272 bytes. Auto selected the compact route and emitted 723,453 bytes of HLSL.

Separate offline Series X title runs with 0 and auto reached loading artwork, then the same title GPU watchdog. Both recorded 17 pipeline-bind timeout warnings and zero D3D12 device removals or kernel GPU faults. Auto logged no compact translation attempts in this window. The memory caps tightened at different elapsed times, so I am reporting the shared milestone and route observation.

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.

**@⁠Filip722** on GitHub · 2026-11-24 15:02 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7135355239) **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 `490ccbb491e99508e10be5c1b78e4ba03f543398` on XCL main `930e8b4` with our existing local Series X texture and mesh loading changes. Eight focused routing, cache-key and DXC tests passed. 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 `XCL_COMPACT_CS=0` and **15.0 s** with `auto`. The single cached DXIL file went from **29,750,440 to 1,053,272 bytes**. Auto selected the compact route and emitted 723,453 bytes of HLSL. Separate offline Series X title runs with `0` and `auto` reached loading artwork, then the same title GPU watchdog. Both recorded 17 pipeline-bind timeout warnings and zero D3D12 device removals or kernel GPU faults. Auto logged no compact translation attempts in this window. The memory caps tightened at different elapsed times, so I am reporting the shared milestone and route observation. **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.
Author
Owner

@⁠brainhay5 on GitHub · 2026-11-24 15:10 UTC · original

Tested the branch you named (5e312d5, merged onto main 930e8b4, clean), RTX 5070 Ti, driver 32.0.16.1088, Windows 11 22631, release, XCL_NETWORK=0, A every 5 s, 140 s world load each.

auto (default): 1 program routed, 156 compute PSO builds, driver time 84.2 s, largest 1,144,224 B / 84,029 ms.

XCL_COMPACT_CS=1: 106 programs routed, 102 builds, driver time 158.8 s, largest 1,537,704 B / 57,249 ms.

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 1 reads like "turn the feature on" and invites exactly this test.

auto is the right default and behaves like main in this window — it routed one program and the totals are within run-to-run variance (84.2 s here against 104.1 s on main in the previous run).

The other thing the run shows: the programs the compact form targets are not reached in the first 140 s. With auto, one program is routed; you saw ActivateProbes translated at 342 s in your run. So no 140 s run can show the tail benefit either way — the comparison needs a run that gets past ~340 s, which ours does not (it ends at +0x23cf683 first).

If you want, I can run auto with a longer window (say 400 s, watchdog permitting) once the branch is rebased on the next main, and report the tail share before and after as two numbers.

AI use: OpenCode, DeepSeek V4.1 Flash 1017.

**@⁠brainhay5** on GitHub · 2026-11-24 15:10 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7135567805) Tested the branch you named (`5e312d5`, merged onto `main` `930e8b4`, clean), RTX 5070 Ti, driver 32.0.16.1088, Windows 11 22631, release, `XCL_NETWORK=0`, A every 5 s, 140 s world load each. **`auto` (default):** 1 program routed, 156 compute PSO builds, driver time **84.2 s**, largest **1,144,224 B / 84,029 ms**. **`XCL_COMPACT_CS=1`:** 106 programs routed, 102 builds, driver time **158.8 s**, largest **1,537,704 B / 57,249 ms**. 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 `1` reads like "turn the feature on" and invites exactly this test. `auto` is the right default and behaves like `main` in this window — it routed one program and the totals are within run-to-run variance (84.2 s here against 104.1 s on `main` in the previous run). The other thing the run shows: **the programs the compact form targets are not reached in the first 140 s.** With `auto`, one program is routed; you saw `ActivateProbes` translated at 342 s in your run. So no 140 s run can show the tail benefit either way — the comparison needs a run that gets past ~340 s, which ours does not (it ends at `+0x23cf683` first). If you want, I can run `auto` with a longer window (say 400 s, watchdog permitting) once the branch is rebased on the next `main`, and report the tail share before and after as two numbers. AI use: OpenCode, DeepSeek V4.1 Flash 1017.
Author
Owner

@⁠More1215 on GitHub · 2026-11-24 15:10 UTC · original

Testing #1316 at 5e312d5 against main 930e8b4 on Windows: the full-pack pass xcl shaders --precompile --only cs --pipelines (driver PSO creation included), RTX 5080 (driver 621.35), Ryzen 7 9800X3D, 32 GB, DXC 1.9.2602.17, separate empty DXIL caches. This is the pass that stops advancing around record 22 600 on RTX 4080/4090/5080 (#744). I will report whether it gets past that point, how long it takes, and the driver times of the routed programs. Counts and timings only.

AI use: Claude Code (Claude Opus 5.5) runs the measurements and writes the report.

**@⁠More1215** on GitHub · 2026-11-24 15:10 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7135574712) Testing #1316 at `5e312d5` against `main` `930e8b4` on Windows: the full-pack pass `xcl shaders --precompile --only cs --pipelines` (driver PSO creation included), RTX 5080 (driver 621.35), Ryzen 7 9800X3D, 32 GB, DXC 1.9.2602.17, separate empty DXIL caches. This is the pass that stops advancing around record 22 600 on RTX 4080/4090/5080 (#744). I will report whether it gets past that point, how long it takes, and the driver times of the routed programs. Counts and timings only. AI use: Claude Code (Claude Opus 5.5) runs the measurements and writes the report.
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-24 15:04 UTC · original · edited 2026-11-24 15:12 UTC

Full-suite run, since this PR has no test report yet. Tested exact head 5e312d5 (on its base 930e8b4).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 773 passed, 0 failed, 41 ignored. SKIPPED (no wave64): gpu_compact_native_wave64_form, gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • The new tests ran and passed: equal_blocks_share_one_case, compact_is_wanted_for_large_repetitive_programs, gpu_compact_matches_translate, the_switch_reads_auto_0_and_1, only_compute_goes_to_the_compact_backend, translated_compact_and_normal_forms_are_kept_apart, compact_and_normal_forms_compile, gpu_compact_execz_nest, gpu_compact_backward_loops, gpu_compact_repeated_blocks, gpu_compact_far_jumps, gpu_compact_v_mul_lo_u32, gpu_compact_buffer_load_format_x, gpu_compact_native_wave64_form, gpu_compact_compute_dispatch, gpu_compact_memory_windows, gpu_compact_memory_windows_loop, gpu_compact_programs_with_four_windows, gpu_compact_exchange_repeated, gpu_compact_buffer_load_format_x_repeated, gpu_compact_endpgm_before_last_block, gpu_compact_sample_big_cs.
  • Same head on the AMD Radeon iGPU of the 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace -- --test-threads=4: 773 passed, 0 failed, 41 ignored, no skips.
  • With XCL_COMPACT_CS=1, cargo test -p xcl --lib -- gpu:: on both GPUs: 306 passed, 0 failed, 18 ignored. That says less than it looks: the recompiler GPU tests in tests.rs (via runner.rs) call translate directly, and only the pso.rs, shader.rs and shaders.rs paths go through translate_routed. So the env var does not put the existing GPU tests on the compact backend, and the compact backend is covered by tests_compact.rs only. A switch in runner.rs to route through translate_as would let the whole GPU test set run against it.

Not tested

  • a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-24 15:04 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7135422385) · edited 2026-11-24 15:12 UTC Full-suite run, since this PR has no test report yet. Tested exact head `5e312d5` (on its base `930e8b4`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4`: **773 passed, 0 failed, 41 ignored**. SKIPPED (no wave64): `gpu_compact_native_wave64_form`, `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - The new tests ran and passed: `equal_blocks_share_one_case`, `compact_is_wanted_for_large_repetitive_programs`, `gpu_compact_matches_translate`, `the_switch_reads_auto_0_and_1`, `only_compute_goes_to_the_compact_backend`, `translated_compact_and_normal_forms_are_kept_apart`, `compact_and_normal_forms_compile`, `gpu_compact_execz_nest`, `gpu_compact_backward_loops`, `gpu_compact_repeated_blocks`, `gpu_compact_far_jumps`, `gpu_compact_v_mul_lo_u32`, `gpu_compact_buffer_load_format_x`, `gpu_compact_native_wave64_form`, `gpu_compact_compute_dispatch`, `gpu_compact_memory_windows`, `gpu_compact_memory_windows_loop`, `gpu_compact_programs_with_four_windows`, `gpu_compact_exchange_repeated`, `gpu_compact_buffer_load_format_x_repeated`, `gpu_compact_endpgm_before_last_block`, `gpu_compact_sample_big_cs`. - Same head on the AMD Radeon iGPU of the 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace -- --test-threads=4`: **773 passed, 0 failed, 41 ignored**, no skips. - With `XCL_COMPACT_CS=1`, `cargo test -p xcl --lib -- gpu::` on both GPUs: 306 passed, 0 failed, 18 ignored. That says less than it looks: the recompiler GPU tests in `tests.rs` (via `runner.rs`) call `translate` directly, and only the `pso.rs`, `shader.rs` and `shaders.rs` paths go through `translate_routed`. So the env var does not put the existing GPU tests on the compact backend, and the compact backend is covered by `tests_compact.rs` only. A switch in `runner.rs` to route through `translate_as` would let the whole GPU test set run against it. **Not tested** - a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Author
Owner

@⁠IvyNotFound on GitHub · 2026-11-24 15:15 UTC · original

Retail world load on an RTX 5080 (32-lane waves) at 5e312d5: ActivateProbes takes the compact form and its pipeline is built in 24.2 s; on main it is not built within the run. ActivateRays falls back as described. No new crash: every run of both builds ends in the title's known ones at 140–160 s.

Tested

  • NVIDIA GeForce RTX 5080 16 GB, driver 621.24 (32.0.16.2124); Ryzen 7 7800X3D, 32 GB; Windows 11 25H2 (26200.9974); rustc 1.100.0 MSVC; DXC 1.9.2602.17. This PR's head 5e312d5 as is (base main 930e8b4), clean tree.
  • cargo test -p xcl --lib compact (debug): 22 passed, 0 failed; SKIPPED gpu_compact_native_wave64_form (no wave64).
  • Retail title 1.0.2.1 (the one of #505), release, scripts/smoke.ps1 -Seconds 240, XCL_PRESS_A_AT=15, XCL_PSO_WAIT_MS=50 (past the first ListX #101, into world loading), XCL_COMPACT_CS unset (auto). Two runs of the PR back to back, then one of main 930e8b4, same DXIL / driver-blob caches.
PR, run 1 PR, run 2 main
[SHADER] compact backend, compute program d122faa48eb0afdc: 88863 instructions, 723453 B HLSL 67.8 s – (translated-cache hit) –
15ec6daefb19a780 (ActivateRays): … need a 9975-word table (at most 8192) – translated as before 67.5 s 67.0 s –
compute PSO of 1 053 272 B DXIL (the compact ActivateProbes) not logged before the end 90.7 s, 24 215 ms in the driver –
largest compute DXIL built in the run 1 847 764 B 1 847 764 B 1 847 764 B
compute PSOs built without a driver blob / their driver time 229 / 352.8 s 224 / 31.7 s 223 / 143.1 s
GPU queue.Wait timeouts (#505) 21 23 20
last window with a present 112 s 110 s 102 s
end null write +0x2215c35 (#232) at 140.5 s 0xc0000409 +0x23cf683 ("GPU Loc Sig") at 160.6 s
peak commit 40 843 MB 42 412 MB 40 986 MB
  • On main no compute PSO of more than 1.85 MB of DXIL is built in the 240 s: the 29.75 MB form of 56c0cd3b82a00c6e never reaches the driver. With this PR its compact form is translated at 67.8 s in run 1. Its DXC result is in the cache for run 2, where the driver builds it in 24.2 s on this GPU (9.7 s in the description, on a 5070 Ti, from a new exe).
  • In run 1, no PSO of that size is logged before the run ended at 140.5 s: the driver build had not finished or not started by then. I did not log which.
  • How the runs end is the same set of title stops this title shows on main on this machine (#232, #505, 0xc0000409).

Not tested

  • the whole suite at this head
  • XCL_COMPACT_CS=1 (every compute program) and =0
  • whether the compact program's output is right in the title: nothing here presents a world frame either way (#505)

AI use

  • Claude Code, Claude Opus 5.5: ran the tests and the runs, read the logs and wrote this report.
**@⁠IvyNotFound** on GitHub · 2026-11-24 15:15 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7135711833) **Retail world load on an RTX 5080 (32-lane waves) at `5e312d5`: `ActivateProbes` takes the compact form and its pipeline is built in 24.2 s; on `main` it is not built within the run. `ActivateRays` falls back as described. No new crash: every run of both builds ends in the title's known ones at 140–160 s.** **Tested** - NVIDIA GeForce RTX 5080 16 GB, driver 621.24 (32.0.16.2124); Ryzen 7 7800X3D, 32 GB; Windows 11 25H2 (26200.9974); rustc 1.100.0 MSVC; DXC 1.9.2602.17. This PR's head `5e312d5` as is (base `main` `930e8b4`), clean tree. - `cargo test -p xcl --lib compact` (debug): 22 passed, 0 failed; `SKIPPED gpu_compact_native_wave64_form` (no wave64). - Retail title 1.0.2.1 (the one of #505), release, `scripts/smoke.ps1 -Seconds 240`, `XCL_PRESS_A_AT=15`, `XCL_PSO_WAIT_MS=50` (past the first `ListX #101`, into world loading), `XCL_COMPACT_CS` unset (auto). Two runs of the PR back to back, then one of `main` `930e8b4`, same DXIL / driver-blob caches. | | PR, run 1 | PR, run 2 | `main` | |---|---|---|---| | `[SHADER] compact backend, compute program d122faa48eb0afdc: 88863 instructions, 723453 B HLSL` | 67.8 s | – (translated-cache hit) | – | | `15ec6daefb19a780` (`ActivateRays`): `… need a 9975-word table (at most 8192) – translated as before` | 67.5 s | 67.0 s | – | | compute PSO of 1 053 272 B DXIL (the compact `ActivateProbes`) | not logged before the end | **90.7 s, 24 215 ms in the driver** | – | | largest compute DXIL built in the run | 1 847 764 B | 1 847 764 B | 1 847 764 B | | compute PSOs built without a driver blob / their driver time | 229 / 352.8 s | 224 / 31.7 s | 223 / 143.1 s | | `GPU queue.Wait` timeouts (#505) | 21 | 23 | 20 | | last window with a present | 112 s | 110 s | 102 s | | end | null write `+0x2215c35` (#232) at 140.5 s | `0xc0000409` | `+0x23cf683` ("GPU Loc Sig") at 160.6 s | | peak commit | 40 843 MB | 42 412 MB | 40 986 MB | - On `main` no compute PSO of more than 1.85 MB of DXIL is built in the 240 s: the 29.75 MB form of `56c0cd3b82a00c6e` never reaches the driver. With this PR its compact form is translated at 67.8 s in run 1. Its DXC result is in the cache for run 2, where the driver builds it in 24.2 s on this GPU (9.7 s in the description, on a 5070 Ti, from a new exe). - In run 1, no PSO of that size is logged before the run ended at 140.5 s: the driver build had not finished or not started by then. I did not log which. - How the runs end is the same set of title stops this title shows on `main` on this machine (#232, #505, `0xc0000409`). **Not tested** - the whole suite at this head - `XCL_COMPACT_CS=1` (every compute program) and `=0` - whether the compact program's output is right in the title: nothing here presents a world frame either way (#505) **AI use** - Claude Code, Claude Opus 5.5: ran the tests and the runs, read the logs and wrote this report.
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-24 15:20 UTC · original

@⁠brainhay5 thanks. 1 routes every compute program and is for tests and measurements, not for play. I've added your 84.2 s → 158.8 s numbers to the description, under that setting. auto stays the default.

AI use: Claude Code (Claude Opus 5.5) wrote this reply.

**@⁠CowboyBingus** on GitHub · 2026-11-24 15:20 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7135855536) @⁠brainhay5 thanks. `1` routes every compute program and is for tests and measurements, not for play. I've added your 84.2 s → 158.8 s numbers to the description, under that setting. `auto` stays the default. AI use: Claude Code (Claude Opus 5.5) wrote this reply.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 15:34 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 21 ignored.

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 15:34 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7136249676) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 21 ignored. Thanks!
Author
Owner

@⁠t4l03 on GitHub · 2026-11-24 15:35 UTC · original

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.

Run Pipeline creation, including helper startup Peak private commit
1 79.41 s 4.047 GiB
2 88.84 s 4.056 GiB

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 select instructions. This adds Ada data for the tradeoff between table size and override work. The two machines and encodings differ, so the timings are separate observations.

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 (gpt-6.2-sol) ran the measurements and wrote this report.

**@⁠t4l03** on GitHub · 2026-11-24 15:35 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7136293688) **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](https://github.com/ivall/xcl/issues/1269#issuecomment-7136099691). I reran the exact branch-free, factored DXIL from my [earlier #1269 report](https://github.com/ivall/xcl/issues/1269#issuecomment-7135372390), which stopped at 75 s. With a 150 s limit, **both runs created the pipeline and saved a 1,300,766-byte driver blob**. | Run | Pipeline creation, including helper startup | Peak private commit | |---|---:|---:| | 1 | 79.41 s | 4.047 GiB | | 2 | 88.84 s | 4.056 GiB | 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 `select` instructions. This adds Ada data for the tradeoff between table size and override work. The two machines and encodings differ, so the timings are separate observations. **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 (`gpt-6.2-sol`) ran the measurements and wrote this report.
Author
Owner

@⁠imnicho on GitHub · 2026-11-24 15:38 UTC · original

Test report at 5e312d5 on a small machine (16 GB RAM, 4 cores): the fallback of 15ec6daefb19a780 takes the title's process to its commit cap at the start of every run. With the table cap at 12,288 words it takes the compact form and the commit stays flat, but DXC does not finish that form in 14 minutes here.

Tested

  • NVIDIA GeForce RTX 5080 16 GB (driver 610.47, 32-lane waves), Intel Core i7-7700K (4 cores / 8 threads), 16 GB RAM, commit limit 64 GB, Windows 10 22H2 (19045), DXC 1.9.2602.17, rustc 1.100.0, release.
  • Tree: main 930e8b4 + #266 + #684 + #680 (heap windows on, so the HLSL sizes are a little below yours) + #968 + #1288, and this PR at 5e312d5 merged into it. One conflict, with #680 in gpu/recomp/mod.rs, resolved by hand (#680's window-flag normalisation at the start of translate and translate_as). Your newer head 6cefa5c differs from 5e312d5 in a test only.
  • The retail title of #505, XCL_NETWORK=0, scripted pad, binds waiting (no XCL_PSO_WAIT_MS), XCL_COMPACT_CS unset. Every run inside a job with a 50 GB commit cap. One DXIL / driver-blob cache folder, kept across the runs, in this order:
build runs process commit (XCL's memory line) end
without this PR one of 900 s, the first to get this far 30.6 GB until 800 s, then 31.4 → 51.1 GB between 810 and 870 s at the cap to the time limit; last dispatch at 830.8 s
without this PR the next 3 16.8 → 34.4 → 48.9 GB at 30 / 60 / 90 s 0xc0000409 at 95.6 to 99.5 s, before the title's world set-up, 3 of 3
this PR, 5e312d5 1 17.5 → 38.6 → 50.2 GB at 20 / 60 / 100 s 0xc0000409 at 125.8 s
this PR + MAX_TABLE_WORDS = 12288 (local) 420 s and 900 s 28.7 to 29.4 GB from 140 s to the end running at the limit in both; world set-up at 139.1 and 140.8 s
  • Without the PR, the three runs that end at the start have the preload's builds of the used programs going from the first seconds. Thread dumps at 50, 70 and 85 s of one of them show one xcl-dxc worker inside dxcompiler.dll and one xcl-pso-pre worker inside nvgpucomp64.dll, the same two each time. I did not separate DXC's share of the growth from the driver's.
  • With the PR as it is: d122faa48eb0afdc goes through the compact form (88,863 instructions, 718,281 B of HLSL, 983,404 B of DXIL). The driver built its pipeline in 75.6 s here, during the title's start with other builds beside it, and later runs take it from its blob. 15ec6daefb19a780 is refused ("19949 blocks of 11909 texts need a 9975-word table (at most 8192) – translated as before"), and the commit goes to the cap again; the process ends about half a minute later than without the PR.
  • With the cap at 12,288 words: 15ec6daefb19a780 goes through the compact form too (76,699 instructions, 5,249,095 B of HLSL) and the commit stays flat. But its DXIL never reached the cache: no …_c.bin entry for it after the 420 s run or after the 900 s run (884 s after its translation at 16.0 s), and the second run translated it again. So on this CPU DXC needs more than 14 minutes for that form with the title running beside it. The driver's time for it was not reached.

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

  • DXC and the driver alone (no title beside them) for the 12,288-word form.
  • Whether either compact program's output is right in the title: no frame of the world was presented in these runs (the title was still waiting for other pipelines at the end of each).
  • The same without #680; AMD; Windows 11.

AI use

  • Claude Code with Claude Fable 5.2 ran the builds and the runs on the machine named and wrote this report.
**@⁠imnicho** on GitHub · 2026-11-24 15:38 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7136355438) **Test report at `5e312d5` on a small machine (16 GB RAM, 4 cores): the fallback of `15ec6daefb19a780` takes the title's process to its commit cap at the start of every run. With the table cap at 12,288 words it takes the compact form and the commit stays flat, but DXC does not finish that form in 14 minutes here.** **Tested** - NVIDIA GeForce RTX 5080 16 GB (driver 610.47, 32-lane waves), Intel Core i7-7700K (4 cores / 8 threads), 16 GB RAM, commit limit 64 GB, Windows 10 22H2 (19045), DXC 1.9.2602.17, rustc 1.100.0, release. - Tree: `main` `930e8b4` + #266 + #684 + #680 (heap windows on, so the HLSL sizes are a little below yours) + #968 + #1288, and this PR at `5e312d5` merged into it. One conflict, with #680 in `gpu/recomp/mod.rs`, resolved by hand (#680's window-flag normalisation at the start of `translate` and `translate_as`). Your newer head `6cefa5c` differs from `5e312d5` in a test only. - The retail title of #505, `XCL_NETWORK=0`, scripted pad, binds waiting (no `XCL_PSO_WAIT_MS`), `XCL_COMPACT_CS` unset. Every run inside a job with a 50 GB commit cap. One DXIL / driver-blob cache folder, kept across the runs, in this order: | build | runs | process commit (XCL's memory line) | end | |---|---|---|---| | without this PR | one of 900 s, the first to get this far | 30.6 GB until 800 s, then 31.4 → 51.1 GB between 810 and 870 s | at the cap to the time limit; last dispatch at 830.8 s | | without this PR | the next 3 | 16.8 → 34.4 → 48.9 GB at 30 / 60 / 90 s | `0xc0000409` at 95.6 to 99.5 s, before the title's world set-up, 3 of 3 | | this PR, `5e312d5` | 1 | 17.5 → 38.6 → 50.2 GB at 20 / 60 / 100 s | `0xc0000409` at 125.8 s | | this PR + `MAX_TABLE_WORDS = 12288` (local) | 420 s and 900 s | 28.7 to 29.4 GB from 140 s to the end | running at the limit in both; world set-up at 139.1 and 140.8 s | - Without the PR, the three runs that end at the start have the preload's builds of the used programs going from the first seconds. Thread dumps at 50, 70 and 85 s of one of them show one `xcl-dxc` worker inside `dxcompiler.dll` and one `xcl-pso-pre` worker inside `nvgpucomp64.dll`, the same two each time. I did not separate DXC's share of the growth from the driver's. - With the PR as it is: `d122faa48eb0afdc` goes through the compact form (88,863 instructions, 718,281 B of HLSL, 983,404 B of DXIL). The driver built its pipeline in 75.6 s here, during the title's start with other builds beside it, and later runs take it from its blob. `15ec6daefb19a780` is refused ("19949 blocks of 11909 texts need a 9975-word table (at most 8192) – translated as before"), and the commit goes to the cap again; the process ends about half a minute later than without the PR. - With the cap at 12,288 words: `15ec6daefb19a780` goes through the compact form too (76,699 instructions, 5,249,095 B of HLSL) and the commit stays flat. But its DXIL never reached the cache: no `…_c.bin` entry for it after the 420 s run or after the 900 s run (884 s after its translation at 16.0 s), and the second run translated it again. So on this CPU DXC needs more than 14 minutes for that form with the title running beside it. The driver's time for it was not reached. 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** - DXC and the driver alone (no title beside them) for the 12,288-word form. - Whether either compact program's output is right in the title: no frame of the world was presented in these runs (the title was still waiting for other pipelines at the end of each). - The same without #680; AMD; Windows 11. **AI use** - Claude Code with Claude Fable 5.2 ran the builds and the runs on the machine named and wrote this report.
Author
Owner

@⁠oni-swr on GitHub · 2026-11-24 15:39 UTC · original

AMD dedicated GPU (RX 7800 XT, native wave64) at 5e312d5: full suite green; the compact ActivateProbes and ActivateProbesTarget build in the AMD driver, but in 439 s and 342 s with 19–23 GB of commit; the old forms fail with E_OUTOFMEMORY. Counts and timings only. This adds the AMD driver side next to @⁠Pipodi's RTX 4090 numbers on #1269, and the per-program times for the programs auto routes, which the XCL_COMPACT_CS=1 run on an RX 9070 in #1269 did not reach.

Tested

  • AMD Radeon RX 7800 XT 16 GB (RDNA3, native 64-lane waves, driver 32.0.31035.1003), Ryzen 7 5700X3D, 64 GB RAM, Windows 11 26200, Rust 1.100.0 MSVC, DXC 1.8.2502.11 (Windows SDK 10.0.26100.0). PR head 5e312d5 (on main 930e8b4), clean tree, its own worktree and its own CARGO_TARGET_DIR. The PR's head is now 6cefa5c; it differs from 5e312d5 in one test (only_compute_goes_to_the_compact_backend), and I did not rerun on it.
  • cargo test --workspace -- --test-threads=4 (debug), twice (the second with --nocapture): 773 passed, 0 failed, 41 ignored both times, no SKIPPED line. gpu_compact_native_wave64_form ran and passed.
  • The three screen-probe programs, one at a time, with @⁠Pipodi's method: each record alone in its own folder, a new empty XCL_DXIL_CACHE, then xcl shaders <folder> --precompile --only cs (DXC), then the same with --pipelines (cold driver build), then --pipelines again (from the blob). Release, one process at a time, wall time of each process, peak private commit polled every 0.5 s, one run each:
program form HLSL DXC DXIL cold --pipelines run peak commit from the blob
ActivateProbes compact, native wave64 716,691 B 9.3 s 867,356 B 439.1 s, made 23.23 GB 0.6 s
ActivateProbesTarget compact, native wave64 659,094 B 8.2 s 774,200 B 342.1 s, made 19.24 GB 0.6 s
ActivateRays (15ec6daefb19a780) refused: 19949 blocks of 11909 texts need a 9975-word table (at most 8192) – translated as before – stopped, see below – not run 28.06 GB at the stop –

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.

  • ActivateRays' fallback (the old form, about 150 MB of HLSL) went into DXC and was stopped 33 s in, at 28.06 GB private commit and 3.03 GB of system commit left, by a guard of mine (floor 4 GB). No DXC time and no driver run for it.
  • gpu_compact_sample_big_cs (release, XCL_SAMPLE_BIG_CS set to each program's code, native wave64, no split), on the old form (translate):
program HLSL (translate / compact) DXC DXIL CreateComputePipelineState
ActivateProbes 29,605,161 / 690,720 B 111.6 s 22,239,220 B E_OUTOFMEMORY (0x8007000E), about 110 s later
ActivateProbesTarget 29,530,437 / 636,447 B 111.1 s 22,052,376 B E_OUTOFMEMORY (0x8007000E), about 100 s later
ActivateRays translate_compact refuses: 19832 blocks of 11829 texts need a 9916-word table (at most 8192) – – –

On this adapter that test panics at tests_compact.rs:1163 on the old form's E_OUTOFMEMORY, and at tests_compact.rs:91 on ActivateRays' refusal, before it compares or times the compact form. On a driver that builds the old form the test gets further; here it does not, so it shows nothing about the compact form on AMD. The compact form is covered by the two cold builds in the table above.

What it says

  • On AMD the compact forms of the two screen-probe programs build and the blob works (0.6 s), but a first build takes 5.7 to 7.3 minutes and 19–23 GB of commit, for a title whose watchdog fires about 30 s after its main thread stops. That is the same direction as @⁠HKEY-Funk-Machine's RX 9070 run (about 2x per PSO with XCL_COMPACT_CS=1) and @⁠Sr-0w's RX 7800 XT variant table, at a much larger factor, on the programs auto routes.
  • Whether the auto default helps or hurts a world load on AMD is not answered here: no title run reached these programs on this card.

Not tested

  • A title run, the smoke run (scripts/smoke.ps1), and a full-pack --pipelines pass.
  • XCL_COMPACT_CS=0 and =1 in the title; DXC 1.9.x; repeat runs of the timings (one run each).
  • Whether the compact programs' output matches translate on the GPU for the retail programs.
  • Any other AMD generation; ActivateRays' compact form (cap raised or shared targets, @⁠Pipodi's local change); 6cefa5c.

AI use

  • Claude Code, Claude Opus 5.5: ran the suite and the gpu_compact_sample_big_cs runs, and wrote the timing script.
  • Claude Code, Claude Sonnet 5.5: ran the timing script, checked the three threads for AMD reports, and wrote this comment.
**@⁠oni-swr** on GitHub · 2026-11-24 15:39 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7136396241) **AMD dedicated GPU (RX 7800 XT, native wave64) at `5e312d5`: full suite green; the compact `ActivateProbes` and `ActivateProbesTarget` build in the AMD driver, but in 439 s and 342 s with 19–23 GB of commit; the old forms fail with `E_OUTOFMEMORY`.** Counts and timings only. This adds the AMD driver side next to @⁠Pipodi's RTX 4090 numbers on #1269, and the per-program times for the programs `auto` routes, which the `XCL_COMPACT_CS=1` run on an RX 9070 in #1269 did not reach. **Tested** - AMD Radeon RX 7800 XT 16 GB (RDNA3, native 64-lane waves, driver 32.0.31035.1003), Ryzen 7 5700X3D, 64 GB RAM, Windows 11 26200, Rust 1.100.0 MSVC, DXC 1.8.2502.11 (Windows SDK 10.0.26100.0). PR head `5e312d5` (on `main` `930e8b4`), clean tree, its own worktree and its own `CARGO_TARGET_DIR`. The PR's head is now `6cefa5c`; it differs from `5e312d5` in one test (`only_compute_goes_to_the_compact_backend`), and I did not rerun on it. - `cargo test --workspace -- --test-threads=4` (debug), twice (the second with `--nocapture`): **773 passed, 0 failed, 41 ignored** both times, no `SKIPPED` line. `gpu_compact_native_wave64_form` ran and passed. - The three screen-probe programs, one at a time, with @⁠Pipodi's method: each record alone in its own folder, a new empty `XCL_DXIL_CACHE`, then `xcl shaders <folder> --precompile --only cs` (DXC), then the same with `--pipelines` (cold driver build), then `--pipelines` again (from the blob). Release, one process at a time, wall time of each process, peak private commit polled every 0.5 s, one run each: | program | form | HLSL | DXC | DXIL | cold `--pipelines` run | peak commit | from the blob | |---|---|---|---|---|---|---|---| | ActivateProbes | compact, native wave64 | 716,691 B | 9.3 s | 867,356 B | **439.1 s**, made | 23.23 GB | 0.6 s | | ActivateProbesTarget | compact, native wave64 | 659,094 B | 8.2 s | 774,200 B | **342.1 s**, made | 19.24 GB | 0.6 s | | ActivateRays (`15ec6daefb19a780`) | refused: `19949 blocks of 11909 texts need a 9975-word table (at most 8192) – translated as before` | – | stopped, see below | – | not run | 28.06 GB at the stop | – | 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. - ActivateRays' fallback (the old form, about 150 MB of HLSL) went into DXC and was stopped 33 s in, at 28.06 GB private commit and 3.03 GB of system commit left, by a guard of mine (floor 4 GB). No DXC time and no driver run for it. - `gpu_compact_sample_big_cs` (release, `XCL_SAMPLE_BIG_CS` set to each program's code, native wave64, no split), on the old form (`translate`): | program | HLSL (`translate` / compact) | DXC | DXIL | `CreateComputePipelineState` | |---|---|---|---|---| | ActivateProbes | 29,605,161 / 690,720 B | 111.6 s | 22,239,220 B | `E_OUTOFMEMORY` (0x8007000E), about 110 s later | | ActivateProbesTarget | 29,530,437 / 636,447 B | 111.1 s | 22,052,376 B | `E_OUTOFMEMORY` (0x8007000E), about 100 s later | | ActivateRays | `translate_compact` refuses: `19832 blocks of 11829 texts need a 9916-word table (at most 8192)` | – | – | – | On this adapter that test panics at `tests_compact.rs:1163` on the old form's `E_OUTOFMEMORY`, and at `tests_compact.rs:91` on ActivateRays' refusal, before it compares or times the compact form. On a driver that builds the old form the test gets further; here it does not, so it shows nothing about the compact form on AMD. The compact form is covered by the two cold builds in the table above. **What it says** - On AMD the compact forms of the two screen-probe programs build and the blob works (0.6 s), but a first build takes 5.7 to 7.3 minutes and 19–23 GB of commit, for a title whose watchdog fires about 30 s after its main thread stops. That is the same direction as @⁠HKEY-Funk-Machine's RX 9070 run (about 2x per PSO with `XCL_COMPACT_CS=1`) and @⁠Sr-0w's RX 7800 XT variant table, at a much larger factor, on the programs `auto` routes. - Whether the `auto` default helps or hurts a world load on AMD is not answered here: no title run reached these programs on this card. **Not tested** - A title run, the smoke run (`scripts/smoke.ps1`), and a full-pack `--pipelines` pass. - `XCL_COMPACT_CS=0` and `=1` in the title; DXC 1.9.x; repeat runs of the timings (one run each). - Whether the compact programs' output matches `translate` on the GPU for the retail programs. - Any other AMD generation; ActivateRays' compact form (cap raised or shared targets, @⁠Pipodi's local change); `6cefa5c`. **AI use** - Claude Code, Claude Opus 5.5: ran the suite and the `gpu_compact_sample_big_cs` runs, and wrote the timing script. - Claude Code, Claude Sonnet 5.5: ran the timing script, checked the three threads for AMD reports, and wrote this comment.
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-24 15:43 UTC · original

Thanks, @⁠pvfreis (review). New head: 6cefa5c, the same single commit on top of #1315, amended.

  1. only_compute_goes_to_the_compact_backend now uses a program with a branch (S_CBRANCH_SCC1 to the next instruction, then S_ENDPGM). For Mode::Kernel and Mode::Compute it asserts that compact::translate_compact gives a complete translation whose HLSL differs from translate's, and that translate_as(.., CompactCs::Always) returns translate's HLSL for Mode::Kernel and the compact HLSL for Mode::Compute. With matches!(opt.mode, Mode::Compute(_)) removed from translate_as (locally, not pushed), the test fails (assertion `left == right` failed at mod.rs:1594); with it, the test passes.
  2. The commit message no longer says the commit adds a stub recomp::compact.
  3. #1321: git merge-tree of 6cefa5c with #1321's head 0936337 conflicts in crates/xcl/src/gpu/recomp/mod.rs only, in one block: #1321 adds let program = code; as the first line of translate, at the lines that #1315 moves into prepare(). Keeping this PR's side and adding let program = code; as the first line of translate resolves it. The resulting mod.rs is identical to the one in our local merge of 5e312d5 with #1321's earlier head 156b0de (in our local integration tree 355c727, not pushed), apart from this push's test change. 0936337 differs from 156b0de only in tests.rs.

Full suite on 6cefa5c (cargo test --workspace --no-fail-fast -- --test-threads=4): 772 passed, 1 failed, 41 ignored, of the passed 3 SKIPPED (no wave64). The failure is xmem_virtual_query_marks_cpu_readable_memory (kernelx.rs:2070), the one listed in the description. The description's Tested line and regression run are updated to 6cefa5c.

AI use: Claude Code (Claude Opus 5.5) wrote this reply.

**@⁠CowboyBingus** on GitHub · 2026-11-24 15:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7136501610) Thanks, @⁠pvfreis ([review](https://github.com/ivall/xcl/pull/1316#pullrequestreview-6042299825)). New head: `6cefa5c`, the same single commit on top of #1315, amended. 1. `only_compute_goes_to_the_compact_backend` now uses a program with a branch (`S_CBRANCH_SCC1` to the next instruction, then `S_ENDPGM`). For `Mode::Kernel` and `Mode::Compute` it asserts that `compact::translate_compact` gives a complete translation whose HLSL differs from `translate`'s, and that `translate_as(.., CompactCs::Always)` returns `translate`'s HLSL for `Mode::Kernel` and the compact HLSL for `Mode::Compute`. With `matches!(opt.mode, Mode::Compute(_))` removed from `translate_as` (locally, not pushed), the test fails (``assertion `left == right` failed`` at `mod.rs:1594`); with it, the test passes. 2. The commit message no longer says the commit adds a stub `recomp::compact`. 3. #1321: `git merge-tree` of `6cefa5c` with #1321's head `0936337` conflicts in `crates/xcl/src/gpu/recomp/mod.rs` only, in one block: #1321 adds `let program = code;` as the first line of `translate`, at the lines that #1315 moves into `prepare()`. Keeping this PR's side and adding `let program = code;` as the first line of `translate` resolves it. The resulting `mod.rs` is identical to the one in our local merge of `5e312d5` with #1321's earlier head `156b0de` (in our local integration tree `355c727`, not pushed), apart from this push's test change. `0936337` differs from `156b0de` only in `tests.rs`. Full suite on `6cefa5c` (`cargo test --workspace --no-fail-fast -- --test-threads=4`): 772 passed, 1 failed, 41 ignored, of the passed 3 SKIPPED (no wave64). The failure is `xmem_virtual_query_marks_cpu_readable_memory` (`kernelx.rs:2070`), the one listed in the description. The description's Tested line and regression run are updated to `6cefa5c`. AI use: Claude Code (Claude Opus 5.5) wrote this reply.
Author
Owner

@⁠Anon64 on GitHub · 2026-11-24 15:45 UTC · original

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 6cefa5c (with #1315, on main 930e8b4), release, XCL_COMPACT_CS unset (auto), XCL_NETWORK=0, A pressed every 4 s from 20 s, 200 s, warm DXIL and driver caches. Compared with a run of #253's head on the same main (f67e35a; #253 only changes eh.rs), same setup.

main 930e8b4 (+ #253) this PR
presents per 2 s drop below 20 58 s 58 s
presents 0 from 78 s 74 s
title's watchdog (+0x23cf683) 105 s 102 s
process commit at 80 / 90 / 100 s 31.5 / 31.6 / 32.1 GB 30.2 / 44.4 / 49.9 GB
peak commit (smoke.ps1) 32.2 GB 54.6 GB
  • d122faa48eb0afdc took the compact form at 5.9 s (88 863 instructions, 723 453 B HLSL); its pipeline was built at 56.0 s: 1 053 272 B DXIL, 36.5 s in the driver.
  • 15ec6daefb19a780 fell back at 71.9 s (9 975-word table, at most 8 192), as in your run.
  • Other compute builds over 3 s: 395 KB in 7.6 s, 322 KB in 3.5 s. 394 compute PSOs in all.

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 main stays flat; I have not found which thread allocates it. One run each.

Written with Claude Code (Claude Opus 5.5) from runs on this machine.

**@⁠Anon64** on GitHub · 2026-11-24 15:45 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7136552343) 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 `6cefa5c` (with #1315, on `main` `930e8b4`), release, `XCL_COMPACT_CS` unset (`auto`), `XCL_NETWORK=0`, A pressed every 4 s from 20 s, 200 s, warm DXIL and driver caches. Compared with a run of #253's head on the same `main` (`f67e35a`; #253 only changes `eh.rs`), same setup. | | `main` `930e8b4` (+ #253) | this PR | |---|---|---| | presents per 2 s drop below 20 | 58 s | 58 s | | presents 0 from | 78 s | 74 s | | title's watchdog (`+0x23cf683`) | 105 s | 102 s | | process commit at 80 / 90 / 100 s | 31.5 / 31.6 / 32.1 GB | 30.2 / 44.4 / 49.9 GB | | peak commit (`smoke.ps1`) | 32.2 GB | 54.6 GB | - `d122faa48eb0afdc` took the compact form at 5.9 s (88 863 instructions, 723 453 B HLSL); its pipeline was built at 56.0 s: 1 053 272 B DXIL, **36.5 s** in the driver. - `15ec6daefb19a780` fell back at 71.9 s (9 975-word table, at most 8 192), as in your run. - Other compute builds over 3 s: 395 KB in 7.6 s, 322 KB in 3.5 s. 394 compute PSOs in all. 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 `main` stays flat; I have not found which thread allocates it. One run each. Written with Claude Code (Claude Opus 5.5) from runs on this machine.
Author
Owner

@⁠claudetools-gh on GitHub · 2026-11-24 15:46 UTC · original

A data point for the routing rule here: forcing the compact form on the title's mid-size compute programs (XCL_COMPACT_CS=1) does not help them, so the auto rule looks right.

Setup: RTX 5070 Ti (driver 621.01), Ryzen 7 9700X, Windows 11 26300, release. main 47efa2e plus #1315/#1316 and other local PRs. The test is gpu_compact_sample_big_cs with XCL_SAMPLE_BIG_CS set to programs from the retail 1.0.2.1 pack. The program code was dumped locally and is not attached.

program instructions HLSL translate → compact DXIL translate → compact DXC translate / compact create + run translate / compact
a90b92233fcb9719 (wave32) 10,315 2.31 MB → 1.18 MB 474 KB → 987 KB 6.7 s / 5.2 s 4.64 s / 4.82 s
e666f4964e13c649 (wave32) 9,580 2.37 MB → 1.10 MB 428 KB → 921 KB 3.8 s / 4.2 s 3.71 s / 4.64 s
  • At this size the compact form halves the HLSL but roughly doubles the DXIL, and pipeline creation plus the run is not faster. Results matched between the two forms; the test passed.
  • A third program, ddee0954b55bc286 (12,638 instructions, wave64 split), failed in the harness's run of the plain translate form, before the compact form was tried. I have not looked into why.
  • A forced 15-minute xcl pipelines pass (XCL_COMPACT_CS=1) routed 116 programs. Only the small ones reached the driver (55–205 KB DXIL, 0.3–2.7 s). The large ones were still in DXC when the pass was stopped.

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.

**@⁠claudetools-gh** on GitHub · 2026-11-24 15:46 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7136585368) A data point for the routing rule here: forcing the compact form on the title's mid-size compute programs (`XCL_COMPACT_CS=1`) does not help them, so the `auto` rule looks right. **Setup:** RTX 5070 Ti (driver 621.01), Ryzen 7 9700X, Windows 11 26300, release. `main` 47efa2e plus #1315/#1316 and other local PRs. The test is `gpu_compact_sample_big_cs` with `XCL_SAMPLE_BIG_CS` set to programs from the retail 1.0.2.1 pack. The program code was dumped locally and is not attached. | program | instructions | HLSL translate → compact | DXIL translate → compact | DXC translate / compact | create + run translate / compact | |---|---|---|---|---|---| | `a90b92233fcb9719` (wave32) | 10,315 | 2.31 MB → 1.18 MB | 474 KB → **987 KB** | 6.7 s / 5.2 s | 4.64 s / 4.82 s | | `e666f4964e13c649` (wave32) | 9,580 | 2.37 MB → 1.10 MB | 428 KB → **921 KB** | 3.8 s / 4.2 s | 3.71 s / 4.64 s | - At this size the compact form halves the HLSL but roughly **doubles the DXIL**, and pipeline creation plus the run is not faster. Results matched between the two forms; the test passed. - A third program, `ddee0954b55bc286` (12,638 instructions, wave64 split), failed in the harness's run of the plain `translate` form, before the compact form was tried. I have not looked into why. - A forced 15-minute `xcl pipelines` pass (`XCL_COMPACT_CS=1`) routed 116 programs. Only the small ones reached the driver (55–205 KB DXIL, 0.3–2.7 s). The large ones were still in DXC when the pass was stopped. 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.
Author
Owner

@⁠Tjabooo on GitHub · 2026-11-24 15:49 UTC · original

AMD on Linux, since the reports so far are NVIDIA: 5e312d5, RX 9070 XT (RDNA4), RADV / Mesa 26.2.6, Wine 11.21, vkd3d-proton v3.1 (with #257's patch), DXC 2026_09_29, cross-built for x86_64-pc-windows-gnu, debug.

  • cargo test -p xcl --lib -- tests_compact --test-threads=1: 16 passed, 0 failed. All the GPU A/B tests of the compact form, including gpu_compact_backward_loops and gpu_compact_far_jumps, pass through dxil-spirv on RADV.
  • The full lib suite can't finish there, and not because of this PR: jumps_to_outer_loop_heads_are_structured (from main's b8b1f49) crashes the test process in dxil-spirv on main 930e8b4 as well. Details in #1425. Up to that point this branch fails only the three tests that main fails on this machine (gpu_f64_roots, gpu_f64_math_random (#530) and gpu_nonfused_mad_and_mac_prevent_fma_contraction (#676)).

Not tested: XCL_COMPACT_CS=1 over the whole suite (blocked by the same crash), a title. No game data. AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠Tjabooo** on GitHub · 2026-11-24 15:49 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7136665484) AMD on Linux, since the reports so far are NVIDIA: `5e312d5`, RX 9070 XT (RDNA4), RADV / Mesa 26.2.6, Wine 11.21, vkd3d-proton v3.1 (with #257's patch), DXC 2026_09_29, cross-built for `x86_64-pc-windows-gnu`, debug. - `cargo test -p xcl --lib -- tests_compact --test-threads=1`: **16 passed, 0 failed**. All the GPU A/B tests of the compact form, including `gpu_compact_backward_loops` and `gpu_compact_far_jumps`, pass through dxil-spirv on RADV. - The full lib suite can't finish there, and not because of this PR: `jumps_to_outer_loop_heads_are_structured` (from `main`'s b8b1f49) crashes the test process in dxil-spirv on `main` `930e8b4` as well. Details in #1425. Up to that point this branch fails only the three tests that `main` fails on this machine (`gpu_f64_roots`, `gpu_f64_math_random` (#530) and `gpu_nonfused_mad_and_mac_prevent_fma_contraction` (#676)). Not tested: `XCL_COMPACT_CS=1` over the whole suite (blocked by the same crash), a title. No game data. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@⁠IvovdBruggen on GitHub · 2026-11-24 15:51 UTC · original

RTX 3080 10 GB on head 6cefa5c (the current head; earlier reports were on 5e312d5): 773 passed, 0 failed, 41 ignored; smoke run equal to main with warm caches

Tested

  • Head 6cefa5c342fe71a88cd64153d81e755683887fb3 (base main 930e8b4), no local changes
  • NVIDIA GeForce RTX 3080 10 GB, driver 617.42 (32-lane waves only); AMD Ryzen 5 5600, 32 GB RAM; Windows 11 IoT Enterprise LTSC build 26100
  • Rust 1.100.0 stable-x86_64-pc-windows-msvc, MSVC 14.52.37025, DXC 1.8.2502.11 (Windows SDK 10.0.26100.0)
  • cargo test --workspace --no-fail-fast -- --test-threads=4 (debug): 773 passed, 0 failed, 41 ignored (lib tests 729 / 0 / 21)
  • SKIPPED (no wave64): gpu_compact_native_wave64_form, gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware

Regression run
scripts/smoke.ps1 -Game <game folder> (release builds, 60 s, menus, no input), both with warm caches:

main:

xcl-smoke v1
commit: 930e8b49c1c2ec683d22c724a398b39111cd0e56
gpu: NVIDIA GeForce RTX 3080
title: Retail Game.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1117 (PresentX 1117)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15302 MB

this PR:

xcl-smoke v1
commit: 6cefa5c342fe71a88cd64153d81e755683887fb3
gpu: NVIDIA GeForce RTX 3080
title: Retail Game.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1114 (PresentX 1114)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15313 MB
  • The first run of this PR's build was slower (857 frames, 32–39 presents per 2 s at the end) because the changed translator sources give it a new translated-cache directory. The second run matches main.
  • The log has no compact backend line: in 60 s of menus the title did not reach a program this PR routes.

Review note (found with an AI tool, checked in the code): translate_as falls back to translate only when the compact translation errors or is incomplete. If DXC or CreateComputePipelineState later rejects the compact HLSL, compile_console_shader (pso.rs:262 → :292) has no retry with the normal form, and that program gets the stand-in CS. With MAX_TABLE_WORDS measured on one adapter, a retry in the normal form on rejection may be worth considering.

Not tested

  • A title run that reaches ActivateProbes / ActivateRays
  • XCL_COMPACT_CS=1
  • AMD / wave64; Linux / Wine
  • Tests on game data: no XCL_SAMPLE_* set

AI use

  • Claude Code: Claude Fable 5.2 ran the main build and tests; Claude Opus 5.5 ran this PR's tests, all smoke runs and the review, and wrote this report. All results are from runs on the machine above.
**@⁠IvovdBruggen** on GitHub · 2026-11-24 15:51 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7136726090) **RTX 3080 10 GB on head `6cefa5c` (the current head; earlier reports were on `5e312d5`): 773 passed, 0 failed, 41 ignored; smoke run equal to `main` with warm caches** **Tested** - Head `6cefa5c342fe71a88cd64153d81e755683887fb3` (base `main` `930e8b4`), no local changes - NVIDIA GeForce RTX 3080 10 GB, driver 617.42 (32-lane waves only); AMD Ryzen 5 5600, 32 GB RAM; Windows 11 IoT Enterprise LTSC build 26100 - Rust 1.100.0 `stable-x86_64-pc-windows-msvc`, MSVC 14.52.37025, DXC 1.8.2502.11 (Windows SDK 10.0.26100.0) - `cargo test --workspace --no-fail-fast -- --test-threads=4` (debug): 773 passed, 0 failed, 41 ignored (lib tests 729 / 0 / 21) - SKIPPED (no wave64): `gpu_compact_native_wave64_form`, `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` **Regression run** `scripts/smoke.ps1 -Game <game folder>` (release builds, 60 s, menus, no input), both with warm caches: main: ``` xcl-smoke v1 commit: 930e8b49c1c2ec683d22c724a398b39111cd0e56 gpu: NVIDIA GeForce RTX 3080 title: Retail Game.Xbox.v1.0.2.1 seconds: 60 exit: 0x0 frames shown: 1117 (PresentX 1117) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15302 MB ``` this PR: ``` xcl-smoke v1 commit: 6cefa5c342fe71a88cd64153d81e755683887fb3 gpu: NVIDIA GeForce RTX 3080 title: Retail Game.Xbox.v1.0.2.1 seconds: 60 exit: 0x0 frames shown: 1114 (PresentX 1114) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15313 MB ``` - The first run of this PR's build was slower (857 frames, 32–39 presents per 2 s at the end) because the changed translator sources give it a new translated-cache directory. The second run matches `main`. - The log has no `compact backend` line: in 60 s of menus the title did not reach a program this PR routes. **Review note** (found with an AI tool, checked in the code): `translate_as` falls back to `translate` only when the compact translation errors or is incomplete. If DXC or `CreateComputePipelineState` later rejects the compact HLSL, `compile_console_shader` (`pso.rs:262` → `:292`) has no retry with the normal form, and that program gets the stand-in CS. With `MAX_TABLE_WORDS` measured on one adapter, a retry in the normal form on rejection may be worth considering. **Not tested** - A title run that reaches `ActivateProbes` / `ActivateRays` - `XCL_COMPACT_CS=1` - AMD / wave64; Linux / Wine - Tests on game data: no `XCL_SAMPLE_*` set **AI use** - Claude Code: Claude Fable 5.2 ran the `main` build and tests; Claude Opus 5.5 ran this PR's tests, all smoke runs and the review, and wrote this report. All results are from runs on the machine above.
Author
Owner

@⁠pvfreis on GitHub · 2026-11-24 15:51 UTC · original

Thanks. Checked at 6cefa5c (read only): only_compute_goes_to_the_compact_backend now uses a branching program and asserts the compact text differs and that only Mode::Compute is routed (mod.rs:1581-1595), so dropping the mode check fails it; the commit message no longer mentions the stub. Both points are fixed.

Reply by Claude Code (Claude Opus 5.5); checked by a person before posting.

**@⁠pvfreis** on GitHub · 2026-11-24 15:51 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7136736447) Thanks. Checked at `6cefa5c` (read only): `only_compute_goes_to_the_compact_backend` now uses a branching program and asserts the compact text differs and that only `Mode::Compute` is routed (`mod.rs:1581-1595`), so dropping the mode check fails it; the commit message no longer mentions the stub. Both points are fixed. Reply by Claude Code (Claude Opus 5.5); checked by a person before posting.
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-24 15:52 UTC · original

@⁠Anon64 thanks for the A/B (your report). Some numbers on 15ec6daefb19a780, and a request.

  • 15ec6daefb19a780 fell back at 71.9 s in your run (9 975-word table, at most 8 192) and was translated by translate. It is ActivateRays in IvyNotFound's table, and this PR's description gives the same table size and cap for ActivateRays (… need a 9975-word table (at most 8192)).
  • For CS_ScreenProbes_ActivateRays, #1321's description gives 148.5 MB of HLSL on main and 13.8 MB with #1321.
  • @⁠dervoxx ran DXC 1.8.2502.11 (-O0, HLSL with four memory windows, wave32) on that program with a 6 GiB process commit cap (report): on 930e8b4, 154,575,599 B of HLSL ran out of memory at the cap and made no DXIL; on #1321's 156b0de, 15,359,988 B compiled in 67.7 s with a 2.8 GB peak commit.

Could you rerun 6cefa5c with #1321 (head 0936337) merged on top, with the same setup, and post the same rows (process commit at 80 / 90 / 100 s, peak commit)? The merge conflicts in crates/xcl/src/gpu/recomp/mod.rs in one block: keep this PR's side and add let program = code; as the first line of translate (details).

AI use: Claude Code (Claude Opus 5.5) wrote this reply.

**@⁠CowboyBingus** on GitHub · 2026-11-24 15:52 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7136763751) @⁠Anon64 thanks for the A/B ([your report](https://github.com/ivall/xcl/pull/1316#issuecomment-7136552343)). Some numbers on `15ec6daefb19a780`, and a request. - `15ec6daefb19a780` fell back at 71.9 s in your run (9 975-word table, at most 8 192) and was translated by `translate`. It is `ActivateRays` in [IvyNotFound's table](https://github.com/ivall/xcl/pull/1316#issuecomment-7135711833), and this PR's description gives the same table size and cap for `ActivateRays` (`… need a 9975-word table (at most 8192)`). - For `CS_ScreenProbes_ActivateRays`, [#1321](https://github.com/ivall/xcl/pull/1321)'s description gives 148.5 MB of HLSL on `main` and 13.8 MB with #1321. - @⁠dervoxx ran DXC 1.8.2502.11 (`-O0`, HLSL with four memory windows, wave32) on that program with a 6 GiB process commit cap ([report](https://github.com/ivall/xcl/pull/1321#issuecomment-7135188221)): on `930e8b4`, 154,575,599 B of HLSL ran out of memory at the cap and made no DXIL; on #1321's `156b0de`, 15,359,988 B compiled in 67.7 s with a 2.8 GB peak commit. Could you rerun `6cefa5c` with #1321 (head `0936337`) merged on top, with the same setup, and post the same rows (process commit at 80 / 90 / 100 s, peak commit)? The merge conflicts in `crates/xcl/src/gpu/recomp/mod.rs` in one block: keep this PR's side and add `let program = code;` as the first line of `translate` ([details](https://github.com/ivall/xcl/pull/1316#issuecomment-7136501610)). AI use: Claude Code (Claude Opus 5.5) wrote this reply.
Author
Owner

@⁠mastrr9 on GitHub · 2026-11-24 16:04 UTC · original

Verified head 6cefa5c342fe71a88cd64153d81e755683887fb3 on Windows 11 / NVIDIA RTX 5080 (wave32 / split-wave64, DXC 1.9.2602.17, Rust MSVC, debug build, clean worktree):

  • cargo test -p xcl --lib -- gpu::recomp --test-threads=4: 211 passed, 0 failed, 18 ignored (0 new compiler warnings).

Not tested: AMD native wave64, full workspace, retail smoke (scripts/smoke.ps1).
AI use: T3 Code (Antigravity / Claude Sonnet 5.5) ran the build and tests on our RTX 5080 and drafted this report.

**@⁠mastrr9** on GitHub · 2026-11-24 16:04 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7137086693) Verified head `6cefa5c342fe71a88cd64153d81e755683887fb3` on Windows 11 / NVIDIA RTX 5080 (wave32 / split-wave64, DXC 1.9.2602.17, Rust MSVC, debug build, clean worktree): - `cargo test -p xcl --lib -- gpu::recomp --test-threads=4`: **211 passed, 0 failed, 18 ignored** (0 new compiler warnings). **Not tested:** AMD native wave64, full workspace, retail smoke (`scripts/smoke.ps1`). **AI use:** T3 Code (Antigravity / Claude Sonnet 5.5) ran the build and tests on our RTX 5080 and drafted this report.
Author
Owner

@⁠Creaa on GitHub · 2026-11-24 16:10 UTC · original

Test report: ee904f1 (tests) and 5e312d5 (measurements) on an RTX 4070 12 GB (split wave64 form).

Setup: RTX 4070 12 GB (driver 617.14), i7-13700F, 32 GB RAM, Windows 11 build 26300, Rust 1.100.0, DXC 1.9.2602.17, release for the measurements.

  • cargo test --workspace -- --test-threads=4 (debug), on both 5e312d5 and ee904f1: 773 passed, 0 failed, 41 ignored. SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware, gpu_compact_native_wave64_form (no wave64).
  • Measured on 5e312d5 (not rerun on ee904f1, whose mod.rs routing change I did not measure). ActivateProbes and ActivateProbesTarget, xcl shaders <folder> --precompile --only cs, XCL_COMPACT_CS unset, 4 windows, split wave64: both took the compact form (88863 instructions, 723453 B HLSL / 88445 instructions, 665554 B HLSL), 2 009 528 B of DXIL together, translate + DXC 28.8 s for both.
  • Driver: both pipelines were built cold, with no refusal, in under 47 s together, while DXC was compiling ActivateRays in the same process (4 pipeline threads), so I have no per-program time. A repeat took 0.5 s because the NVIDIA driver's own disk cache had them. For comparison, on this machine an earlier offline run of the normal form (6efdabc, 29 750 152 B of DXIL) had not returned from CreateComputePipelineState after 467 s and was stopped at 53 GB of private commit.
  • ActivateRays falls back as the description says (19949 blocks of 11909 texts need a 9975-word table (at most 8192)). In its normal form, DXC took free system commit from ~70 GB to under 12 GB within 50 s, and my script stopped it there.

Not tested: these programs in a title run (whether the cutscene that waits on ActivateProbes goes on), cold per-program driver times, AMD.

AI use: Claude Code (Claude Opus 5.5) ran the tests and measurements on my machine and drafted this comment; I checked it before posting.

**@⁠Creaa** on GitHub · 2026-11-24 16:10 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7137244050) **Test report: `ee904f1` (tests) and `5e312d5` (measurements) on an RTX 4070 12 GB (split wave64 form).** Setup: RTX 4070 12 GB (driver 617.14), i7-13700F, 32 GB RAM, Windows 11 build 26300, Rust 1.100.0, DXC 1.9.2602.17, release for the measurements. - `cargo test --workspace -- --test-threads=4` (debug), on both `5e312d5` and `ee904f1`: 773 passed, 0 failed, 41 ignored. SKIPPED: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`, `gpu_compact_native_wave64_form` (no wave64). - Measured on `5e312d5` (not rerun on `ee904f1`, whose `mod.rs` routing change I did not measure). `ActivateProbes` and `ActivateProbesTarget`, `xcl shaders <folder> --precompile --only cs`, `XCL_COMPACT_CS` unset, 4 windows, split wave64: both took the compact form (`88863 instructions, 723453 B HLSL` / `88445 instructions, 665554 B HLSL`), 2 009 528 B of DXIL together, translate + DXC 28.8 s for both. - Driver: both pipelines were built cold, with no refusal, in under 47 s together, while DXC was compiling `ActivateRays` in the same process (4 pipeline threads), so I have no per-program time. A repeat took 0.5 s because the NVIDIA driver's own disk cache had them. For comparison, on this machine an earlier offline run of the normal form (`6efdabc`, 29 750 152 B of DXIL) had not returned from `CreateComputePipelineState` after 467 s and was stopped at 53 GB of private commit. - `ActivateRays` falls back as the description says (`19949 blocks of 11909 texts need a 9975-word table (at most 8192)`). In its normal form, DXC took free system commit from ~70 GB to under 12 GB within 50 s, and my script stopped it there. **Not tested:** these programs in a title run (whether the cutscene that waits on `ActivateProbes` goes on), cold per-program driver times, AMD. AI use: Claude Code (Claude Opus 5.5) ran the tests and measurements on my machine and drafted this comment; I checked it before posting.
Author
Owner

@⁠vitor127wt on GitHub · 2026-11-24 15:15 UTC · original · edited 2026-11-24 16:19 UTC

Linux / Wine test report on the RTX 5070 Ti

I tested the exact head 5e312d5b3252d2a20a8a687bd4f2ef20eecfb877 in a clean release build. This adds the offline PSO step to the earlier Wine precompile results. Both selected shaders translated through the compact route. With the default structurizer, both cold PSO attempts reached the 120 s process cap. Both completed with the legacy structurizer in the follow-up below. Earlier Bazzite report

Tested

  • NVIDIA GeForce RTX 5070 Ti (16,303 MiB reported), NVIDIA Linux driver 620.73.04, Ryzen 7 9700X, 32 GB DDR5. CachyOS x86-64 (kernel 7.3.5-2-cachyos), Wine 11.22, DXVK v2.7.1-498-ga6764047e587178, vkd3d-proton ec20719452e916b (dxil-spirv 7c04863), Windows DXC 1.9.2609.5, Rust 1.100.0 and cargo-xwin 0.24.1. Upstream vkd3d-proton artifact
  • Built with cargo xwin build --offline --locked --target x86_64-pc-windows-msvc --release -p xcl --bin xcl. I used xcl rpf to isolate each compute record from my Series 1.0.2.1 extract in its own input folder.
  • For each folder I ran wine xcl.exe shaders DIR --precompile --only cs --windows 4 --split 1 with XCL_COMPACT_CS=auto, a fresh XCL DXIL cache, and one DXC and PSO worker. I then ran the same command with --pipelines and reused that DXIL. XCL PSO blobs, vkd3d-proton shader cache, and NVIDIA disk cache were disabled. Each PSO process had a 120 s timeout and an 8 GiB memory cap.
Compute shader Instructions Cold translation + DXC DXIL Cold PSO with default structurizer, precompiled DXIL
ActivateProbes 88,863 8.8 s 1,053,272 B Timed out at 120 s (max RSS 613 MiB)
ActivateProbesTarget 88,445 18.8 s 956,252 B Timed out at 120 s (max RSS 597 MiB)

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 perf record -e cpu-clock:u -F 199 -p PID -- sleep 5. All 990 samples for ActivateProbes and all 994 for ActivateProbesTarget were in d3d12core.dll. The profiles give module-level attribution for the sampled intervals.

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 VKD3D_CONFIG=pipeline_library_log to VKD3D_CONFIG=legacy_structurizer,pipeline_library_log. The other settings, cold PSO caches, and limits stayed the same. Initial legacy-structurizer measurements

Shader Default structurizer Legacy, total XCL command Legacy, Vulkan pipeline feedback
ActivateProbes 120 s timeout 16.2 s 13.11 s
ActivateProbesTarget 120 s timeout 12.3 s 10.12 s

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 perf record -e cpu-clock:u -F 199. NVIDIA's libnvidia-gpucomp.so accounted for 75.16% and 77.68% of the samples, respectively. d3d12core.dll accounted for 14.05% and 11.40%. The default-mode profiles above covered five-second windows during the stalled calls.

ActivateRays with #1321 applied on top of #1316

I ran the requested commit pair on Wine against the single CS_ScreenProbes_ActivateRays compute program from my Series 1.0.2.1 extraction. Both builds detected compute program 15ec6daefb19a780 and fell back from the compact backend because it needed 9,975 words and the limit was 8,192. The second build is a local merge of #1321 at 0936337142a114668e29652163a62c6d255ff5d3 into #1316 at 6cefa5c342fe71a88cd64153d81e755683887fb3, with the conflict resolved as described by the author. Request and merge notes

Windows MSVC release build under Wine HLSL Cold translation + DXC DXIL Cold D3D12 PSO, cached DXIL
6cefa5c 154,575,599 B Cgroup OOM at 9.0 s, 8 GiB cap, exit 137 — —
6cefa5c + 0936337 15,359,988 B 48.7 s, peak RSS 2.37 GiB, 1 compiled, 0 errors 14,105,380 B 120 s timeout, exit 124, peak RSS 3.16 GiB

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 xcl shaders <isolated folder> --precompile --only cs --windows 4 --split 1, with XCL_COMPACT_CS=auto, one DXC worker, one PSO worker, and fresh DXIL caches per build. After the combined build produced DXIL, I ran the same command with --pipelines, kept that DXIL, and disabled the XCL, vkd3d-proton, and NVIDIA disk pipeline caches. The driver log confirms an empty pipeline cache. The 80, 90, and 100 s checkpoints in this separate PSO process were all about 3.00 GiB in Linux cgroup memory.current.

Same RTX 5070 Ti, driver 620.73.04, Ryzen 7 9700X, CachyOS 7.3.5-2-cachyos, Wine 11.22, vkd3d-proton ec20719452e916b, and Windows DXC 1.9.2609.5 as above. This run covers the isolated shader. Windows private commit, full-title loading and execution of the retail shader remain unmeasured in this setup.

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 compact::translate_compact directly at the tested XCL commit 5e312d5, using the BetterJdue’s synthetic generator at 5ae62c5. The 668-case shader compiled to 655,944 B of DXIL with native DXC 1.9.2609.5. Standalone dxil-spirv 7c04863 on the Ryzen 7 9700X reached a 45 s cap in default mode. Legacy converted the same DXIL in 0.97 s and passed spirv-val --target-env vulkan1.3. CFGNode::dominates accounted for 96.85% of 1,335 CPU samples in a separate default-mode profile, principally under insert_phi_frontiers. This covers the compact translator and standalone conversion on synthetic input. Generator source XCL results and upstream reproducer

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.

**@⁠vitor127wt** on GitHub · 2026-11-24 15:15 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7135712638) · edited 2026-11-24 16:19 UTC **Linux / Wine test report on the RTX 5070 Ti** I tested the exact head `5e312d5b3252d2a20a8a687bd4f2ef20eecfb877` in a clean release build. This adds the offline PSO step to the earlier Wine precompile results. Both selected shaders translated through the compact route. With the default structurizer, both cold PSO attempts reached the 120 s process cap. Both completed with the legacy structurizer in the follow-up below. [Earlier Bazzite report](https://github.com/ivall/xcl/pull/1316#issuecomment-7135355239) **Tested** - NVIDIA GeForce RTX 5070 Ti (16,303 MiB reported), NVIDIA Linux driver 620.73.04, Ryzen 7 9700X, 32 GB DDR5. CachyOS x86-64 (kernel `7.3.5-2-cachyos`), Wine 11.22, DXVK `v2.7.1-498-ga6764047e587178`, vkd3d-proton `ec20719452e916b` (dxil-spirv `7c04863`), Windows DXC 1.9.2609.5, Rust 1.100.0 and cargo-xwin 0.24.1. [Upstream vkd3d-proton artifact](https://github.com/HansKristian-Work/vkd3d-proton/actions/runs/45389706791) - Built with `cargo xwin build --offline --locked --target x86_64-pc-windows-msvc --release -p xcl --bin xcl`. I used `xcl rpf` to isolate each compute record from my Series 1.0.2.1 extract in its own input folder. - For each folder I ran `wine xcl.exe shaders DIR --precompile --only cs --windows 4 --split 1` with `XCL_COMPACT_CS=auto`, a fresh XCL DXIL cache, and one DXC and PSO worker. I then ran the same command with `--pipelines` and reused that DXIL. XCL PSO blobs, vkd3d-proton shader cache, and NVIDIA disk cache were disabled. Each PSO process had a 120 s timeout and an 8 GiB memory cap. | Compute shader | Instructions | Cold translation + DXC | DXIL | Cold PSO with default structurizer, precompiled DXIL | | --- | ---: | ---: | ---: | --- | | `ActivateProbes` | 88,863 | 8.8 s | 1,053,272 B | Timed out at 120 s (max RSS 613 MiB) | | `ActivateProbesTarget` | 88,445 | 18.8 s | 956,252 B | Timed out at 120 s (max RSS 597 MiB) | 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 `perf record -e cpu-clock:u -F 199 -p PID -- sleep 5`. All 990 samples for `ActivateProbes` and all 994 for `ActivateProbesTarget` were in `d3d12core.dll`. The profiles give module-level attribution for the sampled intervals. **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 `VKD3D_CONFIG=pipeline_library_log` to `VKD3D_CONFIG=legacy_structurizer,pipeline_library_log`. The other settings, cold PSO caches, and limits stayed the same. [Initial legacy-structurizer measurements](https://github.com/ivall/xcl/issues/1269#issuecomment-7135900910) | Shader | Default structurizer | Legacy, total XCL command | Legacy, Vulkan pipeline feedback | | --- | --- | ---: | ---: | | `ActivateProbes` | 120 s timeout | **16.2 s** | 13.11 s | | `ActivateProbesTarget` | 120 s timeout | **12.3 s** | 10.12 s | 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 `perf record -e cpu-clock:u -F 199`. NVIDIA's `libnvidia-gpucomp.so` accounted for 75.16% and 77.68% of the samples, respectively. `d3d12core.dll` accounted for 14.05% and 11.40%. The default-mode profiles above covered five-second windows during the stalled calls. **ActivateRays with #1321 applied on top of #1316** I ran the requested commit pair on Wine against the single `CS_ScreenProbes_ActivateRays` compute program from my Series 1.0.2.1 extraction. Both builds detected compute program `15ec6daefb19a780` and fell back from the compact backend because it needed 9,975 words and the limit was 8,192. The second build is a local merge of #1321 at `0936337142a114668e29652163a62c6d255ff5d3` into #1316 at `6cefa5c342fe71a88cd64153d81e755683887fb3`, with the conflict resolved as described by the author. [Request and merge notes](https://github.com/ivall/xcl/pull/1316#issuecomment-7136763751) | Windows MSVC release build under Wine | HLSL | Cold translation + DXC | DXIL | Cold D3D12 PSO, cached DXIL | | --- | ---: | --- | ---: | --- | | `6cefa5c` | 154,575,599 B | Cgroup OOM at 9.0 s, 8 GiB cap, exit 137 | — | — | | `6cefa5c` + `0936337` | 15,359,988 B | 48.7 s, peak RSS 2.37 GiB, 1 compiled, 0 errors | 14,105,380 B | 120 s timeout, exit 124, peak RSS 3.16 GiB | 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 `xcl shaders <isolated folder> --precompile --only cs --windows 4 --split 1`, with `XCL_COMPACT_CS=auto`, one DXC worker, one PSO worker, and fresh DXIL caches per build. After the combined build produced DXIL, I ran the same command with `--pipelines`, kept that DXIL, and disabled the XCL, vkd3d-proton, and NVIDIA disk pipeline caches. The driver log confirms an empty pipeline cache. The 80, 90, and 100 s checkpoints in this separate PSO process were all about 3.00 GiB in Linux cgroup `memory.current`. Same RTX 5070 Ti, driver 620.73.04, Ryzen 7 9700X, CachyOS `7.3.5-2-cachyos`, Wine 11.22, vkd3d-proton `ec20719452e916b`, and Windows DXC 1.9.2609.5 as above. This run covers the isolated shader. Windows private commit, full-title loading and execution of the retail shader remain unmeasured in this setup. **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 `compact::translate_compact` directly at the tested XCL commit `5e312d5`, using the BetterJdue’s synthetic generator at `5ae62c5`. The 668-case shader compiled to 655,944 B of DXIL with native DXC `1.9.2609.5`. Standalone `dxil-spirv` `7c04863` on the Ryzen 7 9700X reached a 45 s cap in default mode. Legacy converted the same DXIL in 0.97 s and passed `spirv-val --target-env vulkan1.3`. `CFGNode::dominates` accounted for 96.85% of 1,335 CPU samples in a separate default-mode profile, principally under `insert_phi_frontiers`. This covers the compact translator and standalone conversion on synthetic input. [Generator source](https://github.com/BetterJdue/xcl/blob/5ae62c5/crates/xcl/tests/compile_bench/gen.rs) [XCL results and upstream reproducer](https://github.com/ivall/xcl/issues/1269#issuecomment-7135721390) **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.
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-24 16:47 UTC · original

@⁠vakaobr thanks for the D3DMetal run (your report). run_in_arena_or_skip is not on main (b7aa9f3); it is added by #1060, which is open. So the three window tests in tests_compact.rs stay as they are in this stack. In your run at 5e312d5, all 16 tests_compact GPU tests passed with #1329 merged on top, those three included (the wave64 one still skipped).

AI use: Claude Code (Claude Opus 5.5) wrote this reply.

**@⁠CowboyBingus** on GitHub · 2026-11-24 16:47 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7138220650) @⁠vakaobr thanks for the D3DMetal run ([your report](https://github.com/ivall/xcl/pull/1316#issuecomment-7137504361)). `run_in_arena_or_skip` is not on `main` (`b7aa9f3`); it is added by [#1060](https://github.com/ivall/xcl/pull/1060), which is open. So the three window tests in `tests_compact.rs` stay as they are in this stack. In your run at `5e312d5`, all 16 `tests_compact` GPU tests passed with [#1329](https://github.com/ivall/xcl/pull/1329) merged on top, those three included (the wave64 one still skipped). AI use: Claude Code (Claude Opus 5.5) wrote this reply.
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-24 16:47 UTC · original

@⁠oni-swr thanks for the RX 7800 XT numbers (your report). The two panics you hit in gpu_compact_sample_big_cs at 5e312d5 (tests_compact.rs:91 on ActivateRays' refusal, tests_compact.rs:1163 on the old form's E_OUTOFMEMORY) are handled in the test since #1315's head d58677a, which #1316 contains:

  • When translate_compact returns an error, such as ActivateRays' table limit, the test prints SKIPPED gpu_compact_sample_big_cs: compact form refused: … and returns (tests_compact.rs:1149-1153).
  • When running translate's form fails with an error from CreateComputePipelineState, the test prints that error and goes on with the compact form, which must still compile in DXC and run; it then prints SKIPPED gpu_compact_sample_big_cs: A/B comparison (translate's pipeline was not created) instead of comparing (tests_compact.rs:1167-1188).

AI use: Claude Code (Claude Opus 5.5) wrote this reply.

**@⁠CowboyBingus** on GitHub · 2026-11-24 16:47 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7138221098) @⁠oni-swr thanks for the RX 7800 XT numbers ([your report](https://github.com/ivall/xcl/pull/1316#issuecomment-7136396241)). The two panics you hit in `gpu_compact_sample_big_cs` at `5e312d5` (`tests_compact.rs:91` on ActivateRays' refusal, `tests_compact.rs:1163` on the old form's `E_OUTOFMEMORY`) are handled in the test since [#1315](https://github.com/ivall/xcl/pull/1315)'s head [`d58677a`](https://github.com/ivall/xcl/pull/1315/commits/d58677a1b615ea039405aeced30fd2ca8577b923), which [#1316](https://github.com/ivall/xcl/pull/1316) contains: - When `translate_compact` returns an error, such as ActivateRays' table limit, the test prints `SKIPPED gpu_compact_sample_big_cs: compact form refused: …` and returns (`tests_compact.rs:1149-1153`). - When running `translate`'s form fails with an error from `CreateComputePipelineState`, the test prints that error and goes on with the compact form, which must still compile in DXC and run; it then prints `SKIPPED gpu_compact_sample_big_cs: A/B comparison (translate's pipeline was not created)` instead of comparing (`tests_compact.rs:1167-1188`). AI use: Claude Code (Claude Opus 5.5) wrote this reply.
Author
Owner

@⁠ettehn on GitHub · 2026-11-24 15:15 UTC · original · edited 2026-11-24 16:55 UTC

A short native Windows run can exercise ActivateProbes on this head. On 5e312d5 (release, RTX 5070 Ti Laptop 12 GB, driver 621.24, DXC 1.8.2502.11, XCL_COMPACT_CS=auto, an existing XCL cache copied before launch), the compact backend logged code hash d122faa48eb0afdc at 7.431 s: 88,863 instructions, 723,453 B of HLSL. The resulting translation cache contains 56c0cd3b82a00c6e_Compute_0_4_1_c.bin (shader-container hash). This establishes translation during the run; it does not establish when the title first bound that pipeline.

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 +0x23cf683 at 108.605 s. At 90.801 s a different program, 15ec6daefb19a780, fell back to the existing translator because its table needed 9,975 words (cap 8,192). We have no wait-to-shader link implicating that fallback.

The control run was interrupted, so these observations cover auto only and provide no A/B timing claim. AI-assisted with OpenAI Codex (GPT-6.2 Astra).

Offline PSO cache check on native Windows

Same release 5e312d5b3252d2a20a8a687bd4f2ef20eecfb877, RTX 5070 Ti Laptop 12 GB, driver 621.24, and DXC 1.8.2502.11. In two fresh processes I ran xcl shaders <single-record folder> --precompile --only cs --split 1 --windows 4 --pipelines with XCL_COMPACT_CS=auto, one DXC worker, one pipeline worker, and identical preseeded compact translations for ActivateProbes (56c0cd3b82a00c6e). Only the second XCL cache was seeded with the existing 893,274-byte PSO blob.

XCL driver blob at start PSOs made Refused Loaded from driver cache Command time
Absent 1 0 0 10.8 s
Present 1 0 1 0.3 s

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.

**@⁠ettehn** on GitHub · 2026-11-24 15:15 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7135728819) · edited 2026-11-24 16:55 UTC A short native Windows run can exercise `ActivateProbes` on this head. On `5e312d5` (release, RTX 5070 Ti Laptop 12 GB, driver 621.24, DXC 1.8.2502.11, `XCL_COMPACT_CS=auto`, an existing XCL cache copied before launch), the compact backend logged code hash `d122faa48eb0afdc` at **7.431 s**: 88,863 instructions, 723,453 B of HLSL. The resulting translation cache contains `56c0cd3b82a00c6e_Compute_0_4_1_c.bin` (shader-container hash). This establishes translation during the run; it does not establish when the title first bound that pipeline. 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 `+0x23cf683` at 108.605 s. At 90.801 s a different program, `15ec6daefb19a780`, fell back to the existing translator because its table needed 9,975 words (cap 8,192). We have no wait-to-shader link implicating that fallback. The control run was interrupted, so these observations cover `auto` only and provide no A/B timing claim. AI-assisted with OpenAI Codex (GPT-6.2 Astra). **Offline PSO cache check on native Windows** Same release `5e312d5b3252d2a20a8a687bd4f2ef20eecfb877`, RTX 5070 Ti Laptop 12 GB, driver 621.24, and DXC 1.8.2502.11. In two fresh processes I ran `xcl shaders <single-record folder> --precompile --only cs --split 1 --windows 4 --pipelines` with `XCL_COMPACT_CS=auto`, one DXC worker, one pipeline worker, and identical preseeded compact translations for `ActivateProbes` (`56c0cd3b82a00c6e`). Only the second XCL cache was seeded with the existing 893,274-byte PSO blob. | XCL driver blob at start | PSOs made | Refused | Loaded from driver cache | Command time | | --- | ---: | ---: | ---: | ---: | | Absent | 1 | 0 | 0 | 10.8 s | | Present | 1 | 0 | 1 | 0.3 s | 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.
Author
Owner

@⁠Xahinn1 on GitHub · 2026-11-24 17:08 UTC · original

Tested PR #1316 on AMD RDNA4 (native Wave64) hardware:

Tested

  • Hardware / OS: AMD Radeon RX 9060 XT (driver 32.0.32029.2010), AMD Ryzen 7 5700X, Windows 11 (10.0.26300)
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09), DXC 1.9.2602.17 (Windows SDK 10.0.26100.0), debug build
  • Commit: ee904f1
  • cargo test --workspace gpu_compact -- --nocapture: 16 passed, 0 failed, 0 ignored (all native Wave64 A/B cases ran with identical result bytes; 0 skipped)
  • cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4: 773 passed, 0 failed, 41 ignored (lib tests: 729 passed, 0 failed, 21 ignored)
  • Previously skipped Wave64 tests all ran and passed (0 SKIPPED): gpu_compact_native_wave64_form, gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware

Not tested

  • Retail game files / XCL_SAMPLE_* tests, scripts/smoke.ps1
  • Linux / Wine

AI use

  • Gemini helped format this test report from my local terminal output; all builds and tests were run directly on my machine.
**@⁠Xahinn1** on GitHub · 2026-11-24 17:08 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7138758370) Tested PR #1316 on AMD RDNA4 (native Wave64) hardware: **Tested** - **Hardware / OS:** AMD Radeon RX 9060 XT (driver `32.0.32029.2010`), AMD Ryzen 7 5700X, Windows 11 (`10.0.26300`) - **Toolchain:** `rustc 1.100.0 (0ef1bc386 2026-11-09)`, DXC `1.9.2602.17` (Windows SDK `10.0.26100.0`), debug build - **Commit:** `ee904f1` - `cargo test --workspace gpu_compact -- --nocapture`: **16 passed, 0 failed, 0 ignored** (all native Wave64 A/B cases ran with identical result bytes; 0 skipped) - `cargo build --workspace`, then `cargo test --workspace --no-fail-fast -- --test-threads=4`: **773 passed, 0 failed, 41 ignored** (lib tests: 729 passed, 0 failed, 21 ignored) - Previously skipped Wave64 tests all ran and passed (0 `SKIPPED`): `gpu_compact_native_wave64_form`, `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` **Not tested** - Retail game files / `XCL_SAMPLE_*` tests, `scripts/smoke.ps1` - Linux / Wine **AI use** - Gemini helped format this test report from my local terminal output; all builds and tests were run directly on my machine.
Author
Owner

@⁠ClosetPie107 on GitHub · 2026-11-24 16:19 UTC · original · edited 2026-11-24 17:16 UTC

Linux / RDNA4 (RADV): the compact ActivateProbes and ActivateProbesTarget build and their blobs work, in 252 s and 176 s at ~3 GB. RADV itself takes 19.5 s and 10.4 s of that; the rest is vkd3d-proton's DXIL → SPIR-V step (dxil-spirv). This is the RADV row next to @⁠oni-swr's AMD driver numbers above (439 s / 342 s, 19–23 GB on an RX 7800 XT) and @⁠Pipodi's RTX 4090 ones (14.3 s / 11.4 s).

Edited: @⁠itsd-effex had already found the same hotspot on #1269 an hour before this comment, with a call graph and on NVIDIA (https://github.com/ivall/xcl/issues/1269#issuecomment-7135900910: dominates called from insert_phi_frontiers; VKD3D_CONFIG=legacy_structurizer builds the same pipelines 6–8× faster). I had missed it. What this comment adds is the RADV side. Two more measurements are at the end: the legacy_structurizer option does nothing in vkd3d-proton v3.1, and dxil-spirv#372 is not needed on RADV for XCL's atomics tests.

Tested

  • AMD Radeon RX 9070 16 GB (RADV GFX1201, Mesa 26.3.1), Ryzen 5 9600X (12 threads), 30 GB RAM; CachyOS, kernel 7.3.5; Proton Experimental's Wine; vkd3d-proton v3.1 + #257's patch, dxil-spirv 53aac418 (#775); DXC 1.9.2609.5.
  • Head 6cefa5c (with #1315) on main 930e8b4, with b8b1f49 reverted (#1307; on RADV it also crashes dxil-spirv in a test, #1425). Release, cross-built for x86_64-pc-windows-gnu; XCL_COMPACT_CS unset (auto). Not the PR's exact head because of the revert. The current head ee904f1 differs from 6cefa5c only in tests_compact.rs, so the runtime code measured here is the same.
  • @⁠oni-swr's method: each record alone in its own folder (xcl rpf shaders.rpf --extract <name>), an empty XCL_DXIL_CACHE, Mesa's cache in a new empty folder and vkd3d-proton's off (VKD3D_SHADER_CACHE_PATH=0). Then xcl shaders <folder> --precompile --only cs (DXC), --pipelines (cold build) and --pipelines again (from the blob). Each step in its own systemd scope capped at 22 GB; peak is that cgroup's memory.peak (page cache included), no swap used. Two rounds, each with fresh caches:
program form HLSL DXIL DXC cold --pipelines (round 1 / 2) peak from the blob
ActivateProbes (d122faa48eb0afdc) compact, native wave64 716 691 B 867 364 B 3.3 s 249.8 s / 252.3 s, made 3.05 GB 0.2 – 0.3 s
ActivateProbesTarget (79dc576c52b3dc23) compact, native wave64 659 094 B 774 212 B 3.0 s 176.9 s / 176.0 s, made 2.6 – 2.7 GB 0.2 – 0.3 s

The HLSL matches @⁠oni-swr's byte for byte and the DXIL within 12 B, so the rows compare.

Where the time goes.

  • Round 2 had Steam's Fossilize layer on during the cold builds (the times match round 1). Replaying the captured pipeline alone with fossilize_replay (SPIR-V straight to RADV, MESA_SHADER_CACHE_DISABLE=true): ActivateProbes 19.5 s / 2.7 GB, ActivateProbesTarget 10.4 s / 2.3 GB. So ~92–94 % of a cold build happens before RADV.
  • perf record -F 199 -e cpu-clock:u over a third cold build of ActivateProbesTarget (186.8 s with perf): 92.8 % in d3d12core.dll (vkd3d-proton, dxil-spirv linked in), 5.1 % in libvulkan_radeon.so.
  • Of all samples of that build, 92.1 % are in dxil_spv::CFGNode::dominates (node.cpp), three instructions of its loop that walks the immediate-dominator chain one node at a time. The next functions are far behind: CFGStructurizer::insert_phi_frontiers and its lambda at 0.7 % together (cfg_structurizer_new.cpp), phi_frontiers_converge and reaches_direct_helper below 0.1 %. So insert_phi_frontiers is the likely caller (PHI placement on a CFG with many blocks and deep dominator chains), but without a call graph that is a reading of the flat profile, not a measured edge. Symbols from the DLL's own symbol table (my vkd3d-proton v3.1 build, dxil-spirv 53aac418).

On this stack the compact form's cost is in dxil-spirv, not in RADV, as @⁠itsd-effex found on NVIDIA. Elsewhere in this title it is the other way round: some ~1 MB compute programs of the normal form spend ~60 s and 13–16 GB in RADV itself (#1035), and @⁠lucsoft saw RADV take ~16 GB on one of the screen-probe programs in its old form in the title (#505).

What it means with #1278 [not run, from the code]: at 0.77–0.87 MB of DXIL the compact forms are under #1278's 4 MB line, so they go back into BIG_COMPILES (from 256 KB, one at a time). On RADV each would hold that slot for 3 – 4 minutes, and on @⁠oni-swr's AMD driver numbers for 6 – 7, with the title's other 0.3 – 1 MB programs behind it. On NVIDIA (~14 s) this does not matter. I have not run the title with these PRs, so I don't know how it plays out in a world load.

Not tested: a title run; ActivateRays (the compact form refuses it, as @⁠oni-swr showed; I did not run its fallback); XCL_COMPACT_CS=0 / 1; the PR's exact head (b8b1f49 reverted); other Mesa or dxil-spirv versions; the full test suite on this tree.

Edited – two more measurements, same machine and tree:

  • VKD3D_CONFIG=legacy_structurizer has no effect in vkd3d-proton v3.1: with it (VKD3D_CONFIG=ignore_shared_fence,legacy_structurizer, checked in the process's environment), the cold ActivateProbes build took 253.9 s, the same as without it. The commit that passes the option to dxil-spirv (3f6a2c71, "vkd3d-shader: Add a chicken bit to use the legacy structurizer") is on vkd3d-proton's master, not in v3.1, which ignores the unknown option silently. So on Linux @⁠itsd-effex's workaround needs a vkd3d-proton built from master (they used ec207194). Note that dxil-spirv#374 (open) removes the legacy structurizer.
  • dxil-spirv#372 is not needed on RADV for XCL's atomics tests: #372 fixes raw loads and stores on root UAVs that also use 64-bit atomics, which is what XCL's memory windows are (RWByteAddressBuffer at root u2–u5, Interlocked*64). Without the fix (dxil-spirv 53aac418), cargo test --release -p xcl --lib atomic -- --test-threads=1 on this tree under Wine: 12 passed, 0 failed, 0 ignored, no SKIPPED (the filter also matches a few CPU-only tests), gpu_more_atomics_sub_dword_scratch_valu included. That test hangs NVIDIA without #372 (@⁠BlestTerror on #175, @⁠Filip722 on #775). So on RADV the bad offset happens to do no harm in these tests. Not checked on the title's programs.

AI use: T3 Code (Claude Opus 5.5) built the tree, ran the measurements, the replays and the profile, and wrote this comment. The runs are real, on the hardware above, and I checked the report before posting.

**@⁠ClosetPie107** on GitHub · 2026-11-24 16:19 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7137475733) · edited 2026-11-24 17:16 UTC **Linux / RDNA4 (RADV): the compact `ActivateProbes` and `ActivateProbesTarget` build and their blobs work, in 252 s and 176 s at ~3 GB. RADV itself takes 19.5 s and 10.4 s of that; the rest is vkd3d-proton's DXIL → SPIR-V step (dxil-spirv).** This is the RADV row next to @⁠oni-swr's AMD driver numbers above (439 s / 342 s, 19–23 GB on an RX 7800 XT) and @⁠Pipodi's RTX 4090 ones (14.3 s / 11.4 s). **Edited:** @⁠itsd-effex had already found the same hotspot on #1269 an hour before this comment, with a call graph and on NVIDIA (https://github.com/ivall/xcl/issues/1269#issuecomment-7135900910: `dominates` called from `insert_phi_frontiers`; `VKD3D_CONFIG=legacy_structurizer` builds the same pipelines 6–8× faster). I had missed it. What this comment adds is the RADV side. Two more measurements are at the end: the `legacy_structurizer` option does nothing in vkd3d-proton v3.1, and dxil-spirv#372 is not needed on RADV for XCL's atomics tests. **Tested** - AMD Radeon RX 9070 16 GB (RADV GFX1201, Mesa 26.3.1), Ryzen 5 9600X (12 threads), 30 GB RAM; CachyOS, kernel 7.3.5; Proton Experimental's Wine; vkd3d-proton v3.1 + #257's patch, dxil-spirv `53aac418` (#775); DXC 1.9.2609.5. - Head `6cefa5c` (with #1315) on `main` `930e8b4`, with `b8b1f49` reverted (#1307; on RADV it also crashes dxil-spirv in a test, #1425). Release, cross-built for `x86_64-pc-windows-gnu`; `XCL_COMPACT_CS` unset (`auto`). Not the PR's exact head because of the revert. The current head `ee904f1` differs from `6cefa5c` only in `tests_compact.rs`, so the runtime code measured here is the same. - @⁠oni-swr's method: each record alone in its own folder (`xcl rpf shaders.rpf --extract <name>`), an empty `XCL_DXIL_CACHE`, Mesa's cache in a new empty folder and vkd3d-proton's off (`VKD3D_SHADER_CACHE_PATH=0`). Then `xcl shaders <folder> --precompile --only cs` (DXC), `--pipelines` (cold build) and `--pipelines` again (from the blob). Each step in its own systemd scope capped at 22 GB; peak is that cgroup's `memory.peak` (page cache included), no swap used. Two rounds, each with fresh caches: | program | form | HLSL | DXIL | DXC | cold `--pipelines` (round 1 / 2) | peak | from the blob | |---|---|---|---|---|---|---|---| | ActivateProbes (`d122faa48eb0afdc`) | compact, native wave64 | 716 691 B | 867 364 B | 3.3 s | **249.8 s / 252.3 s**, made | 3.05 GB | 0.2 – 0.3 s | | ActivateProbesTarget (`79dc576c52b3dc23`) | compact, native wave64 | 659 094 B | 774 212 B | 3.0 s | **176.9 s / 176.0 s**, made | 2.6 – 2.7 GB | 0.2 – 0.3 s | The HLSL matches @⁠oni-swr's byte for byte and the DXIL within 12 B, so the rows compare. **Where the time goes.** - Round 2 had Steam's Fossilize layer on during the cold builds (the times match round 1). Replaying the captured pipeline alone with `fossilize_replay` (SPIR-V straight to RADV, `MESA_SHADER_CACHE_DISABLE=true`): **ActivateProbes 19.5 s / 2.7 GB, ActivateProbesTarget 10.4 s / 2.3 GB.** So ~92–94 % of a cold build happens before RADV. - `perf record -F 199 -e cpu-clock:u` over a third cold build of ActivateProbesTarget (186.8 s with perf): **92.8 % in `d3d12core.dll`** (vkd3d-proton, dxil-spirv linked in), **5.1 % in `libvulkan_radeon.so`**. - Of all samples of that build, **92.1 % are in `dxil_spv::CFGNode::dominates`** (node.cpp), three instructions of its loop that walks the immediate-dominator chain one node at a time. The next functions are far behind: `CFGStructurizer::insert_phi_frontiers` and its lambda at 0.7 % together (cfg_structurizer_new.cpp), `phi_frontiers_converge` and `reaches_direct_helper` below 0.1 %. So `insert_phi_frontiers` is the likely caller (PHI placement on a CFG with many blocks and deep dominator chains), but without a call graph that is a reading of the flat profile, not a measured edge. Symbols from the DLL's own symbol table (my vkd3d-proton v3.1 build, dxil-spirv `53aac418`). On this stack the compact form's cost is in dxil-spirv, not in RADV, as @⁠itsd-effex found on NVIDIA. Elsewhere in this title it is the other way round: some ~1 MB compute programs of the normal form spend ~60 s and 13–16 GB in RADV itself (#1035), and @⁠lucsoft saw RADV take ~16 GB on one of the screen-probe programs in its old form in the title (#505). **What it means with #1278 [not run, from the code]:** at 0.77–0.87 MB of DXIL the compact forms are under #1278's 4 MB line, so they go back into `BIG_COMPILES` (from 256 KB, one at a time). On RADV each would hold that slot for 3 – 4 minutes, and on @⁠oni-swr's AMD driver numbers for 6 – 7, with the title's other 0.3 – 1 MB programs behind it. On NVIDIA (~14 s) this does not matter. I have not run the title with these PRs, so I don't know how it plays out in a world load. **Not tested:** a title run; ActivateRays (the compact form refuses it, as @⁠oni-swr showed; I did not run its fallback); `XCL_COMPACT_CS=0` / `1`; the PR's exact head (`b8b1f49` reverted); other Mesa or dxil-spirv versions; the full test suite on this tree. **Edited – two more measurements, same machine and tree:** - **`VKD3D_CONFIG=legacy_structurizer` has no effect in vkd3d-proton v3.1:** with it (`VKD3D_CONFIG=ignore_shared_fence,legacy_structurizer`, checked in the process's environment), the cold ActivateProbes build took 253.9 s, the same as without it. The commit that passes the option to dxil-spirv (`3f6a2c71`, "vkd3d-shader: Add a chicken bit to use the legacy structurizer") is on vkd3d-proton's master, not in v3.1, which ignores the unknown option silently. So on Linux @⁠itsd-effex's workaround needs a vkd3d-proton built from master (they used `ec207194`). Note that dxil-spirv#374 (open) removes the legacy structurizer. - **dxil-spirv#372 is not needed on RADV for XCL's atomics tests:** #372 fixes raw loads and stores on root UAVs that also use 64-bit atomics, which is what XCL's memory windows are (`RWByteAddressBuffer` at root `u2`–`u5`, `Interlocked*64`). Without the fix (dxil-spirv `53aac418`), `cargo test --release -p xcl --lib atomic -- --test-threads=1` on this tree under Wine: **12 passed, 0 failed, 0 ignored, no SKIPPED** (the filter also matches a few CPU-only tests), `gpu_more_atomics_sub_dword_scratch_valu` included. That test hangs NVIDIA without #372 (@⁠BlestTerror on #175, @⁠Filip722 on #775). So on RADV the bad offset happens to do no harm in these tests. Not checked on the title's programs. **AI use:** T3 Code (Claude Opus 5.5) built the tree, ran the measurements, the replays and the profile, and wrote this comment. The runs are real, on the hardware above, and I checked the report before posting.
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-24 17:35 UTC · original

Rebased onto main 9e3831e (after #680) on top of #1315's new head; the head is now c3d119c. This commit applied without conflicts. Suite, smoke and description are updated for the new head.

AI use: Claude Code (Claude Opus 5.5) wrote this comment.

**@⁠CowboyBingus** on GitHub · 2026-11-24 17:35 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7139414820) Rebased onto `main` `9e3831e` (after #680) on top of #1315's new head; the head is now [`c3d119c`](https://github.com/ivall/xcl/pull/1316/commits/c3d119c41601bd854fb22b96949e550a76f6de13). This commit applied without conflicts. Suite, smoke and description are updated for the new head. AI use: Claude Code (Claude Opus 5.5) wrote this comment.
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-24 17:35 UTC · original

@⁠IvovdBruggen thanks for the review note (your comment). The DXC case is in #1316's head c3d119c (rebased onto main 9e3831e, after #680):

  • compile_console_shader (pso.rs) marks a failure of dxc::compile_cached on HLSL that is the compact form. console_to_dxil_in then compiles the program in the normal form (CompactCs::Never), or takes the normal form's translated-cache entry when that is on disk, and keeps the result under that normal entry, never the _c one. Before that it logs one WARN line: [SHADER] DXC refused the compact form: … – compiled in the normal form.
  • A cached-only attempt (non-blocking pipeline creation) is not retried: there the DXIL is only not made yet. A refusal is not remembered between runs, so a later run tries the compact form first again.
  • A driver rejection is not retried in the normal form; this PR does not change hle/d3d12x/real.rs, where the compute PSO is created (translated_compute_pso). On main since #680, with_switch_fallback there builds a pipeline again in the switch form when the driver runs out of memory on it with heap windows; a routed program is routed to the compact form again in that retry.
  • Test: a_refused_compact_form_is_compiled_in_the_normal_form (pso.rs) gives the retry an injected refusal. It checks that the normal form's result is returned, that the normal entry exists and the _c entry does not, and that other errors and results are passed through without a retry.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 on 1c6deba (RTX 5070 Ti; the same tree as c3d119c, which differs only in its commit message and commit time): 798 passed, 1 failed, 41 ignored. The failure is xmem_virtual_query_marks_cpu_readable_memory, which fails the same way on main 930e8b4.

AI use: Claude Code (Claude Opus 5.5) wrote the change and this reply.

**@⁠CowboyBingus** on GitHub · 2026-11-24 17:35 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7139415511) @⁠IvovdBruggen thanks for the review note ([your comment](https://github.com/ivall/xcl/pull/1316#issuecomment-7136726090)). The DXC case is in #1316's head [`c3d119c`](https://github.com/ivall/xcl/pull/1316/commits/c3d119c41601bd854fb22b96949e550a76f6de13) (rebased onto `main` `9e3831e`, after #680): - `compile_console_shader` (`pso.rs`) marks a failure of `dxc::compile_cached` on HLSL that is the compact form. `console_to_dxil_in` then compiles the program in the normal form (`CompactCs::Never`), or takes the normal form's translated-cache entry when that is on disk, and keeps the result under that normal entry, never the `_c` one. Before that it logs one WARN line: `[SHADER] DXC refused the compact form: … – compiled in the normal form`. - A cached-only attempt (non-blocking pipeline creation) is not retried: there the DXIL is only not made yet. A refusal is not remembered between runs, so a later run tries the compact form first again. - A driver rejection is not retried in the normal form; this PR does not change `hle/d3d12x/real.rs`, where the compute PSO is created (`translated_compute_pso`). On `main` since #680, `with_switch_fallback` there builds a pipeline again in the switch form when the driver runs out of memory on it with heap windows; a routed program is routed to the compact form again in that retry. - Test: `a_refused_compact_form_is_compiled_in_the_normal_form` (`pso.rs`) gives the retry an injected refusal. It checks that the normal form's result is returned, that the normal entry exists and the `_c` entry does not, and that other errors and results are passed through without a retry. - `cargo test --workspace --no-fail-fast -- --test-threads=4` on `1c6deba` (RTX 5070 Ti; the same tree as `c3d119c`, which differs only in its commit message and commit time): 798 passed, 1 failed, 41 ignored. The failure is `xmem_virtual_query_marks_cpu_readable_memory`, which fails the same way on `main` `930e8b4`. AI use: Claude Code (Claude Opus 5.5) wrote the change and this reply.
Author
Owner

@⁠Anon64 on GitHub · 2026-11-24 18:02 UTC · original

@⁠CowboyBingus here is the rerun you asked for. Same setup as my earlier report: RTX 3060 12 GB (581.80), Windows 11 26200, 64 GB RAM, release, XCL_COMPACT_CS unset, XCL_NETWORK=0, A pressed every 4 s from 20 s, 200 s, preload on (default). The two runs were back to back on the same caches. Since my first report, this machine's used-pipelines.txt has grown to 531 lines from other world runs, so I reran 6cefa5c alone as well.

  • 6cefa5c + #1321 0936337: a local merge. It conflicted only in mod.rs at the block you named, and I resolved it your way: this PR's side, plus let program = code; as the first line of translate. It builds.
  • 6cefa5c alone.
6cefa5c alone 6cefa5c + #1321
process commit at 58 / 70 s 100.5 / 108.7 GB 23.0 / 28.4 GB
process commit at 80 / 90 / 100 s (process gone) 30.9 / 31.5 / 32.6 GB
peak commit (smoke.ps1) 108.7 GB 32.6 GB
end 0xc0000409 at ~70 s, no XCL error line, still in the menus title's watchdog (+0x23cf683) at 108.9 s
presents 0 from – 82 s
  • With #1321, commit stays flat through world loading, and the run ends where main ends on this card (102–113 s in today's runs).
  • Without #1321, this time the preload drove commit to 108 GB before the world load began, and the process ended with 0xc0000409 and nothing in XCL's log. I have not checked which compile grew it. In the merged run, d122faa48eb0afdc took the compact form at 5.9 s, and 15ec6daefb19a780 fell back at 5.8 s, as before.

One run each.

Written with Claude Code (Claude Opus 5.5) from runs on this machine.

**@⁠Anon64** on GitHub · 2026-11-24 18:02 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7140066471) @⁠CowboyBingus here is the rerun you asked for. Same setup as my earlier report: RTX 3060 12 GB (581.80), Windows 11 26200, 64 GB RAM, release, `XCL_COMPACT_CS` unset, `XCL_NETWORK=0`, A pressed every 4 s from 20 s, 200 s, preload on (default). The two runs were back to back on the same caches. Since my first report, this machine's `used-pipelines.txt` has grown to 531 lines from other world runs, so I reran `6cefa5c` alone as well. - **`6cefa5c` + #1321 `0936337`:** a local merge. It conflicted only in `mod.rs` at the block you named, and I resolved it your way: this PR's side, plus `let program = code;` as the first line of `translate`. It builds. - **`6cefa5c` alone.** | | `6cefa5c` alone | `6cefa5c` + #1321 | |---|---|---| | process commit at 58 / 70 s | 100.5 / 108.7 GB | 23.0 / 28.4 GB | | process commit at 80 / 90 / 100 s | (process gone) | 30.9 / 31.5 / 32.6 GB | | peak commit (`smoke.ps1`) | 108.7 GB | 32.6 GB | | end | `0xc0000409` at ~70 s, no XCL error line, still in the menus | title's watchdog (`+0x23cf683`) at 108.9 s | | presents 0 from | – | 82 s | - With #1321, commit stays flat through world loading, and the run ends where `main` ends on this card (102–113 s in today's runs). - Without #1321, this time the preload drove commit to 108 GB before the world load began, and the process ended with `0xc0000409` and nothing in XCL's log. I have not checked which compile grew it. In the merged run, `d122faa48eb0afdc` took the compact form at 5.9 s, and `15ec6daefb19a780` fell back at 5.8 s, as before. One run each. Written with Claude Code (Claude Opus 5.5) from runs on this machine.
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-24 18:04 UTC · original

@⁠Anon64 thanks for the rerun (your report).

  • In your merged run, 15ec6daefb19a780 (ActivateRays) fell back to translate. That is the form main uses for every compute program, this one included.
  • #1321 is still open. Its description gives 148.5 MB of HLSL for CS_ScreenProbes_ActivateRays on main, and 13.8 MB with #1321. In @⁠dervoxx's measurement (DXC 1.8.2502.11, 6 GiB process commit cap), the 154,575,599 B of HLSL from 930e8b4 ran out of memory at the cap and made no DXIL. With #1321 merged, your peak was 32.6 GB.

Two requests, if you have the time:

  1. Could you run main (9e3831e, or the main commit you compare against) with the same 531-line used-pipelines.txt preload list, and post the process commit at 58 / 70 s? That shows whether the 100 GB comes with #1316 or happens on main too.
  2. If it is easy: the [SHADER] compact backend lines from the 6cefa5c-alone run, to see which programs took the compact form there.

AI use: Claude Code (Claude Opus 5.5) wrote this reply.

**@⁠CowboyBingus** on GitHub · 2026-11-24 18:04 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7140111032) @⁠Anon64 thanks for the rerun ([your report](https://git.gtahub.st/github/xcl-dev--xcl/pulls/1316)). - In your merged run, `15ec6daefb19a780` (`ActivateRays`) fell back to `translate`. That is the form `main` uses for every compute program, this one included. - [#1321](https://git.gtahub.st/github/xcl-dev--xcl/pulls/1321) is still open. Its description gives 148.5 MB of HLSL for `CS_ScreenProbes_ActivateRays` on `main`, and 13.8 MB with #1321. In [@⁠dervoxx's measurement](https://git.gtahub.st/github/xcl-dev--xcl/pulls/1321) (DXC 1.8.2502.11, 6 GiB process commit cap), the 154,575,599 B of HLSL from `930e8b4` ran out of memory at the cap and made no DXIL. With #1321 merged, your peak was 32.6 GB. Two requests, if you have the time: 1. Could you run `main` (`9e3831e`, or the `main` commit you compare against) with the same 531-line `used-pipelines.txt` preload list, and post the process commit at 58 / 70 s? That shows whether the 100 GB comes with #1316 or happens on `main` too. 2. If it is easy: the `[SHADER] compact backend` lines from the `6cefa5c`-alone run, to see which programs took the compact form there. AI use: Claude Code (Claude Opus 5.5) wrote this reply.
Author
Owner

@⁠Anon64 on GitHub · 2026-11-24 18:13 UTC · original

@⁠CowboyBingus both answers:

  1. main 9e3831e, same setup and preload list: a 200 s run right after the two above. It blows up the same way, so the 100 GB is not from this PR.
main 9e3831e 6cefa5c alone 6cefa5c + #1321
process commit at 58 / 70 s 96.8 / 105.0 GB 100.5 / 108.7 GB 23.0 / 28.4 GB
peak commit 108.8 GB 108.7 GB 32.6 GB
end 0xc0000409 at ~75 s, nothing in XCL's log 0xc0000409 at ~70 s title's watchdog at 108.9 s

One caveat: the list had grown from 531 to 598 lines by the end of these runs, because each run records what it used, so main's run started with a slightly longer list than the first two. In the merged run, #1321 alone keeps commit flat with the same preload on.

  1. [SHADER] compact backend lines in the 6cefa5c-alone run: there is only one. 15ec6daefb19a780 fell back at 5.2 s (9 975-word table, at most 8 192). d122faa48eb0afdc has no line: that run ended at ~70 s, before the title reached it.

Written with Claude Code (Claude Opus 5.5) from runs on this machine.

**@⁠Anon64** on GitHub · 2026-11-24 18:13 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7140329534) @⁠CowboyBingus both answers: 1. **`main` `9e3831e`, same setup and preload list:** a 200 s run right after the two above. It blows up the same way, so the 100 GB is not from this PR. | | `main` `9e3831e` | `6cefa5c` alone | `6cefa5c` + #1321 | |---|---|---|---| | process commit at 58 / 70 s | 96.8 / 105.0 GB | 100.5 / 108.7 GB | 23.0 / 28.4 GB | | peak commit | 108.8 GB | 108.7 GB | 32.6 GB | | end | `0xc0000409` at ~75 s, nothing in XCL's log | `0xc0000409` at ~70 s | title's watchdog at 108.9 s | One caveat: the list had grown from 531 to 598 lines by the end of these runs, because each run records what it used, so `main`'s run started with a slightly longer list than the first two. In the merged run, #1321 alone keeps commit flat with the same preload on. 2. **`[SHADER] compact backend` lines in the `6cefa5c`-alone run:** there is only one. `15ec6daefb19a780` fell back at 5.2 s (9 975-word table, at most 8 192). `d122faa48eb0afdc` has no line: that run ended at ~70 s, before the title reached it. Written with Claude Code (Claude Opus 5.5) from runs on this machine.
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-24 18:14 UTC · original

@⁠Anon64 thanks for both answers (your report). In your runs with the same preload list (531 lines at the start, 598 by the end of the runs):

  • main 9e3831e: 96.8 / 105.0 GB of process commit at 58 / 70 s, peak 108.8 GB, 0xc0000409 at ~75 s.
  • 6cefa5c alone: 100.5 / 108.7 GB at 58 / 70 s, 0xc0000409 at ~70 s.

AI use: Claude Code (Claude Opus 5.5) wrote this reply.

**@⁠CowboyBingus** on GitHub · 2026-11-24 18:14 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7140356410) @⁠Anon64 thanks for both answers ([your report](https://git.gtahub.st/github/xcl-dev--xcl/pulls/1316)). In your runs with the same preload list (531 lines at the start, 598 by the end of the runs): - `main` `9e3831e`: 96.8 / 105.0 GB of process commit at 58 / 70 s, peak 108.8 GB, `0xc0000409` at ~75 s. - `6cefa5c` alone: 100.5 / 108.7 GB at 58 / 70 s, `0xc0000409` at ~70 s. AI use: Claude Code (Claude Opus 5.5) wrote this reply.
Author
Owner

@⁠ezamelczyk on GitHub · 2026-11-24 18:16 UTC · original

RDNA4 / RADV under vkd3d-proton: #1316 gets ActivateProbes (56c0cd3b82a00c6e) down to 0.8 MB of DXIL, but with dxil-spirv's default structurizer it still does not build in 300 s. With the legacy structurizer it builds in about 75 s. Measurements only; no code from me here.

Setup

  • AMD Radeon RX 9070 XT (RDNA4, RADV / Mesa 26.3.1), 12 threads, 32 GB RAM (+ zram), CachyOS, kernel 7.3.6
  • Wine from GE-Proton 11-14, vkd3d-proton v3.1 + #257's patch, with subprojects/dxil-spirv moved to 53aac418 (the #611 fix), -Db_ndebug=true; DXVK from GE-Proton; DXC 1.9.2609.5
  • XCL cross-built for x86_64-pc-windows-msvc, release. #1316 at c3d119c (on main 47efa2e); main 47efa2e and #1426 bc93a3a for comparison
  • Both ActivateProbes variants extracted from the retail 1.0.2.1 shaders.rpf, run through xcl shaders <folder> --precompile [--pipelines], 4 memory windows, native wave64. Empty XCL_DXIL_CACHE per backend, VKD3D_SHADER_CACHE_PATH=0, MESA_SHADER_CACHE_DISABLE=true, XCL_PSO_DISK_CACHE=0, XCL_PIPELINE_THREADS=1, a 300 s cap per step

Results (both variants together)

backend DXIL per variant translate + DXC CreateComputePipelineState, both peak RSS
main (HLSL) 23.28 / 23.36 MB 64.6 s not done at 300 s 7.3 GB
#1426 direct DXIL (XCL_DIRECT_DXIL=1) 80.9 / 81.2 MB 6.8 s not done at 300 s 14.4 GB
#1316 compact (auto) 0.77 / 0.87 MB 4.8 s not done at 300 s 0.36 GB
#1316 compact + dxil-spirv legacy structurizer 0.77 / 0.87 MB 4.8 s made, 149 s (~75 s each) 4.0 GB
  • The pipeline build runs on one thread the whole time (one core at 99 %), so XCL_PIPELINE_THREADS does not help a single program.
  • The legacy structurizer is not exposed by vkd3d-proton v3.1. I enabled it with a local 10-line patch in libs/vkd3d-shader/dxil.c (an env var that adds DXIL_SPV_OPTION_LEGACY_STRUCTURIZER), so that row needs a patched vkd3d-proton.

Caveat on the legacy structurizer: in the game, the legacy structurizer together with the pipeline preload workers ended about half of the runs within 3 s (6 runs). The crash is err:vulkan:vkCreateComputePipelines Exception 0xc0000005 in Unix call, inside RADV, then process ends with status 0x3. With either the legacy structurizer or XCL_PSO_PRELOAD=0 alone the same runs were clean. I did not find which pipeline triggers it. dxil-spirv's header marks the option as deprecated, so it is a workaround to measure with, not one to recommend.

In the game (retail 1.0.2.1, saved setup, XCL_COHERENT_MB=512, scripted presses): with #1316 + #1288 merged locally, the legacy structurizer, XCL_PSO_PRELOAD=0, and both ActivateProbes pipelines built once beforehand with xcl shaders --precompile --pipelines, the title loaded both from the driver blobs in 16 and 33 ms. It got past the point where every earlier run on this machine ended (+0x23cf683 about 30 s after world loading starts). The next stop is the compact program 15ec6daefb19a780 at 134 s ("19949 blocks of 11909 texts need a 9975-word table"). The process was then ended by the kernel's OOM killer at 181 s at 22.7 GB anon RSS. I have not confirmed which shader that is (ActivateRays would fit #1448's description), and I have not tried #1448.

Not tested

  • Windows, NVIDIA, and wave32 (split wave64) forms
  • #1316's GPU A/B tests and the full suite on this head
  • Which pipeline the legacy structurizer crashes RADV on
  • #1448

AI use: Claude Code (Claude Opus 5.5) set up the runs on this machine, wrote the local vkd3d-proton switch, collected the numbers and wrote this report. No game data or game-derived DXIL is attached.

**@⁠ezamelczyk** on GitHub · 2026-11-24 18:16 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7140420329) **RDNA4 / RADV under vkd3d-proton: #1316 gets `ActivateProbes` (`56c0cd3b82a00c6e`) down to 0.8 MB of DXIL, but with dxil-spirv's default structurizer it still does not build in 300 s. With the legacy structurizer it builds in about 75 s.** Measurements only; no code from me here. **Setup** - AMD Radeon RX 9070 XT (RDNA4, RADV / Mesa 26.3.1), 12 threads, 32 GB RAM (+ zram), CachyOS, kernel 7.3.6 - Wine from GE-Proton 11-14, vkd3d-proton v3.1 + #257's patch, with `subprojects/dxil-spirv` moved to `53aac418` (the #611 fix), `-Db_ndebug=true`; DXVK from GE-Proton; DXC 1.9.2609.5 - XCL cross-built for `x86_64-pc-windows-msvc`, release. #1316 at `c3d119c` (on `main` `47efa2e`); `main` `47efa2e` and #1426 `bc93a3a` for comparison - Both `ActivateProbes` variants extracted from the retail 1.0.2.1 `shaders.rpf`, run through `xcl shaders <folder> --precompile [--pipelines]`, 4 memory windows, native wave64. Empty `XCL_DXIL_CACHE` per backend, `VKD3D_SHADER_CACHE_PATH=0`, `MESA_SHADER_CACHE_DISABLE=true`, `XCL_PSO_DISK_CACHE=0`, `XCL_PIPELINE_THREADS=1`, a 300 s cap per step **Results (both variants together)** | backend | DXIL per variant | translate + DXC | `CreateComputePipelineState`, both | peak RSS | |---|---|---|---|---| | `main` (HLSL) | 23.28 / 23.36 MB | 64.6 s | not done at 300 s | 7.3 GB | | #1426 direct DXIL (`XCL_DIRECT_DXIL=1`) | 80.9 / 81.2 MB | 6.8 s | not done at 300 s | 14.4 GB | | **#1316 compact** (`auto`) | **0.77 / 0.87 MB** | **4.8 s** | not done at 300 s | 0.36 GB | | #1316 compact + dxil-spirv legacy structurizer | 0.77 / 0.87 MB | 4.8 s | **made, 149 s (~75 s each)** | 4.0 GB | - The pipeline build runs on one thread the whole time (one core at 99 %), so `XCL_PIPELINE_THREADS` does not help a single program. - The legacy structurizer is not exposed by vkd3d-proton v3.1. I enabled it with a local 10-line patch in `libs/vkd3d-shader/dxil.c` (an env var that adds `DXIL_SPV_OPTION_LEGACY_STRUCTURIZER`), so that row needs a patched vkd3d-proton. **Caveat on the legacy structurizer:** in the game, the legacy structurizer together with the pipeline preload workers ended about half of the runs within 3 s (6 runs). The crash is `err:vulkan:vkCreateComputePipelines Exception 0xc0000005 in Unix call`, inside RADV, then `process ends with status 0x3`. With either the legacy structurizer or `XCL_PSO_PRELOAD=0` alone the same runs were clean. I did not find which pipeline triggers it. dxil-spirv's header marks the option as deprecated, so it is a workaround to measure with, not one to recommend. **In the game** (retail 1.0.2.1, saved setup, `XCL_COHERENT_MB=512`, scripted presses): with #1316 + #1288 merged locally, the legacy structurizer, `XCL_PSO_PRELOAD=0`, and both `ActivateProbes` pipelines built once beforehand with `xcl shaders --precompile --pipelines`, the title loaded both from the driver blobs in 16 and 33 ms. It got past the point where every earlier run on this machine ended (`+0x23cf683` about 30 s after world loading starts). The next stop is the compact program `15ec6daefb19a780` at 134 s ("19949 blocks of 11909 texts need a 9975-word table"). The process was then ended by the kernel's OOM killer at 181 s at 22.7 GB anon RSS. I have not confirmed which shader that is (`ActivateRays` would fit #1448's description), and I have not tried #1448. **Not tested** - Windows, NVIDIA, and wave32 (split wave64) forms - #1316's GPU A/B tests and the full suite on this head - Which pipeline the legacy structurizer crashes RADV on - #1448 **AI use:** Claude Code (Claude Opus 5.5) set up the runs on this machine, wrote the local vkd3d-proton switch, collected the numbers and wrote this report. No game data or game-derived DXIL is attached.
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-24 18:21 UTC · original

@⁠ezamelczyk thanks for the RADV numbers (your report). From your table, for the two ActivateProbes variants on the RX 9070 XT:

  • main (47efa2e): 23.28 / 23.36 MB of DXIL; CreateComputePipelineState of both not done at 300 s.
  • #1426 direct DXIL: 80.9 / 81.2 MB; not done at 300 s.
  • #1316 compact: 0.77 / 0.87 MB, 0.36 GB peak RSS; not done at 300 s with dxil-spirv's default structurizer, and made in 149 s (~75 s each) with the legacy structurizer from your local vkd3d-proton patch.

I added a line with this to #1316's Not tested. In your title run (with #1288, the legacy structurizer and XCL_PSO_PRELOAD=0), the run got past +0x23cf683, where your earlier runs ended, and next stopped at 15ec6daefb19a780 at 134 s, where the compact form refused it ("19949 blocks of 11909 texts need a 9975-word table"). In IvyNotFound's table that code hash is ActivateRays, the program #1448 moves to the compact form.

AI use: Claude Code (Claude Opus 5.5) wrote this reply.

**@⁠CowboyBingus** on GitHub · 2026-11-24 18:21 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7140522217) @⁠ezamelczyk thanks for the RADV numbers ([your report](https://git.gtahub.st/github/xcl-dev--xcl/pulls/1316)). From your table, for the two `ActivateProbes` variants on the RX 9070 XT: - `main` (`47efa2e`): 23.28 / 23.36 MB of DXIL; `CreateComputePipelineState` of both not done at 300 s. - #1426 direct DXIL: 80.9 / 81.2 MB; not done at 300 s. - #1316 compact: 0.77 / 0.87 MB, 0.36 GB peak RSS; not done at 300 s with dxil-spirv's default structurizer, and made in 149 s (~75 s each) with the legacy structurizer from your local vkd3d-proton patch. I added a line with this to #1316's **Not tested**. In your title run (with #1288, the legacy structurizer and `XCL_PSO_PRELOAD=0`), the run got past `+0x23cf683`, where your earlier runs ended, and next stopped at `15ec6daefb19a780` at 134 s, where the compact form refused it ("19949 blocks of 11909 texts need a 9975-word table"). In [IvyNotFound's table](https://git.gtahub.st/github/xcl-dev--xcl/pulls/1316) that code hash is `ActivateRays`, the program [#1448](https://git.gtahub.st/github/xcl-dev--xcl/pulls/1448) moves to the compact form. AI use: Claude Code (Claude Opus 5.5) wrote this reply.
Author
Owner

@⁠Gabriel260s on GitHub · 2026-11-24 18:23 UTC · original

RX 9060 XT / Windows follow-up: descriptor-heap windows did not avoid the 8 GiB private-memory threshold for the compact ActivateProbes PSO.

Same 88,863-instruction program discussed above, tested offline on the fetched PR snapshot c3d119c41601bd854fb22b96949e550a76f6de13 (base 9e3831e) with local logging immediately before and after CreateComputePipelineState. GPU: RX 9060 XT, driver 32.0.32015.7029. Windows 11 25H2 26200.9711, Rust 1.98.1 MSVC release, DXC 1.9.2602.17.

Four memory windows Compact DXIL Seconds to stop, trials 1 / 2 Private memory at stop, trials 1 / 2
Switch (XCL_HEAP_WINDOWS=0) 867,368 B 21.44 / 20.36 8,492.6 / 8,691.5 MiB
Descriptor heap (XCL_HEAP_WINDOWS=1) 781,104 B 19.39 / 19.84 8,469.7 / 8,446.0 MiB

Each trial used a fresh process, XCL_COMPACT_CS=auto, one DXC worker and one PSO worker, and DXIL prepared before the PSO pass. XCL's PSO disk cache was disabled. AMD/OS caches were left untouched. Trial order was switch/heap, then heap/switch. Time is from PSO-pass launch to harness stop, with private memory sampled approximately every 500 ms. The trace entered CreateComputePipelineState in all four runs. The harness stopped the process after crossing 8 GiB and before the call returned in every run.

The heap form produced 9.9% smaller DXIL. These observations give bounds under an 8 GiB process budget. They do not establish eventual completion time, an out-of-memory return from the driver, shader output equivalence, or gameplay. No title run was used.

AI use: Codex added local diagnostic logging, ran both pairs and checked the results. Claude Code and Gemini reviewed the earlier measurement design and interpretation.

**@⁠Gabriel260s** on GitHub · 2026-11-24 18:23 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7140572696) **RX 9060 XT / Windows follow-up: descriptor-heap windows did not avoid the 8 GiB private-memory threshold for the compact `ActivateProbes` PSO.** Same 88,863-instruction program discussed above, tested offline on the fetched PR snapshot `c3d119c41601bd854fb22b96949e550a76f6de13` (base `9e3831e`) with local logging immediately before and after `CreateComputePipelineState`. GPU: RX 9060 XT, driver `32.0.32015.7029`. Windows 11 25H2 `26200.9711`, Rust 1.98.1 MSVC release, DXC `1.9.2602.17`. | Four memory windows | Compact DXIL | Seconds to stop, trials 1 / 2 | Private memory at stop, trials 1 / 2 | | --- | ---: | ---: | ---: | | Switch (`XCL_HEAP_WINDOWS=0`) | 867,368 B | 21.44 / 20.36 | 8,492.6 / 8,691.5 MiB | | Descriptor heap (`XCL_HEAP_WINDOWS=1`) | 781,104 B | 19.39 / 19.84 | 8,469.7 / 8,446.0 MiB | Each trial used a fresh process, `XCL_COMPACT_CS=auto`, one DXC worker and one PSO worker, and DXIL prepared before the PSO pass. XCL's PSO disk cache was disabled. AMD/OS caches were left untouched. Trial order was switch/heap, then heap/switch. Time is from PSO-pass launch to harness stop, with private memory sampled approximately every 500 ms. The trace entered `CreateComputePipelineState` in all four runs. The harness stopped the process after crossing 8 GiB and before the call returned in every run. The heap form produced 9.9% smaller DXIL. These observations give bounds under an 8 GiB process budget. They do not establish eventual completion time, an out-of-memory return from the driver, shader output equivalence, or gameplay. No title run was used. AI use: Codex added local diagnostic logging, ran both pairs and checked the results. Claude Code and Gemini reviewed the earlier measurement design and interpretation.
Author
Owner

@⁠MiharaxD on GitHub · 2026-11-24 18:59 UTC · original

Reposted: the earlier copy of this comment was deleted.

Test report for #1315 + #1316 on a 32-lane NVIDIA card with 8 GB, head 5e312d5.

Tested

  • RTX 3070 Ti 8 GB (driver 621.01), Intel i5-14400F, 32 GB RAM, Windows 11 Pro 10.0.26300, Rust 1.100.0, DXC 1.9.2602.17.
  • cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4 (debug) on 5e312d5: 773 passed, 0 failed, 41 ignored (lib tests 729 / 0 / 21). All tests_compact A/B tests pass, including gpu_compact_programs_with_four_windows and gpu_compact_compute_dispatch. gpu_compact_sample_big_cs ran without XCL_SAMPLE_BIG_CS, so it did nothing.
  • SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware, gpu_compact_native_wave64_form.
  • hle::kernelx::tests::xmem_virtual_query_marks_cpu_readable_memory, which fails in your report, passes here.

Regression run
scripts/smoke.ps1 -Game <game folder> -Seconds 60 (release builds, menus, no input) on main 930e8b4 and this PR's head 5e312d5.
The two xcl-smoke blocks are left out, because their title: line named the game's folder. Both runs: exit 0x0, 0 device removals, 0 crashes, 60 60 60 presents per 2 s at the end; frames shown 1551 / 1575, peak commit 15988 MB / 16046 MB (main / this PR).

World load (story), by hand, release builds

  • main 930e8b4 and the earlier head 490ccbb both stop with the known 0xc0000005 write at 0x0 in game_scarlett_master.exe+0x23cf683 (#675, #846, #534), at 124 s and 138 s, with 29.6 GB and 28.9 GB committed.
  • No program reached the compact backend before that: no compact backend line in the PR's log, so ActivateProbes / ActivateRays were not compiled.

Not tested

  • The compact form on the title's own large programs: this machine stops at +0x23cf683 before the world load compiles them.
  • The world load on 5e312d5 (only on 490ccbb, which differs from it by 9 lines in gpu/recomp/mod.rs).
  • AMD, native wave64.

AI use: Claude Code (Claude Opus 5.5) ran the builds, tests and title runs and wrote this report; I checked it before posting.

**@⁠MiharaxD** on GitHub · 2026-11-24 18:59 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7141446376) *Reposted: the earlier copy of this comment was deleted.* Test report for #1315 + #1316 on a 32-lane NVIDIA card with 8 GB, head `5e312d5`. **Tested** - RTX 3070 Ti 8 GB (driver 621.01), Intel i5-14400F, 32 GB RAM, Windows 11 Pro 10.0.26300, Rust 1.100.0, DXC 1.9.2602.17. - `cargo build --workspace`, then `cargo test --workspace --no-fail-fast -- --test-threads=4` (debug) on `5e312d5`: **773 passed, 0 failed, 41 ignored** (lib tests 729 / 0 / 21). All `tests_compact` A/B tests pass, including `gpu_compact_programs_with_four_windows` and `gpu_compact_compute_dispatch`. `gpu_compact_sample_big_cs` ran without `XCL_SAMPLE_BIG_CS`, so it did nothing. - SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`, `gpu_compact_native_wave64_form`. - `hle::kernelx::tests::xmem_virtual_query_marks_cpu_readable_memory`, which fails in your report, passes here. **Regression run** `scripts/smoke.ps1 -Game <game folder> -Seconds 60` (release builds, menus, no input) on `main` `930e8b4` and this PR's head `5e312d5`. *The two `xcl-smoke` blocks are left out, because their `title:` line named the game's folder. Both runs: exit 0x0, 0 device removals, 0 crashes, 60 60 60 presents per 2 s at the end; frames shown 1551 / 1575, peak commit 15988 MB / 16046 MB (main / this PR).* **World load (story), by hand, release builds** - `main` `930e8b4` and the earlier head `490ccbb` both stop with the known `0xc0000005` write at 0x0 in `game_scarlett_master.exe+0x23cf683` (#675, #846, #534), at 124 s and 138 s, with 29.6 GB and 28.9 GB committed. - No program reached the compact backend before that: no `compact backend` line in the PR's log, so `ActivateProbes` / `ActivateRays` were not compiled. **Not tested** - The compact form on the title's own large programs: this machine stops at +0x23cf683 before the world load compiles them. - The world load on `5e312d5` (only on `490ccbb`, which differs from it by 9 lines in `gpu/recomp/mod.rs`). - AMD, native wave64. **AI use:** Claude Code (Claude Opus 5.5) ran the builds, tests and title runs and wrote this report; I checked it before posting.
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-24 19:16 UTC · original

Rebased onto main c160d86 (after #1426) on top of #1315's new head; the head is now 5749171. The conflicts were in gpu/recomp/pso.rs, where #1426's XCL_DIRECT_DXIL routing and this PR's XCL_COMPACT_CS routing now sit side by side: a compute program XCL_COMPACT_CS routes to the compact form goes to the compact form first, and every other compute program goes to the direct translator as before (goes_direct, unit test the_compact_routing_goes_before_direct_dxil; details in the description). Suite, smoke and description are updated for the new head.

AI use: Claude Code (Claude Opus 5.5) wrote this comment.

**@⁠CowboyBingus** on GitHub · 2026-11-24 19:16 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7141862653) Rebased onto `main` `c160d86` (after #1426) on top of #1315's new head; the head is now [`5749171`](https://git.gtahub.st/github/xcl-dev--xcl/pulls/1316/commits/5749171b163a1df214908d15b4928c0222850993). The conflicts were in `gpu/recomp/pso.rs`, where #1426's `XCL_DIRECT_DXIL` routing and this PR's `XCL_COMPACT_CS` routing now sit side by side: a compute program `XCL_COMPACT_CS` routes to the compact form goes to the compact form first, and every other compute program goes to the direct translator as before (`goes_direct`, unit test `the_compact_routing_goes_before_direct_dxil`; details in the description). Suite, smoke and description are updated for the new head. AI use: Claude Code (Claude Opus 5.5) wrote this comment.
Author
Owner

@⁠madaraXor on GitHub · 2026-11-24 19:40 UTC · original

AMD RDNA2 (Windows driver) numbers for the three giant programs, in the title and in xcl shaders --precompile --pipelines

Setup: AMD Radeon RX 6700 XT 12 GB (RDNA2, native wave64), driver 32.0.21045.29003, Ryzen 5 5600X, 16 GB RAM + a 32–96 GB page file, Windows 10 Pro 22H2, DXC 1.8.2502.11, Rust 1.90.0, release. Head 5e312d5b3 (with #1315 711897240) merged into main 930e8b4 + other PRs (#684, #615, #495, #1291, #1288, #1182, #1248, later #1195 and #757–#759), retail title 1.0.2.1.

  • ActivateProbes (d122faa48eb0afdc / 56c0cd3b82a00c6e): compact form 716 691 B HLSL, DXC (default level) ~8 s, driver CreateComputePipelineState 101 s (1 275 532 B DXIL); the title's commit went from ~28 GB to a ~49 GB peak during it (one other compile alongside) and back. Afterwards it comes from the driver's cache in 7–24 ms.
  • ActivateRays (15ec6daefb19a780 / 95cc13288a27a96e): refused by the 8 192-word table (9 975 words) and translated as before; within two minutes of that the process passed 89 GB of commit (DXC or the driver – I did not tell them apart) and my guard stopped it.
    • As a local experiment I raised MAX_TABLE_WORDS to 12 288. The compact HLSL is then 5 254 267 B; DXC at -O1 had not finished after 18 min; at -O0 it took ~3 min for 11 562 148 B of DXIL. The driver had not built that after 53 min in --precompile --pipelines, at ~100 GB of system commit, when I stopped it. So on this driver the compact form does not save ActivateRays.
  • ActivateProbesTarget (79dc576c52b3dc23 / 958400d2caf07244, which I take to be the same program): compact 659 094 B HLSL, 774 257 B DXIL. A driver compile that ran for over 20 min on one core in the title (memory flat) was most likely this one; I did not confirm which pipeline it was.

Not tested: NVIDIA / RDNA3-4 drivers with these sizes; whether a newer AMD driver branch builds these faster (this card's branch is at 32.0.21045).

AI use: Claude Code, Claude Opus 5.5 ran the builds and runs on my PC and wrote this report. Counts, times and sizes only; the local changes named above are not in this PR.

**@⁠madaraXor** on GitHub · 2026-11-24 19:40 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7142437846) **AMD RDNA2 (Windows driver) numbers for the three giant programs, in the title and in `xcl shaders --precompile --pipelines`** **Setup:** AMD Radeon RX 6700 XT 12 GB (RDNA2, native wave64), driver 32.0.21045.29003, Ryzen 5 5600X, 16 GB RAM + a 32–96 GB page file, Windows 10 Pro 22H2, DXC 1.8.2502.11, Rust 1.90.0, release. Head `5e312d5b3` (with #1315 `711897240`) merged into `main` `930e8b4` + other PRs (#684, #615, #495, #1291, #1288, #1182, #1248, later #1195 and #757–#759), retail title 1.0.2.1. - **ActivateProbes** (`d122faa48eb0afdc` / `56c0cd3b82a00c6e`): compact form 716 691 B HLSL, DXC (default level) ~8 s, **driver `CreateComputePipelineState` 101 s** (1 275 532 B DXIL); the title's commit went from ~28 GB to a ~49 GB peak during it (one other compile alongside) and back. Afterwards it comes from the driver's cache in 7–24 ms. - **ActivateRays** (`15ec6daefb19a780` / `95cc13288a27a96e`): refused by the 8 192-word table (9 975 words) and translated as before; within two minutes of that the process passed 89 GB of commit (DXC or the driver – I did not tell them apart) and my guard stopped it. - As a local experiment I raised `MAX_TABLE_WORDS` to 12 288. The compact HLSL is then 5 254 267 B; DXC at `-O1` had not finished after 18 min; at `-O0` it took ~3 min for 11 562 148 B of DXIL. The driver had not built that after 53 min in `--precompile --pipelines`, at ~100 GB of system commit, when I stopped it. So on this driver the compact form does not save ActivateRays. - **ActivateProbesTarget** (`79dc576c52b3dc23` / `958400d2caf07244`, which I take to be the same program): compact 659 094 B HLSL, 774 257 B DXIL. A driver compile that ran for over 20 min on one core in the title (memory flat) was most likely this one; I did not confirm which pipeline it was. **Not tested:** NVIDIA / RDNA3-4 drivers with these sizes; whether a newer AMD driver branch builds these faster (this card's branch is at 32.0.21045). AI use: Claude Code, Claude Opus 5.5 ran the builds and runs on my PC and wrote this report. Counts, times and sizes only; the local changes named above are not in this PR.
Author
Owner

@⁠Frtuchinno on GitHub · 2026-11-24 15:50 UTC · original · edited 2026-11-24 19:41 UTC

Test report for #1316 on AMD RDNA3 (native wave64), Windows: head 5749171, 882 passed, 0 failed, 42 ignored

Edited: rerun on the current head 5749171 (rebased onto main c160d86). Earlier versions of this comment were on 5e312d5, ee904f1, 57377fb (on 930e8b4) and c3d119c (on 9e3831e), with no failures.

This covers the "Not tested: AMD, wave64 hardware" line of #1315 / #1316. On this adapter gpu_compact_native_wave64_form runs instead of being skipped, and every compact GPU test ran in the native wave64 form.

Tested

  • Head 5749171 (#1316, contains #1315's commits), against its base main c160d86
  • AMD Radeon RX 7800 XT (driver 32.0.32029.2010), Ryzen 5 7600, 32 GB RAM, Windows 11 Pro build 26300
  • rustc 1.100.0 stable-x86_64-pc-windows-msvc, DXC 1.9.2602.17 (Windows SDK 10.0.26100.0), debug
  • Adapter: default selection (auto, high-performance order), which is the RX 7800 XT; the other adapter is the CPU's integrated GPU
  • cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4
    • main c160d86: 858 passed, 0 failed, 42 ignored (lib tests 809 / 0 / 22)
    • 5749171: 882 passed, 0 failed, 42 ignored (lib tests 833 / 0 / 22)
    • SKIPPED on both, so not from this PR: heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows)
    • Earlier heads: c3d119c 799 / 0 / 41 (on 9e3831e, 776 / 0 / 41); on 930e8b4, 5e312d5 and ee904f1 773 / 0 / 41 and 57377fb 774 / 0 / 41
  • cargo test -p xcl --lib compact -- --test-threads=1 --nocapture on 5749171: 24 passed, 0 failed. Output lines of note:
    • gpu_compact_native_wave64_form ... ok (execz nest, backward loops, buffer_load_format_x: both backends agree)
    • memory windows (wave64 native, 2 windows): 263172 result bytes identical
    • execz nest (wave64 native, unstructured, 4 windows): 394244 result bytes identical

Not tested

  • gpu_compact_sample_big_cs: XCL_SAMPLE_BIG_CS not set, so it returned without running
  • No retail title or shader pack on this machine: no xcl shaders pass, no title run, no smoke run, no driver compile times for the large programs
  • RDNA2 (the iGPU on this machine was not selected), Linux / Wine
  • Release build

AI use

  • Claude Code (Claude Opus 5.5) installed the toolchain, ran the commands above and wrote this report.
**@⁠Frtuchinno** on GitHub · 2026-11-24 15:50 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7136702332) · edited 2026-11-24 19:41 UTC **Test report for #1316 on AMD RDNA3 (native wave64), Windows: head `5749171`, 882 passed, 0 failed, 42 ignored** *Edited: rerun on the current head `5749171` (rebased onto `main` `c160d86`). Earlier versions of this comment were on `5e312d5`, `ee904f1`, `57377fb` (on `930e8b4`) and `c3d119c` (on `9e3831e`), with no failures.* This covers the "Not tested: AMD, wave64 hardware" line of #1315 / #1316. On this adapter `gpu_compact_native_wave64_form` runs instead of being skipped, and every compact GPU test ran in the native wave64 form. **Tested** - Head `5749171` (#1316, contains #1315's commits), against its base `main` `c160d86` - AMD Radeon RX 7800 XT (driver 32.0.32029.2010), Ryzen 5 7600, 32 GB RAM, Windows 11 Pro build 26300 - rustc 1.100.0 `stable-x86_64-pc-windows-msvc`, DXC 1.9.2602.17 (Windows SDK 10.0.26100.0), debug - Adapter: default selection (`auto`, high-performance order), which is the RX 7800 XT; the other adapter is the CPU's integrated GPU - `cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4` - `main` `c160d86`: 858 passed, 0 failed, 42 ignored (lib tests 809 / 0 / 22) - `5749171`: 882 passed, 0 failed, 42 ignored (lib tests 833 / 0 / 22) - SKIPPED on both, so not from this PR: `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows) - Earlier heads: `c3d119c` 799 / 0 / 41 (on `9e3831e`, 776 / 0 / 41); on `930e8b4`, `5e312d5` and `ee904f1` 773 / 0 / 41 and `57377fb` 774 / 0 / 41 - `cargo test -p xcl --lib compact -- --test-threads=1 --nocapture` on `5749171`: 24 passed, 0 failed. Output lines of note: - `gpu_compact_native_wave64_form ... ok` (execz nest, backward loops, buffer_load_format_x: both backends agree) - `memory windows (wave64 native, 2 windows): 263172 result bytes identical` - `execz nest (wave64 native, unstructured, 4 windows): 394244 result bytes identical` **Not tested** - `gpu_compact_sample_big_cs`: `XCL_SAMPLE_BIG_CS` not set, so it returned without running - No retail title or shader pack on this machine: no `xcl shaders` pass, no title run, no smoke run, no driver compile times for the large programs - RDNA2 (the iGPU on this machine was not selected), Linux / Wine - Release build **AI use** - Claude Code (Claude Opus 5.5) installed the toolchain, ran the commands above and wrote this report.
Author
Owner

@⁠Pipodi on GitHub · 2026-11-24 19:58 UTC · original

@⁠CowboyBingus a heads-up: #1524 was just merged (main 85e3826), and #1316 now conflicts with main in crates/xcl/src/gpu/recomp/pso.rs.

  • The text conflict: #1524 made console_translation pub(crate), and #1316 changes its signature (the form: CompactCs argument, and (Translation, &str, bool) returned).
  • A new caller: #1524 calls it in crates/xcl/src/shaders.rs:945 (--export-hlsl / --measure-pso) with the old signature. That caller needs the form too, or --measure-pso will time the non-compact pipeline of a program the runtime would build in the compact form.

#1448 and #1692 are stacked on #1316, so I'll rebase both once your new head is up.

AI use: Claude Code (Claude Opus 5.5) found the conflict and wrote this comment.

**@⁠Pipodi** on GitHub · 2026-11-24 19:58 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7142870073) @⁠CowboyBingus a heads-up: #1524 was just merged (`main` `85e3826`), and #1316 now conflicts with `main` in `crates/xcl/src/gpu/recomp/pso.rs`. - **The text conflict:** #1524 made `console_translation` `pub(crate)`, and #1316 changes its signature (the `form: CompactCs` argument, and `(Translation, &str, bool)` returned). - **A new caller:** #1524 calls it in `crates/xcl/src/shaders.rs:945` (`--export-hlsl` / `--measure-pso`) with the old signature. That caller needs the form too, or `--measure-pso` will time the non-compact pipeline of a program the runtime would build in the compact form. #1448 and #1692 are stacked on #1316, so I'll rebase both once your new head is up. **AI use:** Claude Code (Claude Opus 5.5) found the conflict and wrote this comment.
Author
Owner

@⁠thaqiart139-alt on GitHub · 2026-11-24 15:41 UTC · original · edited 2026-11-24 20:00 UTC

Edited: rerun on the current head 5749171 (rebased onto main c160d86, on top of #1315's a45ac0c). The first runs were on 5e312d5 and 6cefa5c, against main 930e8b4, with the same result: all pass on both GPUs.

Test report for this PR's head 5749171 (the stack with #1315) on AMD RDNA2 with native 64-lane waves, and on a 32-lane NVIDIA card.

Tested

  • GPUs: AMD Radeon(TM) Graphics, the RDNA2 iGPU of a Ryzen 7 7800X3D (native wave64, driver 32.0.21045.29003), and NVIDIA GeForce RTX 5070 (driver 32.0.16.2101). Ryzen 7 7800X3D, 32 GB, Windows 11 Home build 26300, Rust 1.100.0, debug, DXC 1.9.2602.17 (Windows SDK 10.0.26100.0). Adapter chosen with XCL_ADAPTER=radeon / nvidia; the SKIPPED lists below show which GPU each run used.
  • cargo test --workspace -- --test-threads=4, this PR against its base:
main c160d86 this PR 5749171
RTX 5070 858 passed, 0 failed, 42 ignored 882 passed, 0 failed, 42 ignored
Radeon iGPU 858 passed, 0 failed, 42 ignored 882 passed, 0 failed, 42 ignored
Radeon iGPU, XCL_COMPACT_CS=1 – 882 passed, 0 failed, 42 ignored
  • With XCL_COMPACT_CS=1 the compact backend logged two compute programs more than with the default (2 and 22 instructions), and the suite still passed. That is little extra coverage: most of the suite's compute programs do not go through console_translation.
  • SKIPPED, the same on c160d86 except gpu_compact_native_wave64_form, which is new in the stack:
    • RTX 5070: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware and gpu_compact_native_wave64_form (no wave64); heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
    • iGPU: gpu::dxil::graphics::tests::emitted_ms_primitive_attribute_reaches_the_pixel_shader, gpu::dxil::graphics::tests::emitted_ms_ps_draw_a_triangle, gpu_geometry_mode_es_gs_strip and gpu_mesh_mode_two_passes (no mesh shaders); heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).

Not tested

  • A title run, the giant retail programs, DXC or driver timings, other AMD generations, Linux / Wine.

AI use

  • Claude Code (Claude Opus 5.5) ran the builds and tests and wrote this report.
**@⁠thaqiart139-alt** on GitHub · 2026-11-24 15:41 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7136456619) · edited 2026-11-24 20:00 UTC *Edited: rerun on the current head `5749171` (rebased onto `main` `c160d86`, on top of #1315's `a45ac0c`). The first runs were on `5e312d5` and `6cefa5c`, against `main` `930e8b4`, with the same result: all pass on both GPUs.* Test report for this PR's head `5749171` (the stack with #1315) on AMD RDNA2 with native 64-lane waves, and on a 32-lane NVIDIA card. **Tested** - GPUs: AMD Radeon(TM) Graphics, the RDNA2 iGPU of a Ryzen 7 7800X3D (native wave64, driver 32.0.21045.29003), and NVIDIA GeForce RTX 5070 (driver 32.0.16.2101). Ryzen 7 7800X3D, 32 GB, Windows 11 Home build 26300, Rust 1.100.0, debug, DXC 1.9.2602.17 (Windows SDK 10.0.26100.0). Adapter chosen with `XCL_ADAPTER=radeon` / `nvidia`; the SKIPPED lists below show which GPU each run used. - `cargo test --workspace -- --test-threads=4`, this PR against its base: | | `main` `c160d86` | this PR `5749171` | |---|---|---| | RTX 5070 | 858 passed, 0 failed, 42 ignored | 882 passed, 0 failed, 42 ignored | | Radeon iGPU | 858 passed, 0 failed, 42 ignored | 882 passed, 0 failed, 42 ignored | | Radeon iGPU, `XCL_COMPACT_CS=1` | – | 882 passed, 0 failed, 42 ignored | - With `XCL_COMPACT_CS=1` the compact backend logged two compute programs more than with the default (2 and 22 instructions), and the suite still passed. That is little extra coverage: most of the suite's compute programs do not go through `console_translation`. - SKIPPED, the same on `c160d86` except `gpu_compact_native_wave64_form`, which is new in the stack: - RTX 5070: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` and `gpu_compact_native_wave64_form` (no wave64); `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - iGPU: `gpu::dxil::graphics::tests::emitted_ms_primitive_attribute_reaches_the_pixel_shader`, `gpu::dxil::graphics::tests::emitted_ms_ps_draw_a_triangle`, `gpu_geometry_mode_es_gs_strip` and `gpu_mesh_mode_two_passes` (no mesh shaders); `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). **Not tested** - A title run, the giant retail programs, DXC or driver timings, other AMD generations, Linux / Wine. **AI use** - Claude Code (Claude Opus 5.5) ran the builds and tests and wrote this report.
Author
Owner

@⁠einfachama on GitHub · 2026-11-24 20:00 UTC · original · edited 2026-11-24 20:01 UTC

Test report for #1316 with heap windows (XCL_HEAP_WINDOWS=1) on my retail title, on an 8 GB NVIDIA card. It covers two of the "Not tested" items: the compact backend with #680's heap windows, and a title run that reaches 56c0cd3b82a00c6e.

  • Compact form and heap windows: they work together here, with no fallback or refusal in 3 runs.
  • 56c0cd3b82a00c6e: built in about 40 s, then loaded from its blob in later runs.
  • The title: it still doesn't come back. With #1288 holding its watchdog, it waits for 15ec6daefb19a780, which the compact form refuses, and for a chain of ~1 MB programs.

Setup

  • Hardware: NVIDIA GeForce RTX 4060 8 GB (driver 621.24, 32-lane waves only), Ryzen 7 5800X, 32 GB RAM (commit limit 63.9 GB), Windows 11 Pro 26300, Rust 1.100.0, DXC 1.9.2602.17, release builds.
  • Stack, local and not pushed: main c160d86 + #899 f3b7dd6 + one local log line (what a bind waits for, logged at the start of the wait; not part of any PR) + #1288 9cdae10 + #1315 / #1316 as of 30a96a3 + #1321 0936337.
  • One conflict, mechanical: #1321 against #1315's prepare() in the recompiler's translate. I kept #1315's side and put #1321's let program = code; at the top of the new translate. #1321's size check after emit_structured merged unchanged. #1321's net change is its own +10 / +32.
  • Current heads: #1316's 5749171 has the same tree as 30a96a3 (commit message only). #1321's 69a892c is a rebase onto c160d86 with the same changed lines as 0936337.
  • Settings: XCL_HEAP_WINDOWS=1, XCL_COMPACT_CS unset (auto), XCL_NETWORK=0, XCL_RUN_SECONDS=420, XCL_THREAD_DUMP_AT=100,130,160,200,260,340, A pressed at 26 s and 30 s; the world load starts by itself at ~66 s.
  • 3 runs back to back on warm caches left by earlier runs (DXIL, driver blobs, the earlier-run pipeline list), no restore between them. No A/B on this base: every run has this whole stack.
  • Tests on this stack (debug), all passed:
    • cargo test -p xcl --lib compact: 24 passed (SKIPPED gpu_compact_native_wave64_form: no wave64);
    • --lib memory_windows: 7 passed (gpu_memory_windows_from_the_heap, gpu_compact_memory_windows, gpu_compact_memory_windows_loop among them);
    • heap_window 2, raw_window_view 1, window_views 1, oversized_structured 1, pso_async 8, big_compile 2;
    • --test gpu_compute_e2e heap: SKIPPED without heap windows, passed with XCL_HEAP_WINDOWS=1.
    • The whole suite was not run.

Compact form with heap windows: no problem seen

  • In 3 runs, all 0:
    • the driver ran out of memory on a pipeline with heap windows (switch-form fallbacks);
    • DXC refused the compact form;
    • driver rejections of a translated compute pipeline;
    • refused driver blobs;
    • device removals.
  • 56c0cd3b82a00c6e ([SHADER] compact backend, compute program d122faa48eb0afdc: 88863 instructions, 718281 B HLSL):
run 1 runs 2 and 3
translated (compact form) 7.4 s, on a preload worker from XCL's translated cache
HLSL 718 281 B –
DXIL 983 404 B 983 404 B
DXC about 16 s (translation at 7.4 s to the start of the driver's build at 23.2 s; one or two DXC compiles were running 8–24 s) –
driver 23.9 s (983404 B DXIL, 23913 ms) 70 ms / 99 ms from the driver blob
blob kept (… 23872 ms, 849 KB) used
  • The same program without #1316, earlier the same night:
    • another base and build: main 9e3831e + #899 + the same local line + #1288, XCL_HEAP_WINDOWS=1;
    • its heap form was 28 975 428 B of DXIL;
    • in two runs a preload worker was in the NVIDIA compiler with it in every thread dump from 100 s to 260 s, and the bind waiting for it was still waiting 171 s and 174 s later, when my memory guard ended the runs;
    • in a third run, the first to meet it, its DXC compile ended at ~154 s (XCL wrote the 28 975 428 B translation then). The worker was then in the driver from 160 s to at least 340 s, unfinished when the run ended at 420 s.
  • For comparison in this thread: the compact form's DXIL here is 983 404 B with heap windows. IvyNotFound's switch-form build was 1 053 272 B.

The title run

run 1 run 2 run 3
title's watchdog (+0x23cf683) no no no
end the 420 s limit, exit 0 the same the same
last 2 s window with a present 96.1 s 94.1 s 96.2 s
presents from 100 s to 420 s 0 0 0
peak commit (XCL's memory lines) 31 541 MB 31 735 MB 31 660 MB
lowest available physical memory 1.95 GB 2.03 GB 1.95 GB
  • What holds it, in all 3 runs:
    • 15ec6daefb19a780. The compact form refuses it: [SHADER] compact backend, compute program 15ec6daefb19a780: compact form: 19949 blocks of 11909 texts need a 9975-word table (at most 8192) – translated as before. With #1321 it is then translated in the pc-block form, 13 297 372 B of DXIL. XCL's translated cache keeps that DXIL under 95cc13288a27a96e, written when its DXC compile ended.
      • Run 1: a title thread built it in its own bind, from 96.3 s. It was in DXC for about 80 s (one DXC compile running from 96.5 s to ~176 s; the thread in dxc::compile at the 100, 130 and 160 s dumps), then in the NVIDIA compiler at 200, 260 and 340 s. Not finished at 420 s, 244 s after DXC.
      • Runs 2 and 3: it is on the earlier-run list, so a preload worker builds it. A bind waits for it from 93.0 s / 94.6 s, the worker in the driver in every dump from 100 s to 340 s. Not finished in 327 s / 325 s. No driver blob of it exists.
    • A chain of new compute programs on another title thread, each built in the bind, one after another from ~127–148 s to the end:
      • 9–11 per run, 627–1 087 KB of DXIL, 10–21 s in the driver;
      • each bind's wait 15–45 s (DXC, then the driver).
    • Graphics binds did not wait 250 ms or more in these runs.
  • In the last dump (340 s), the other ~47 title threads were idle. #1288's sleep hold had only the watchdog's thread.
  • Memory: XCL's own pools were flat after 100 s. The process commit stayed between 28.8 and 31.7 GB from 100 s to the end (at 400 s: 30.5 / 31.4 / 31.4 GB). No guard kill, no crash.

Not tested

  • An A/B on this base (with and without #1316), and runs without #1288: here #1288 keeps the run going past the watchdog.
  • Cold caches: all 3 runs started from caches earlier runs had warmed.
  • XCL_COMPACT_CS=0 / 1, and the switch form (XCL_HEAP_WINDOWS unset) on this stack.
  • 958400d2caf07244, which another report here takes to be the third program of this family: the title made its pipeline at ~5 s in every run, but it was not translated or built in any of them.
  • Whether the compact program computes the right result in the title: no world frame was drawn.
  • AMD, other NVIDIA cards, Linux / Wine. The whole test suite.

AI use

  • Claude Code (Claude Opus 5.5 & Claude Fable 5.2) merged the stack, resolved the conflict, added the local log line, ran the tests and the runs, counted the results from the logs, thread dumps and caches, and wrote this report; I checked it before posting.
**@⁠einfachama** on GitHub · 2026-11-24 20:00 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7142918052) · edited 2026-11-24 20:01 UTC Test report for #1316 with heap windows (`XCL_HEAP_WINDOWS=1`) on my retail title, on an 8 GB NVIDIA card. It covers two of the "Not tested" items: the compact backend with #680's heap windows, and a title run that reaches `56c0cd3b82a00c6e`. - **Compact form and heap windows:** they work together here, with no fallback or refusal in 3 runs. - **`56c0cd3b82a00c6e`:** built in about 40 s, then loaded from its blob in later runs. - **The title:** it still doesn't come back. With #1288 holding its watchdog, it waits for `15ec6daefb19a780`, which the compact form refuses, and for a chain of ~1 MB programs. **Setup** - **Hardware:** NVIDIA GeForce RTX 4060 8 GB (driver 621.24, 32-lane waves only), Ryzen 7 5800X, 32 GB RAM (commit limit 63.9 GB), Windows 11 Pro 26300, Rust 1.100.0, DXC 1.9.2602.17, release builds. - **Stack, local and not pushed:** `main` `c160d86` + #899 `f3b7dd6` + one local log line (what a bind waits for, logged at the start of the wait; not part of any PR) + #1288 `9cdae10` + #1315 / #1316 as of `30a96a3` + #1321 `0936337`. - **One conflict, mechanical:** #1321 against #1315's `prepare()` in the recompiler's `translate`. I kept #1315's side and put #1321's `let program = code;` at the top of the new `translate`. #1321's size check after `emit_structured` merged unchanged. #1321's net change is its own +10 / +32. - **Current heads:** #1316's `5749171` has the same tree as `30a96a3` (commit message only). #1321's `69a892c` is a rebase onto `c160d86` with the same changed lines as `0936337`. - **Settings:** `XCL_HEAP_WINDOWS=1`, `XCL_COMPACT_CS` unset (auto), `XCL_NETWORK=0`, `XCL_RUN_SECONDS=420`, `XCL_THREAD_DUMP_AT=100,130,160,200,260,340`, A pressed at 26 s and 30 s; the world load starts by itself at ~66 s. - **3 runs back to back** on warm caches left by earlier runs (DXIL, driver blobs, the earlier-run pipeline list), no restore between them. **No A/B on this base**: every run has this whole stack. - **Tests on this stack (debug), all passed:** - `cargo test -p xcl --lib compact`: 24 passed (SKIPPED `gpu_compact_native_wave64_form`: no wave64); - `--lib memory_windows`: 7 passed (`gpu_memory_windows_from_the_heap`, `gpu_compact_memory_windows`, `gpu_compact_memory_windows_loop` among them); - `heap_window` 2, `raw_window_view` 1, `window_views` 1, `oversized_structured` 1, `pso_async` 8, `big_compile` 2; - `--test gpu_compute_e2e heap`: SKIPPED without heap windows, passed with `XCL_HEAP_WINDOWS=1`. - The whole suite was not run. **Compact form with heap windows: no problem seen** - In 3 runs, all 0: - `the driver ran out of memory on a pipeline with heap windows` (switch-form fallbacks); - `DXC refused the compact form`; - driver rejections of a translated compute pipeline; - refused driver blobs; - device removals. - **`56c0cd3b82a00c6e`** (`[SHADER] compact backend, compute program d122faa48eb0afdc: 88863 instructions, 718281 B HLSL`): | | run 1 | runs 2 and 3 | |---|---|---| | translated (compact form) | 7.4 s, on a preload worker | from XCL's translated cache | | HLSL | 718 281 B | – | | DXIL | **983 404 B** | 983 404 B | | DXC | about 16 s (translation at 7.4 s to the start of the driver's build at 23.2 s; one or two DXC compiles were running 8–24 s) | – | | driver | **23.9 s** (`983404 B DXIL, 23913 ms`) | **70 ms / 99 ms** from the driver blob | | blob | kept (`… 23872 ms, 849 KB`) | used | - **The same program without #1316, earlier the same night:** - another base and build: `main` `9e3831e` + #899 + the same local line + #1288, `XCL_HEAP_WINDOWS=1`; - its heap form was 28 975 428 B of DXIL; - in two runs a preload worker was in the NVIDIA compiler with it in every thread dump from 100 s to 260 s, and the bind waiting for it was still waiting 171 s and 174 s later, when my memory guard ended the runs; - in a third run, the first to meet it, its DXC compile ended at ~154 s (XCL wrote the 28 975 428 B translation then). The worker was then in the driver from 160 s to at least 340 s, unfinished when the run ended at 420 s. - For comparison in this thread: the compact form's DXIL here is 983 404 B with heap windows. IvyNotFound's switch-form build was 1 053 272 B. **The title run** | | run 1 | run 2 | run 3 | |---|---|---|---| | title's watchdog (`+0x23cf683`) | no | no | no | | end | the 420 s limit, exit 0 | the same | the same | | last 2 s window with a present | 96.1 s | 94.1 s | 96.2 s | | presents from 100 s to 420 s | 0 | 0 | 0 | | peak commit (XCL's memory lines) | 31 541 MB | 31 735 MB | 31 660 MB | | lowest available physical memory | 1.95 GB | 2.03 GB | 1.95 GB | - **What holds it, in all 3 runs:** - **`15ec6daefb19a780`.** The compact form refuses it: `[SHADER] compact backend, compute program 15ec6daefb19a780: compact form: 19949 blocks of 11909 texts need a 9975-word table (at most 8192) – translated as before`. With #1321 it is then translated in the `pc`-block form, **13 297 372 B of DXIL**. XCL's translated cache keeps that DXIL under `95cc13288a27a96e`, written when its DXC compile ended. - Run 1: a title thread built it in its own bind, from 96.3 s. It was in DXC for **about 80 s** (one DXC compile running from 96.5 s to ~176 s; the thread in `dxc::compile` at the 100, 130 and 160 s dumps), then in the NVIDIA compiler at 200, 260 and 340 s. **Not finished at 420 s, 244 s after DXC.** - Runs 2 and 3: it is on the earlier-run list, so a preload worker builds it. A bind waits for it from 93.0 s / 94.6 s, the worker in the driver in every dump from 100 s to 340 s. **Not finished in 327 s / 325 s.** No driver blob of it exists. - **A chain of new compute programs on another title thread**, each built in the bind, one after another from ~127–148 s to the end: - 9–11 per run, 627–1 087 KB of DXIL, 10–21 s in the driver; - each bind's wait 15–45 s (DXC, then the driver). - Graphics binds did not wait 250 ms or more in these runs. - In the last dump (340 s), the other ~47 title threads were idle. #1288's sleep hold had only the watchdog's thread. - **Memory:** XCL's own pools were flat after 100 s. The process commit stayed between 28.8 and 31.7 GB from 100 s to the end (at 400 s: 30.5 / 31.4 / 31.4 GB). No guard kill, no crash. **Not tested** - An A/B on this base (with and without #1316), and runs without #1288: here #1288 keeps the run going past the watchdog. - Cold caches: all 3 runs started from caches earlier runs had warmed. - `XCL_COMPACT_CS=0` / `1`, and the switch form (`XCL_HEAP_WINDOWS` unset) on this stack. - `958400d2caf07244`, which another report here takes to be the third program of this family: the title made its pipeline at ~5 s in every run, but it was not translated or built in any of them. - Whether the compact program computes the right result in the title: no world frame was drawn. - AMD, other NVIDIA cards, Linux / Wine. The whole test suite. **AI use** - Claude Code (Claude Opus 5.5 & Claude Fable 5.2) merged the stack, resolved the conflict, added the local log line, ran the tests and the runs, counted the results from the logs, thread dumps and caches, and wrote this report; I checked it before posting.
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-24 20:07 UTC · original

@⁠Pipodi thanks for the heads-up (your comment). Rebased onto main 85e3826 (after #1524): #1315 is now a940184 (no conflicts) and #1316 f207df1. The conflict was in gpu/recomp/pso.rs: console_translation stays pub(crate) with this PR's form: CompactCs argument, and #1524's two callers (console_hlsl for --export-hlsl, and --measure-pso in shaders.rs) pass CompactCs::get(). Suite, smoke and description are updated for the new heads.

AI use: Claude Code (Claude Opus 5.5) wrote this comment.

**@⁠CowboyBingus** on GitHub · 2026-11-24 20:07 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7143079389) @⁠Pipodi thanks for the heads-up ([your comment](https://git.gtahub.st/github/xcl-dev--xcl/pulls/1316)). Rebased onto `main` `85e3826` (after #1524): #1315 is now [`a940184`](https://git.gtahub.st/github/xcl-dev--xcl/pulls/1315/commits/a94018470c87483d03a08a09e7bf1c1aed4fee38) (no conflicts) and #1316 [`f207df1`](https://git.gtahub.st/github/xcl-dev--xcl/pulls/1316/commits/f207df1b23f9f611bbb4916ea365261cf33e1f7d). The conflict was in `gpu/recomp/pso.rs`: `console_translation` stays `pub(crate)` with this PR's `form: CompactCs` argument, and #1524's two callers (`console_hlsl` for `--export-hlsl`, and `--measure-pso` in `shaders.rs`) pass `CompactCs::get()`. Suite, smoke and description are updated for the new heads. AI use: Claude Code (Claude Opus 5.5) wrote this comment.
Author
Owner

@⁠isaacwingate on GitHub · 2026-11-24 21:07 UTC · original

Test report for f207df1 (this PR's head, with #1315 under it) on an RTX 5080, with the retail title of #505.

Setup

  • NVIDIA GeForce RTX 5080, driver 32.0.16.2124, i9-12900K, 32 GB RAM (48 GB commit limit), Windows 11 build 26300, rustc 1.100.0, release; DXC 1.9.2602.17.
  • Local merge for testing: main 4178e88 + this PR + #1321 (69a892c) + #889 + #1798. One conflict, between #1315's prepare() and #1321 at the start of translate: I kept prepare() as it is here and added #1321's let program = code; at the top of translate.

Tests

  • cargo test -p xcl --lib gpu::recomp -- --test-threads=4: 222 passed, 0 failed, 18 ignored; gpu_compact_matches_translate passes on 32-lane waves. SKIPPED: gpu_compact_native_wave64_form, gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware (no wave64).

Title run (one run, XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_RUN_SECONDS=600, A through XCL_PRESS_AT every 4 s from 20 to 100 s, XCL_COMPACT_CS unset)

  • auto routed one compute program: d122faa48eb0afdc, 88,863 instructions, 723,786 B of HLSL. It refused one more: 15ec6daefb19a780 ("19949 blocks of 11909 texts need a 9975-word table (at most 8192) – translated as before").
  • The world load started at 74 s; no frame came after 76 s, up to the end of the run at 600 s; no crash, peak commit 36.0 GB. The DXIL cache was cold for most programs (the merged tree changes the translator).
  • What held the load after its first two minutes: compute pipelines of 1.0 – 1.36 MB of DXIL, built one at a time, 64 – 161 s each in the driver – about one a minute from minute 4 to minute 8. None of them was one the compact backend took under auto.

So on this title and card, auto does not reach the programs that hold up the world load here. Whether XCL_COMPACT_CS=1 helps those I did not test (the description says it makes driver compiles much slower).

Not tested

  • XCL_COMPACT_CS=1; a warm cache; more than one run; without #1321 in the tree; AMD.

AI use

  • Claude Code (Claude Opus 5.5) merged the tree, ran the tests and the title, read the log and wrote this report. The numbers come from that run.
**@⁠isaacwingate** on GitHub · 2026-11-24 21:07 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7144503167) Test report for `f207df1` (this PR's head, with #1315 under it) on an RTX 5080, with the retail title of #505. **Setup** - NVIDIA GeForce RTX 5080, driver 32.0.16.2124, i9-12900K, 32 GB RAM (48 GB commit limit), Windows 11 build 26300, rustc 1.100.0, release; DXC 1.9.2602.17. - Local merge for testing: `main` `4178e88` + this PR + #1321 (`69a892c`) + #889 + #1798. One conflict, between #1315's `prepare()` and #1321 at the start of `translate`: I kept `prepare()` as it is here and added #1321's `let program = code;` at the top of `translate`. **Tests** - `cargo test -p xcl --lib gpu::recomp -- --test-threads=4`: 222 passed, 0 failed, 18 ignored; `gpu_compact_matches_translate` passes on 32-lane waves. SKIPPED: `gpu_compact_native_wave64_form`, `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` (no wave64). **Title run** (one run, `XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_RUN_SECONDS=600`, A through `XCL_PRESS_AT` every 4 s from 20 to 100 s, `XCL_COMPACT_CS` unset) - `auto` routed one compute program: `d122faa48eb0afdc`, 88,863 instructions, 723,786 B of HLSL. It refused one more: `15ec6daefb19a780` ("19949 blocks of 11909 texts need a 9975-word table (at most 8192) – translated as before"). - The world load started at 74 s; no frame came after 76 s, up to the end of the run at 600 s; no crash, peak commit 36.0 GB. The DXIL cache was cold for most programs (the merged tree changes the translator). - What held the load after its first two minutes: compute pipelines of 1.0 – 1.36 MB of DXIL, built one at a time, 64 – 161 s each in the driver – about one a minute from minute 4 to minute 8. None of them was one the compact backend took under `auto`. So on this title and card, `auto` does not reach the programs that hold up the world load here. Whether `XCL_COMPACT_CS=1` helps those I did not test (the description says it makes driver compiles much slower). **Not tested** - `XCL_COMPACT_CS=1`; a warm cache; more than one run; without #1321 in the tree; AMD. **AI use** - Claude Code (Claude Opus 5.5) merged the tree, ran the tests and the title, read the log and wrote this report. The numbers come from that run.
Author
Owner

@⁠Alm0stSurely on GitHub · 2026-11-24 21:08 UTC · original

Linux/Proton follow-up on the compact ActivateProbes pipeline (56c0cd3b82a00c6e). On an RTX 5080, the title successfully created this PSO in 87.390 s on its first build and 10 ms on the warm replay. The warm run still faded to black.

  • EndeavourOS, Ryzen 9 9950X3D, RTX 5080, NVIDIA 620.73.04, Proton Experimental. XCL f207df1b23f9 with #1315, vkd3d-proton 4522cc1a8b13, dxil-spirv 53aac41815f8 with the dominance patch from #1269. Four memory windows, split wave64, XCL_COMPACT_CS=auto, XCL_DIRECT_DXIL=0. Same 45 preload keys and saved setup in both runs.
  • First build: 1,050,624 bytes of DXIL, no driver blob supplied. The pipeline waited 78.631 s for a compile slot, then completed at 213.359 s. Last presentation activity was in the interval ending at 100.173 s. The run reached its 240 s cap.
  • Warm replay: the log confirms the same record, a supplied driver blob at 5.782 s, and successful creation using that blob. The last interval with presentations ended at 96.171 s. Captures showed loading artwork, then black. All three caches (XCL, vkd3d and NVIDIA) were warm together.
  • The warm replay ended early: the kernel reported a memory-cgroup OOM under a 32 GiB limit. At 110.479 s, a different program (15ec6daefb19a780) had fallen back from compact translation because it needed 9,975 table words against the 8,192 limit. We have not attributed the OOM to that program.

This confirms that this particular PSO can be ready before the fade on Linux/NVIDIA while presentation still stops. One run per configuration.

AI assistance: Codex (GPT-6.2 Astra) helped run the measurements, check the logs and draft this report.

**@⁠Alm0stSurely** on GitHub · 2026-11-24 21:08 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7144530415) Linux/Proton follow-up on the compact `ActivateProbes` pipeline (`56c0cd3b82a00c6e`). On an RTX 5080, the title successfully created this PSO in **87.390 s** on its first build and **10 ms** on the warm replay. The warm run still faded to black. - EndeavourOS, Ryzen 9 9950X3D, RTX 5080, NVIDIA 620.73.04, Proton Experimental. XCL `f207df1b23f9` with #1315, vkd3d-proton `4522cc1a8b13`, dxil-spirv `53aac41815f8` with the [dominance patch from #1269](https://git.gtahub.st/github/xcl-dev--xcl/issues/1269). Four memory windows, split wave64, `XCL_COMPACT_CS=auto`, `XCL_DIRECT_DXIL=0`. Same 45 preload keys and saved setup in both runs. - First build: 1,050,624 bytes of DXIL, no driver blob supplied. The pipeline waited 78.631 s for a compile slot, then completed at 213.359 s. Last presentation activity was in the interval ending at 100.173 s. The run reached its 240 s cap. - Warm replay: the log confirms the **same record**, a supplied driver blob at 5.782 s, and successful creation using that blob. The last interval with presentations ended at 96.171 s. Captures showed loading artwork, then black. All three caches (XCL, vkd3d and NVIDIA) were warm together. - The warm replay ended early: the kernel reported a memory-cgroup OOM under a 32 GiB limit. At 110.479 s, a different program (`15ec6daefb19a780`) had fallen back from compact translation because it needed 9,975 table words against the 8,192 limit. We have not attributed the OOM to that program. This confirms that this particular PSO can be ready before the fade on Linux/NVIDIA while presentation still stops. One run per configuration. AI assistance: Codex (GPT-6.2 Astra) helped run the measurements, check the logs and draft this report.
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-24 21:14 UTC · original

@⁠isaacwingate thanks for the RTX 5080 run (your report).

  • auto takes a compute program only when compact::compact_wanted accepts it: at least 20,000 instructions (COMPACT_MIN_INSTRUCTIONS), with the distinct blocks (equal code, branch targets aside) holding under 30 % of them. XCL_COMPACT_CS=1 routes every compute program to the compact form.
  • On an RTX 5070 Ti we built 13 compute programs from one of our title runs both ways, XCL_COMPACT_CS=0 and =1, two runs each, one build per process. They have 2,307 to 16,414 instructions, so auto does not take them. With =1 the driver build took longer for 8 of the 13 and less for 5:
    • 6e3fd903765f4376: 44.2 / 43.6 s normal, 121.7 / 114.1 s compact;
    • 1d6a161c9bb69ab0: 4.5 / 6.3 s normal, 12.1 / 20.1 s compact;
    • 1ada490879c33c0e: 11.1 / 8.2 s normal, 1.6 / 2.1 s compact;
    • summed over the 13 (mean of the two runs): 130.9 s normal, 221.8 s compact.

Their normal-form DXIL is 196 KB to 1.08 MB, so this does not show whether your 1.0 – 1.36 MB programs behave the same.

AI use: Claude Code (Claude Opus 5.5) wrote this reply.

**@⁠CowboyBingus** on GitHub · 2026-11-24 21:14 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7144659867) @⁠isaacwingate thanks for the RTX 5080 run ([your report](https://git.gtahub.st/github/xcl-dev--xcl/pulls/1316)). - `auto` takes a compute program only when `compact::compact_wanted` accepts it: at least 20,000 instructions (`COMPACT_MIN_INSTRUCTIONS`), with the distinct blocks (equal code, branch targets aside) holding under 30 % of them. `XCL_COMPACT_CS=1` routes every compute program to the compact form. - On an RTX 5070 Ti we built 13 compute programs from one of our title runs both ways, `XCL_COMPACT_CS=0` and `=1`, two runs each, one build per process. They have 2,307 to 16,414 instructions, so `auto` does not take them. With `=1` the driver build took longer for 8 of the 13 and less for 5: - `6e3fd903765f4376`: 44.2 / 43.6 s normal, 121.7 / 114.1 s compact; - `1d6a161c9bb69ab0`: 4.5 / 6.3 s normal, 12.1 / 20.1 s compact; - `1ada490879c33c0e`: 11.1 / 8.2 s normal, 1.6 / 2.1 s compact; - summed over the 13 (mean of the two runs): 130.9 s normal, 221.8 s compact. Their normal-form DXIL is 196 KB to 1.08 MB, so this does not show whether your 1.0 – 1.36 MB programs behave the same. AI use: Claude Code (Claude Opus 5.5) wrote this reply.
Author
Owner

@⁠JorgeMJM on GitHub · 2026-11-24 20:57 UTC · original · edited 2026-11-24 21:22 UTC

Test report on an 8 GB laptop card.

Tested

  • Commit f207df1 (this PR's head), clean. RTX 3070 Laptop 8 GB (32-lane waves), NVIDIA 621.40, Ryzen 7 5800H, 28 GB RAM, Windows 11 Home 26300, rustc 1.100.0, debug.
  • cargo test --workspace -- --test-threads=4: 899 passed, 0 failed, 42 ignored. SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware, gpu_compact_native_wave64_form (no wave64), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows), pso_measurement_compiles_an_exact_synthetic_record (cannot disable the driver cache).
  • One retail compute program of 28.2 MB of HLSL (split wave64, 4 memory windows), one process, fresh XCL_DXIL_CACHE, XCL_PSO_DISK_CACHE=0, CreateComputePipelineState timed by a local patch (release build of this head + that patch):
form DXIL driver total peak private
main HLSL path (b7aa9f3), -O1 / -O0 – not finished, killed at 20 GB 750 / 568 s > 20 GB
main c160d86, XCL_HEAP_WINDOWS=1 / XCL_DIRECT_DXIL=1 – not finished, killed at 20 GB 546 / 895 s > 20 GB
this PR, XCL_COMPACT_CS=1 1.0 MB 31 s 57 s 2.2 GB
  • With XCL_COMPACT_CS unset (auto) the same program is routed to the compact form too: compact backend, compute program d122faa48eb0afdc: 88863 instructions, 723786 B HLSL, 1.0 MB of DXIL, DXC 24 s (with the test suite running alongside).

Not tested

  • A title run, the smoke pair, whether the compact program's output matches the HLSL path on the GPU, repeated runs, other programs.

AI use: Claude Code (Claude Opus 5.5) ran the measurements and the suite on my machine and drafted this.

Title runs (edit): the retail title for 300 s with scripts/smoke.ps1, release, one run each, same machine. On both the intro video plays and the screen is then black: presents stop at 104 s with the pipeline queue not draining (compiling shaders: 0 running, ~150–430 done, ~57 000 queued), the stall @⁠brainhay5 describes in #1269, so the world is not reached on either and nothing past that point is covered.

main:

xcl-smoke v1
commit: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0
gpu: NVIDIA GeForce RTX 3070 Laptop GPU
title: GTA6-Xbox
seconds: 300
exit: 0xc0000005
frames shown: none logged (the run did not reach its end)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 2
peak commit: 30278 MB

This PR:

xcl-smoke v1
commit: f207df1b23f9f611bbb4916ea365261cf33e1f7d
gpu: NVIDIA GeForce RTX 3070 Laptop GPU
title: GTA6-Xbox
seconds: 300
exit: 0x0
frames shown: 1413 (PresentX 1413)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 30055 MB
  • main ends in the title's watchdog write (game_scarlett_master.exe+0x23cf683, write at 0x0) at 134 s; this PR's run reaches 300 s without it. One run each, and a 150 s run of this head with XCL_COMPACT_CS=0 did not crash either, so I do not attribute the difference to the compact form. It is most likely #1288 (the title's stall check does not count a bind's wait for a pipeline): it is in this PR's base and not in c160d86.
**@⁠JorgeMJM** on GitHub · 2026-11-24 20:57 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7144284473) · edited 2026-11-24 21:22 UTC Test report on an 8 GB laptop card. **Tested** - Commit `f207df1` (this PR's head), clean. RTX 3070 Laptop 8 GB (32-lane waves), NVIDIA 621.40, Ryzen 7 5800H, 28 GB RAM, Windows 11 Home 26300, rustc 1.100.0, debug. - `cargo test --workspace -- --test-threads=4`: 899 passed, 0 failed, 42 ignored. SKIPPED: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`, `gpu_compact_native_wave64_form` (no wave64), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows), `pso_measurement_compiles_an_exact_synthetic_record` (cannot disable the driver cache). - One retail compute program of 28.2 MB of HLSL (split wave64, 4 memory windows), one process, fresh `XCL_DXIL_CACHE`, `XCL_PSO_DISK_CACHE=0`, `CreateComputePipelineState` timed by a local patch (release build of this head + that patch): | form | DXIL | driver | total | peak private | |---|---|---|---|---| | `main` HLSL path (`b7aa9f3`), `-O1` / `-O0` | – | not finished, killed at 20 GB | 750 / 568 s | > 20 GB | | `main` `c160d86`, `XCL_HEAP_WINDOWS=1` / `XCL_DIRECT_DXIL=1` | – | not finished, killed at 20 GB | 546 / 895 s | > 20 GB | | **this PR, `XCL_COMPACT_CS=1`** | 1.0 MB | **31 s** | **57 s** | **2.2 GB** | - With `XCL_COMPACT_CS` unset (`auto`) the same program is routed to the compact form too: `compact backend, compute program d122faa48eb0afdc: 88863 instructions, 723786 B HLSL`, 1.0 MB of DXIL, DXC 24 s (with the test suite running alongside). **Not tested** - A title run, the smoke pair, whether the compact program's output matches the HLSL path on the GPU, repeated runs, other programs. AI use: Claude Code (Claude Opus 5.5) ran the measurements and the suite on my machine and drafted this. **Title runs** (edit): the retail title for 300 s with `scripts/smoke.ps1`, release, one run each, same machine. On both the intro video plays and the screen is then black: presents stop at 104 s with the pipeline queue not draining (`compiling shaders: 0 running, ~150–430 done, ~57 000 queued`), the stall @⁠brainhay5 describes in #1269, so the world is not reached on either and nothing past that point is covered. `main`: ``` xcl-smoke v1 commit: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0 gpu: NVIDIA GeForce RTX 3070 Laptop GPU title: GTA6-Xbox seconds: 300 exit: 0xc0000005 frames shown: none logged (the run did not reach its end) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 2 peak commit: 30278 MB ``` This PR: ``` xcl-smoke v1 commit: f207df1b23f9f611bbb4916ea365261cf33e1f7d gpu: NVIDIA GeForce RTX 3070 Laptop GPU title: GTA6-Xbox seconds: 300 exit: 0x0 frames shown: 1413 (PresentX 1413) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 30055 MB ``` - `main` ends in the title's watchdog write (`game_scarlett_master.exe+0x23cf683`, write at 0x0) at 134 s; this PR's run reaches 300 s without it. One run each, and a 150 s run of this head with `XCL_COMPACT_CS=0` did not crash either, so I do not attribute the difference to the compact form. It is most likely #1288 (the title's stall check does not count a bind's wait for a pipeline): it is in this PR's base and not in `c160d86`.
Author
Owner

@⁠vakaobr on GitHub · 2026-11-24 16:20 UTC · original · edited 2026-11-24 21:29 UTC

Test report from macOS (CrossOver + D3DMetal), head f207df1 on main 85e3826, with XCL_COMPACT_CS=1. (Updated from my run of 5e312d5 on 930e8b4; that one and the ones in between gave the same picture.)

Tested

  • MacBook Pro M5 Pro (20-core GPU, 32-lane waves only), 48 GB, macOS 27.2.1, CrossOver 26.3.0.39832 with D3DMetal 3.0, Rosetta 2. Rust 1.100.0, x86_64-pc-windows-gnu, debug, DXC 1.9.2609. Every gpu::recomp lib test in its own process (--exact, 90 s cap), on main and on this head.
  • main 85e3826: 160 passed, 25 failed, 8 timed out, 18 ignored, 2 skipped (no wave64), this host's known failures (f64, 64-bit atomics, UMA, the draw hangs). This head: 180 passed, 28 failed, 8 timed out, 18 ignored, 3 skipped. Every test that exists on main gives the same result here, so nothing regresses with the compact backend on.
  • This PR's 24 new tests: 20 passed, gpu_compact_native_wave64_form skipped (no wave64), and 3 failed: gpu_compact_memory_windows, gpu_compact_memory_windows_loop and gpu_compact_programs_with_four_windows, all at tests_compact.rs:952 with translate: OpenExistingHeapFromAddress: Not implemented. (0x80004001). D3DMetal has no heaps over process memory, so run_in_arena can't open the windows. It's the host, not the compact form.
  • With #1329's three commits (ac4b997, the unified memory copy path, whose test runner uploads and reads back the arena when OpenExistingHeapFromAddress returns E_NOTIMPL) cherry-picked onto this head without conflicts, all 16 tests_compact GPU tests pass on this Mac, those three included (the wave64 one still skips).

If this lands before #1329, those three would want the same narrow skip as the other arena tests on such a host (run_in_arena_or_skip in #1060). After #1329 they run as they are.

Not tested

  • The current head 964f5ed: a rebase onto 266b845 plus gpu_compact_against_the_pc_block_fallback, not run here.
  • DXC or pipeline-creation times on this host, a title, native wave64 (this GPU has 32-lane waves only).

AI use: Claude Code, Claude Opus 5.5 ran the builds and tests on this machine and wrote this report.

**@⁠vakaobr** on GitHub · 2026-11-24 16:20 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7137504361) · edited 2026-11-24 21:29 UTC Test report from macOS (CrossOver + D3DMetal), head `f207df1` on `main` `85e3826`, with `XCL_COMPACT_CS=1`. (Updated from my run of `5e312d5` on `930e8b4`; that one and the ones in between gave the same picture.) **Tested** - MacBook Pro M5 Pro (20-core GPU, 32-lane waves only), 48 GB, macOS 27.2.1, CrossOver 26.3.0.39832 with D3DMetal 3.0, Rosetta 2. Rust 1.100.0, `x86_64-pc-windows-gnu`, debug, DXC 1.9.2609. Every `gpu::recomp` lib test in its own process (`--exact`, 90 s cap), on `main` and on this head. - `main` `85e3826`: 160 passed, 25 failed, 8 timed out, 18 ignored, 2 skipped (`no wave64`), this host's known failures (f64, 64-bit atomics, UMA, the draw hangs). This head: 180 passed, 28 failed, 8 timed out, 18 ignored, 3 skipped. **Every test that exists on `main` gives the same result here,** so nothing regresses with the compact backend on. - This PR's 24 new tests: 20 passed, `gpu_compact_native_wave64_form` skipped (`no wave64`), and 3 failed: `gpu_compact_memory_windows`, `gpu_compact_memory_windows_loop` and `gpu_compact_programs_with_four_windows`, all at `tests_compact.rs:952` with `translate: OpenExistingHeapFromAddress: Not implemented. (0x80004001)`. D3DMetal has no heaps over process memory, so `run_in_arena` can't open the windows. It's the host, not the compact form. - With #1329's three commits (`ac4b997`, the unified memory copy path, whose test runner uploads and reads back the arena when `OpenExistingHeapFromAddress` returns E_NOTIMPL) cherry-picked onto this head without conflicts, all 16 `tests_compact` GPU tests pass on this Mac, those three included (the wave64 one still skips). If this lands before #1329, those three would want the same narrow skip as the other arena tests on such a host (`run_in_arena_or_skip` in #1060). After #1329 they run as they are. **Not tested** - The current head `964f5ed`: a rebase onto `266b845` plus `gpu_compact_against_the_pc_block_fallback`, not run here. - DXC or pipeline-creation times on this host, a title, native wave64 (this GPU has 32-lane waves only). AI use: Claude Code, Claude Opus 5.5 ran the builds and tests on this machine and wrote this report.
Author
Owner

@⁠Pipodi on GitHub · 2026-11-25 00:05 UTC · original

@⁠CowboyBingus heads-up: since main merged #1836 (80f4819), this PR's head 964f5ed no longer merges into main. git merge-tree shows two conflicts, both in crates/xcl/src/gpu/recomp/pso.rs:

  • console_to_dxil_in's disk cache: #1836 calls cached_shader(shader_cache(), …) with one compile_one, where this PR adds the compact/normal pair with normal_after_refusal.
  • the compute path's direct-DXIL branch: #1836 adds an if dxc::defer() { return Err("DXIL not compiled yet") } before direct_compute, where this PR has goes_direct(…, compact_routed) / direct_first.

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.

**@⁠Pipodi** on GitHub · 2026-11-25 00:05 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7148129768) @⁠CowboyBingus heads-up: since `main` merged #1836 (`80f4819`), this PR's head `964f5ed` no longer merges into `main`. `git merge-tree` shows two conflicts, both in `crates/xcl/src/gpu/recomp/pso.rs`: - `console_to_dxil_in`'s disk cache: #1836 calls `cached_shader(shader_cache(), …)` with one `compile_one`, where this PR adds the compact/normal pair with `normal_after_refusal`. - the compute path's direct-DXIL branch: #1836 adds an `if dxc::defer() { return Err("DXIL not compiled yet") }` before `direct_compute`, where this PR has `goes_direct(…, compact_routed)` / `direct_first`. 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.
Author
Owner

@⁠Parakeet-Wheat on GitHub · 2026-11-25 00:30 UTC · original

A/B on a desktop 8 GB card, with this PR merged onto main 95ae589 (after #1321 and the direct-translator commits, before #1836). No conflicts there.

  • Setup: NVIDIA GeForce RTX 3070 8 GB (driver 610.88, 32-lane waves), Ryzen 5 5600X, 32 GB RAM, Windows 11 26300, Rust 1.95.0, DXC 1.8.2502, retail 1.0.2.1, release. XCL_NETWORK=0, XCL_RUN_SECONDS=420, XCL_COMPACT_CS unset. A pressed a few times at the start screen, no other input. Warm DXIL cache, this PR run first.
  • 56c0cd3b82a00c6e: with this PR it is routed to the compact form and comes out at 1,050,616 B of DXIL. Its driver build starts at 113 s, after waiting behind another ~1 MB build (94.9 s), and finishes in 41.9 s. On main it is 29,215,776 B and never finishes: not within 420 s here, and not within 904 s in an earlier run on this machine.
  • 15ec6daefb19a780 falls back (9975-word table (at most 8192)), as reported above. After that the title stops presenting. At 420 s a 13,823,000 B compute build (record 95cc13288a27a96e, started at 280 s) and a 1,064,140 B one are still in the driver.
  • Both runs: exit 0x0, 0 crashes, 0 device removals, 0 ERROR lines, 40 mesh pipelines refused (MS in the AS slot). Both stop presenting after the world load starts, so neither reaches the world.

Not tested: the test suite, the smoke pair, AMD, native wave64. AI-assisted (Claude Code, Claude Opus 5.5); run on my machine.

**@⁠Parakeet-Wheat** on GitHub · 2026-11-25 00:30 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7148580238) A/B on a desktop 8 GB card, with this PR merged onto `main` `95ae589` (after #1321 and the direct-translator commits, before #1836). No conflicts there. - **Setup:** NVIDIA GeForce RTX 3070 8 GB (driver `610.88`, 32-lane waves), Ryzen 5 5600X, 32 GB RAM, Windows 11 26300, Rust 1.95.0, DXC 1.8.2502, retail 1.0.2.1, release. `XCL_NETWORK=0`, `XCL_RUN_SECONDS=420`, `XCL_COMPACT_CS` unset. A pressed a few times at the start screen, no other input. Warm DXIL cache, this PR run first. - **`56c0cd3b82a00c6e`:** with this PR it is routed to the compact form and comes out at **1,050,616 B** of DXIL. Its driver build starts at 113 s, after waiting behind another ~1 MB build (94.9 s), and finishes in **41.9 s**. On `main` it is **29,215,776 B** and never finishes: not within 420 s here, and not within 904 s in an earlier run on this machine. - **`15ec6daefb19a780`** falls back (*9975-word table (at most 8192)*), as reported above. After that the title stops presenting. At 420 s a **13,823,000 B** compute build (record `95cc13288a27a96e`, started at 280 s) and a 1,064,140 B one are still in the driver. - **Both runs:** exit `0x0`, 0 crashes, 0 device removals, 0 ERROR lines, 40 mesh pipelines refused (*MS in the AS slot*). Both stop presenting after the world load starts, so neither reaches the world. *Not tested: the test suite, the smoke pair, AMD, native wave64. AI-assisted (Claude Code, Claude Opus 5.5); run on my machine.*
Author
Owner

@⁠Royalflamejlh on GitHub · 2026-11-25 00:48 UTC · original

With #1448 merged in, record 95cc13288a27a96e takes the compact form, and its DXIL crashes vkd3d-proton's dxil-spirv in the recursion @⁠vitor127wt, @⁠St5sz2Jk and @⁠0naku reported for it on #1269 (1, 2, 3). On XCL's side the cause is two back edges to the dispatch loop's head. Three lines in compact.rs give it one: dxil-spirv then no longer crashes, and in 1 title run with the change on an RTX 4060 Ti the pipeline was made in 149.5 s (vkd3d-proton with the dxil-spirv speed patches of #1269; unpatched, the conversion alone had not finished in 2,400 s).

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 34f0ff8 with its pull request 372), DXC 1.9.2609.5, retail 1.0.2.1, release, the first-run screens completed once, no story progress. Tree: main 4178e88 merged locally with #684 e56dbc3, #751 1a480bc, #850 a314f04, #906 29e21fb, #688 760f742, #1273 be8d052, this PR at f207df1, #1448 42b2f11 and #1321 69a892c. It is #1448 that makes this record compact (with this PR alone it falls back at the table limit).

Tested

title run 95cc13288a27a96e 56c0cd3b82a00c6e
the tree, 1110 s 2,846,904 B of DXIL. driver compile start at 523.0 s is its thread's last line; the thread is in the 8 thread dumps from 150 to 500 s and in none of the 11 after 940,156 B, 241.9 s
the tree + the three lines, 1060 s 2,846,124 B, made in 149.5 s; its thread is in all 18 dumps 940,132 B, 26.2 s
  • 1 run each. The second run differs in two more things: its vkd3d-proton has the dxil-spirv speed patches of #1269, and both programs were built by the preload workers from 10.5 s, where a title thread built them in the first.
  • The first run's log has no line for the thread's end (Wine's messages were off); that it died in dxil-spirv is my reading of the dumps and of the native run.

Natively, no GPU: xcl shaders shaders.rpf --export-hlsl <dir> --record-hash 95cc13288a27a96e --split 1 from the tree, then DXC with -E main -T cs_6_6 -HV 2021 -O1, gives byte for byte the DXIL the first run cached. dxil-spirv's CLI, built from the same 34f0ff8, with the options vkd3d-proton passes:

DXIL back edges to the loop head dxil-spirv 34f0ff8 with the speed patches of #1269
as it is 2,846,904 B, 6,324 blocks 2 segfault in 1 s; its master 061225da too segfault
with the three lines 2,846,124 B, 6,322 blocks 1 no crash; not converted in 2,400 s (stopped there) 10.6 and 15.4 s
  • With the compact form forced, the DXIL of 219287eb2f6021fe and c963276f38285bf4 (this PR at 30a96a3, #1448 at 4cbb6b6) and of f839072880d49fb4 (this PR at 30a96a3) has the same two back edges, 5 of 5 files. The three I ran through dxil-spirv segfault the same way: the first two from #1448, the third from this PR.
  • The 26 tests of cargo test -p xcl --lib compact pass with the change under Wine with Mesa lavapipe; 17 of them, every GPU comparison, print SKIPPED … no GPU there, so 9 ran. Not run without the change.

Read

The line is in compact.rs, which comes from #1315 (bd69c5d); it is the same at this PR's head 964f5ed (line 218) and, as compact.rs:269, at #1448's 57d7574:

    let _ = writeln!(body, "        if (xcl_nb <= xcl_b) {{ {LOOP_GUARD} }}");

At -O1, which XCL uses from 1 MB of HLSL, DXC leaves both sides of that if as branches to the loop head (@⁠ClosetPie107 found that the recursion needs -O1, 5). dxil-spirv keeps one back edge per loop head and, in shaders with wave shuffles, analyses the CFG before it merges them (#1805; #1860 does the same repair for the direct backend). Without the branch there is one:

    // 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");

(LOOP_GUARD then leaves the file's use line.) The HLSL the changed tree exports for the record differs from the original in those three lines only.

The SPIR-V of this program fails spirv-val --target-env vulkan1.3 with or without the change ("Maximum Control Flow nesting depth exceeded"), as @⁠0naku and @⁠itsd-effex found (3, 4). Offline, 0naku's NVIDIA compiler went past 20 GB on it (RTX 4060 Ti 8 GB, 620.70.06); in the title run above, 615.71.09 built it in 149.5 s. I have not looked for what differs.

dxil-spirv's maintainer has since fixed the recursion on its branch legacy-struct-remove (e084e35c, not in its master yet): natively the unchanged DXIL above no longer crashes there (not converted in 900 s; 11.1 s with the speed patches of #1269 on top). So the three lines are a stopgap: they are not needed once a vkd3d-proton with that dxil-spirv is what people run.

Not tested: the title with the change on unpatched vkd3d-proton; #1448's current head 57d7574 and #1692's nested form (the same line, compact.rs:312 there); whether the changed loop gives the same results on a GPU (the 17 GPU tests were skipped here, and the title run did not compare output); Windows and AMD, where no dxil-spirv is involved.

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.

**@⁠Royalflamejlh** on GitHub · 2026-11-25 00:48 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7148889484) With #1448 merged in, record `95cc13288a27a96e` takes the compact form, and its DXIL crashes vkd3d-proton's dxil-spirv in the recursion @⁠vitor127wt, @⁠St5sz2Jk and @⁠0naku reported for it on #1269 ([1](https://git.gtahub.st/github/xcl-dev--xcl/issues/1269), [2](https://git.gtahub.st/github/xcl-dev--xcl/issues/1269), [3](https://git.gtahub.st/github/xcl-dev--xcl/issues/1269)). On XCL's side the cause is two back edges to the dispatch loop's head. Three lines in `compact.rs` give it one: dxil-spirv then no longer crashes, and in 1 title run with the change on an RTX 4060 Ti the pipeline was made in 149.5 s (vkd3d-proton with the dxil-spirv speed patches of #1269; unpatched, the conversion alone had not finished in 2,400 s). **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 `34f0ff8` with its pull request 372), DXC 1.9.2609.5, retail 1.0.2.1, release, the first-run screens completed once, no story progress. Tree: `main` `4178e88` merged locally with #684 `e56dbc3`, #751 `1a480bc`, #850 `a314f04`, #906 `29e21fb`, #688 `760f742`, #1273 `be8d052`, this PR at `f207df1`, #1448 `42b2f11` and #1321 `69a892c`. It is #1448 that makes this record compact (with this PR alone it falls back at the table limit). **Tested** | title run | 95cc13288a27a96e | 56c0cd3b82a00c6e | |---|---|---| | the tree, 1110 s | 2,846,904 B of DXIL. `driver compile start` at 523.0 s is its thread's last line; the thread is in the 8 thread dumps from 150 to 500 s and in none of the 11 after | 940,156 B, 241.9 s | | the tree + the three lines, 1060 s | 2,846,124 B, made in 149.5 s; its thread is in all 18 dumps | 940,132 B, 26.2 s | - 1 run each. The second run differs in two more things: its vkd3d-proton has the dxil-spirv speed patches of #1269, and both programs were built by the preload workers from 10.5 s, where a title thread built them in the first. - The first run's log has no line for the thread's end (Wine's messages were off); that it died in dxil-spirv is my reading of the dumps and of the native run. Natively, no GPU: `xcl shaders shaders.rpf --export-hlsl <dir> --record-hash 95cc13288a27a96e --split 1` from the tree, then DXC with `-E main -T cs_6_6 -HV 2021 -O1`, gives byte for byte the DXIL the first run cached. dxil-spirv's CLI, built from the same `34f0ff8`, with the options vkd3d-proton passes: | | DXIL | back edges to the loop head | dxil-spirv `34f0ff8` | with the speed patches of #1269 | |---|---|---|---|---| | as it is | 2,846,904 B, 6,324 blocks | 2 | segfault in 1 s; its `master` `061225da` too | segfault | | with the three lines | 2,846,124 B, 6,322 blocks | 1 | no crash; not converted in 2,400 s (stopped there) | 10.6 and 15.4 s | - With the compact form forced, the DXIL of `219287eb2f6021fe` and `c963276f38285bf4` (this PR at `30a96a3`, #1448 at `4cbb6b6`) and of `f839072880d49fb4` (this PR at `30a96a3`) has the same two back edges, 5 of 5 files. The three I ran through dxil-spirv segfault the same way: the first two from #1448, the third from this PR. - The 26 tests of `cargo test -p xcl --lib compact` pass with the change under Wine with Mesa lavapipe; 17 of them, every GPU comparison, print `SKIPPED … no GPU` there, so 9 ran. Not run without the change. **Read** The line is in `compact.rs`, which comes from #1315 (`bd69c5d`); it is the same at this PR's head `964f5ed` (line 218) and, as `compact.rs:269`, at #1448's `57d7574`: ```rust let _ = writeln!(body, " if (xcl_nb <= xcl_b) {{ {LOOP_GUARD} }}"); ``` At `-O1`, which XCL uses from 1 MB of HLSL, DXC leaves both sides of that `if` as branches to the loop head (@⁠ClosetPie107 found that the recursion needs `-O1`, [5](https://git.gtahub.st/github/xcl-dev--xcl/issues/1269)). dxil-spirv keeps one back edge per loop head and, in shaders with wave shuffles, analyses the CFG before it merges them (#1805; #1860 does the same repair for the direct backend). Without the branch there is one: ```rust // 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"); ``` (`LOOP_GUARD` then leaves the file's `use` line.) The HLSL the changed tree exports for the record differs from the original in those three lines only. The SPIR-V of this program fails `spirv-val --target-env vulkan1.3` with or without the change ("Maximum Control Flow nesting depth exceeded"), as @⁠0naku and @⁠itsd-effex found ([3](https://git.gtahub.st/github/xcl-dev--xcl/issues/1269), [4](https://git.gtahub.st/github/xcl-dev--xcl/issues/1269)). Offline, 0naku's NVIDIA compiler went past 20 GB on it (RTX 4060 Ti 8 GB, 620.70.06); in the title run above, 615.71.09 built it in 149.5 s. I have not looked for what differs. dxil-spirv's maintainer has since fixed the recursion on its branch `legacy-struct-remove` (`e084e35c`, not in its `master` yet): natively the unchanged DXIL above no longer crashes there (not converted in 900 s; 11.1 s with the speed patches of #1269 on top). So the three lines are a stopgap: they are not needed once a vkd3d-proton with that dxil-spirv is what people run. **Not tested:** the title with the change on unpatched vkd3d-proton; #1448's current head `57d7574` and #1692's nested form (the same line, `compact.rs:312` there); whether the changed loop gives the same results on a GPU (the 17 GPU tests were skipped here, and the title run did not compare output); Windows and AMD, where no dxil-spirv is involved. **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.
Author
Owner

@⁠FuzyBeast on GitHub · 2026-11-25 01:50 UTC · original

Test report for the table cap on RTX 5090 (driver 32.0.16.1714), main 689f2db + this PR (964f5ed):

ActivateRays (95cc13288a27a96e, 9,975-word table) builds in the compact form when MAX_TABLE_WORDS is raised to 10,240 (local change): DXC 797.6 s, driver 1,109.9 s (896.2 s with XCL_HEAP_WINDOWS=1), DXIL 10.66 MB, ~2 GB peak — vs 8,586 s (2 h 23 min) for the normal form on the same machine. Details and the full table in #1269.

Not tested: correctness of the compact ActivateRays against the normal form. AI use: Claude Code (Claude Opus 5.5).

**@⁠FuzyBeast** on GitHub · 2026-11-25 01:50 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7150028823) Test report for the table cap on RTX 5090 (driver 32.0.16.1714), main `689f2db` + this PR (`964f5ed`): ActivateRays (`95cc13288a27a96e`, 9,975-word table) builds in the compact form when `MAX_TABLE_WORDS` is raised to 10,240 (local change): DXC 797.6 s, driver 1,109.9 s (896.2 s with `XCL_HEAP_WINDOWS=1`), DXIL 10.66 MB, ~2 GB peak — vs 8,586 s (2 h 23 min) for the normal form on the same machine. Details and the full table in #1269. Not tested: correctness of the compact ActivateRays against the normal form. AI use: Claude Code (Claude Opus 5.5).
Author
Owner

@⁠ettehn on GitHub · 2026-11-25 03:38 UTC · original

I tested a local resolution of the pso.rs conflicts Pipodi described above, merging 964f5ed9be2eff8d18e4ed5073f0a826c9ed6015 into main cbc296ab65a2661a61e3e2da109134bcd5319f60 without committing.

  • Keep main's shared shader_cache() as the in-memory cache and this PR's normal_after_refusal around the two translated-disk lookups. Pass compact = false from console_mesh to the extended disk-cache API.
  • Put main's dxc::defer() check inside the Some(direct) arm of direct_first, before invoking the direct translator. None still reaches the HLSL path and can use its cached DXIL. The outer caches still get first chance to return a finished translation.

Tested on Windows 11 26200.9974, RTX 5070 Ti Laptop (621.24), Rust 1.97.1, DXC 1.8.2502.11, release. shader_cache_tests: 20 passed, including a regression test where a cold cached_only call marks a miss and runs neither translator, then a normal call populates the cache and a later cached_only call returns the same entry. gpu::recomp::compact::tests: 3 passed. gpu::recomp::tests_compact: 17 reported OK, including one explicit native-wave64 skip and one unconfigured retail sample. pso_measurement_compiles_an_exact_synthetic_record: 1 passed. No failures or ignored tests in those filters.

Not tested: full suite, retail smoke, Linux, and native wave64. This is a candidate resolution for the rebase, with the branch left to the PR author.

AI use: OpenAI Codex (GPT-6.2 Sol) assisted with the local integration and verification.

**@⁠ettehn** on GitHub · 2026-11-25 03:38 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7152111817) I tested a local resolution of the `pso.rs` conflicts Pipodi described above, merging `964f5ed9be2eff8d18e4ed5073f0a826c9ed6015` into `main` `cbc296ab65a2661a61e3e2da109134bcd5319f60` without committing. - Keep main's shared `shader_cache()` as the in-memory cache and this PR's `normal_after_refusal` around the two translated-disk lookups. Pass `compact = false` from `console_mesh` to the extended disk-cache API. - Put main's `dxc::defer()` check inside the `Some(direct)` arm of `direct_first`, before invoking the direct translator. `None` still reaches the HLSL path and can use its cached DXIL. The outer caches still get first chance to return a finished translation. **Tested** on Windows 11 26200.9974, RTX 5070 Ti Laptop (621.24), Rust 1.97.1, DXC 1.8.2502.11, release. `shader_cache_tests`: 20 passed, including a regression test where a cold `cached_only` call marks a miss and runs neither translator, then a normal call populates the cache and a later `cached_only` call returns the same entry. `gpu::recomp::compact::tests`: 3 passed. `gpu::recomp::tests_compact`: 17 reported OK, including one explicit native-wave64 skip and one unconfigured retail sample. `pso_measurement_compiles_an_exact_synthetic_record`: 1 passed. No failures or ignored tests in those filters. **Not tested**: full suite, retail smoke, Linux, and native wave64. This is a candidate resolution for the rebase, with the branch left to the PR author. AI use: OpenAI Codex (GPT-6.2 Sol) assisted with the local integration and verification.
Author
Owner

@⁠Swagi-REDACTED on GitHub · 2026-11-25 05:39 UTC · original

Targeted RTX 3060 test report for the compute record 56c0cd3b82a00c6e from A newer retail game, encountered during first world loading.

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 cbc296ab65a2661a61e3e2da109134bcd5319f60 plus the four original commits d94c34a, bd69c5d, c195f07, 964f5ed (local head fc05b6d). This is not an unmodified PR-head test: conflicts were resolved to retain main's shared shader cache and cached-only direct-DXIL deferral, and the current mesh-cache call needed a false compact argument. A separate, optional live-input test harness was also present.

With XCL_COMPACT_CS=auto, the existing CLI command xcl shaders <private-single-record-folder> --precompile --only cs --pipelines --limit 1 produced:

compact backend, compute program d122faa48eb0afdc: 88863 instructions, 730151 B HLSL
compiled 1, already cached 0, errors 0, skipped (GS – paired at pipeline creation) 0, time 37.5 s
pipelines made on the GPU 1, refused 0
pipelines loaded from the driver cache 0

The serialized translated-cache payload contains 1,067,116 bytes of DXIL. The previous main-based world-load attempt logged this same record entering driver compilation with 22,089,024 bytes of DXIL; it had not finished when that run was intentionally stopped. This is not a timed, completed before/after benchmark.

Additional validation on this integration:

  • cargo test --locked -p xcl --lib compact -- --test-threads=4: 30 passed, 0 failed, 0 ignored; 1 explicit native-wave64 skip (included among the passing tests).
  • cargo test --locked -p xcl --lib gpu::recomp::pso::shader_cache_tests -- --test-threads=4: 19 passed, 0 failed, 0 ignored; no explicit skips.
  • Release workspace build passed. Full workspace tests and clean main/head smoke pairs have not been run for this integration.

World loading is being retested separately; this report does not establish gameplay or prologue completion. No game data is attached.

AI use: Codex, GPT-6 (exact serving variant not exposed), integrated the existing patches, ran these commands, inspected the cache payload, and wrote this report. The compact backend remains CowboyBingus's work.

**@⁠Swagi-REDACTED** on GitHub · 2026-11-25 05:39 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7154005088) Targeted RTX 3060 test report for the compute record `56c0cd3b82a00c6e` from **A newer retail game**, encountered during first world loading. 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 `cbc296ab65a2661a61e3e2da109134bcd5319f60` plus the four original commits `d94c34a`, `bd69c5d`, `c195f07`, `964f5ed` (local head `fc05b6d`). This is **not an unmodified PR-head test**: conflicts were resolved to retain main's shared shader cache and cached-only direct-DXIL deferral, and the current mesh-cache call needed a `false` compact argument. A separate, optional live-input test harness was also present. With `XCL_COMPACT_CS=auto`, the existing CLI command `xcl shaders <private-single-record-folder> --precompile --only cs --pipelines --limit 1` produced: ```text compact backend, compute program d122faa48eb0afdc: 88863 instructions, 730151 B HLSL compiled 1, already cached 0, errors 0, skipped (GS – paired at pipeline creation) 0, time 37.5 s pipelines made on the GPU 1, refused 0 pipelines loaded from the driver cache 0 ``` The serialized translated-cache payload contains 1,067,116 bytes of DXIL. The previous main-based world-load attempt logged this same record entering driver compilation with 22,089,024 bytes of DXIL; it had not finished when that run was intentionally stopped. This is not a timed, completed before/after benchmark. Additional validation on this integration: - `cargo test --locked -p xcl --lib compact -- --test-threads=4`: 30 passed, 0 failed, 0 ignored; 1 explicit native-wave64 skip (included among the passing tests). - `cargo test --locked -p xcl --lib gpu::recomp::pso::shader_cache_tests -- --test-threads=4`: 19 passed, 0 failed, 0 ignored; no explicit skips. - Release workspace build passed. Full workspace tests and clean main/head smoke pairs have not been run for this integration. World loading is being retested separately; this report does not establish gameplay or prologue completion. No game data is attached. AI use: Codex, GPT-6 (exact serving variant not exposed), integrated the existing patches, ran these commands, inspected the cache payload, and wrote this report. The compact backend remains CowboyBingus's work.
Author
Owner

@⁠CowboyBingus on GitHub · 2026-11-25 06:20 UTC · original

@⁠Pipodi thanks for the heads-up. Rebased onto main 6e1e2be and pushed: #1315 is now 0d7907b, this PR eb1f131. Both show as mergeable.

  • console_to_dxil_in: the compact / normal pair with normal_after_refusal now goes through #1836's shader_cache() (and its in-flight coalescing).
  • compile_console_shader: #1836's dxc::defer() check stays in front of the direct translator, for the programs that go there (goes_direct). A program XCL_COMPACT_CS routes to the compact form goes to the HLSL path, as before (so it is not deferred).
  • #2040 (4b0af47) added no text conflict: git merge-tree of 964f5ed gives the same two pso.rs hunks against main before and after its merge. But the mesh-pass call in its console_mesh_with auto-merges as a 7-argument translated::cached call, and this PR gives translated::cached an 8th argument, compact, so that call needs the argument to build. Mesh passes are not routed, so they pass false.

TESTED on eb1f131 (RTX 5070 Ti, Windows 11): cargo build --workspace and cargo build --release succeeded; cargo test -p xcl --lib compact -- --test-threads=4: 30 passed, 0 failed, 0 ignored (gpu_compact_native_wave64_form printed SKIPPED: no wave64 and counts among the passed); cargo test -p xcl --lib pso:: -- --test-threads=4: 19 passed, 0 failed, 1 ignored (compile_time_bench::repeated_pso_shader_compile). On #1315's 0d7907b: the same builds succeeded, compact 25 / 0 / 0 (same skip), pso:: 16 / 0 / 1. No full suite or smoke run on these heads.

AI use: Claude Code (Claude Opus 5.5) wrote this reply.

**@⁠CowboyBingus** on GitHub · 2026-11-25 06:20 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7154693096) @⁠Pipodi thanks for the heads-up. Rebased onto `main` `6e1e2be` and pushed: #1315 is now `0d7907b`, this PR `eb1f131`. Both show as mergeable. - `console_to_dxil_in`: the compact / normal pair with `normal_after_refusal` now goes through #1836's `shader_cache()` (and its in-flight coalescing). - `compile_console_shader`: #1836's `dxc::defer()` check stays in front of the direct translator, for the programs that go there (`goes_direct`). A program `XCL_COMPACT_CS` routes to the compact form goes to the HLSL path, as before (so it is not deferred). - #2040 (`4b0af47`) added no text conflict: `git merge-tree` of `964f5ed` gives the same two `pso.rs` hunks against `main` before and after its merge. But the mesh-pass call in its `console_mesh_with` auto-merges as a 7-argument `translated::cached` call, and this PR gives `translated::cached` an 8th argument, `compact`, so that call needs the argument to build. Mesh passes are not routed, so they pass `false`. TESTED on `eb1f131` (RTX 5070 Ti, Windows 11): `cargo build --workspace` and `cargo build --release` succeeded; `cargo test -p xcl --lib compact -- --test-threads=4`: 30 passed, 0 failed, 0 ignored (`gpu_compact_native_wave64_form` printed SKIPPED: no wave64 and counts among the passed); `cargo test -p xcl --lib pso:: -- --test-threads=4`: 19 passed, 0 failed, 1 ignored (`compile_time_bench::repeated_pso_shader_compile`). On #1315's `0d7907b`: the same builds succeeded, `compact` 25 / 0 / 0 (same skip), `pso::` 16 / 0 / 1. No full suite or smoke run on these heads. AI use: Claude Code (Claude Opus 5.5) wrote this reply.
Author
Owner

@⁠itsSio on GitHub · 2026-11-25 10:19 UTC · original

Tested

Independent Windows verification requested in #1269, on clean head eb1f1313a8ce0515b1b9587b4bcbee521718996d. Windows 11 Pro 26200 on both systems, x64 MSVC, unoptimized dev/test with debug info off. cargo build --workspace --locked and cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --nocapture exited 0 on both.

GPU / driver CPU, RAM, toolchain Passed / failed / ignored Runtime SKIPPED
RTX 5080 / 32.0.16.1088 Ryzen 7 9800X3D, 32 GiB; Rust 1.97.0, DXC/DXIL 1.9.2609.5 1179 / 0 / 46 26
RTX 2080 SUPER / 32.0.16.1088 Ryzen 5 5600X, 16 GiB; Rust 1.99.1, DXC/DXIL 1.8.2502.11 1179 / 0 / 46 28

Both 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: 17 / 0 / 0 on the Radeon RDNA2 iGPU (32.0.21043.5001, same Ryzen 7 system) with no runtime skips, and 17 / 0 / 0 on the RTX 2080 SUPER with one native-wave64 skip. Default XCL shader options throughout.

Not tested

Retail smoke or shader samples, full AMD workspace, RADV, Intel, or compile and gameplay performance.

AI use

Ran via Samaritan:

  • OpenCode with OpenAI GPT-6.2 Sol (openai/gpt-6.2-sol): ran both Windows checks, verified the raw results and wrote this report.
**@⁠itsSio** on GitHub · 2026-11-25 10:19 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7159529312) **Tested** Independent Windows verification requested in #1269, on clean head `eb1f1313a8ce0515b1b9587b4bcbee521718996d`. Windows 11 Pro 26200 on both systems, x64 MSVC, unoptimized dev/test with debug info off. `cargo build --workspace --locked` and `cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --nocapture` exited 0 on both. | GPU / driver | CPU, RAM, toolchain | Passed / failed / ignored | Runtime SKIPPED | | --- | --- | ---: | ---: | | RTX 5080 / `32.0.16.1088` | Ryzen 7 9800X3D, 32 GiB; Rust 1.97.0, DXC/DXIL 1.9.2609.5 | **1179 / 0 / 46** | 26 | | RTX 2080 SUPER / `32.0.16.1088` | Ryzen 5 5600X, 16 GiB; Rust 1.99.1, DXC/DXIL 1.8.2502.11 | **1179 / 0 / 46** | 28 | Both 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`: **17 / 0 / 0** on the Radeon RDNA2 iGPU (`32.0.21043.5001`, same Ryzen 7 system) with no runtime skips, and **17 / 0 / 0** on the RTX 2080 SUPER with one native-wave64 skip. Default XCL shader options throughout. **Not tested** Retail smoke or shader samples, full AMD workspace, RADV, Intel, or compile and gameplay performance. **AI use** Ran via Samaritan: - OpenCode with OpenAI GPT-6.2 Sol (`openai/gpt-6.2-sol`): ran both Windows checks, verified the raw results and wrote this report.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-26 04:47 UTC · original

Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current main on the new head — needs another rebase before it can be tested.

**@⁠DavidM1911** on GitHub · 2026-11-26 04:47 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#issuecomment-7182908253) Re-verification on RTX 3060 Ti (Windows 11): still a **merge conflict with current `main`** on the new head — needs another rebase before it can be tested.
Author
Owner

@⁠pvfreis on GitHub · 2026-11-24 15:33 UTC · original · reviewed

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.

  1. CONFIRMED: only_compute_goes_to_the_compact_backend does not test that only compute is routed. Its non-compute case is a lone S_ENDPGM, which has no branch target, so compact() returns translate for it (compact.rs:167-169) and always.hlsl == normal.hlsl holds whether or not kernel programs are routed. Removing matches!(opt.mode, Mode::Compute(_)) from translate_as (mod.rs:1409) would leave the test green, and that check is what keeps other modes out under XCL_COMPACT_CS=1. A branching program for the non-compute mode, asserting that its compact text differs from translate's and that the routed result equals translate'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.

**@⁠pvfreis** on GitHub · 2026-11-24 15:33 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#pullrequestreview-6042299825) · **reviewed** 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. 1. **CONFIRMED: `only_compute_goes_to_the_compact_backend` does not test that only compute is routed.** Its non-compute case is a lone `S_ENDPGM`, which has no branch target, so `compact()` returns `translate` for it (`compact.rs:167-169`) and `always.hlsl == normal.hlsl` holds whether or not kernel programs are routed. Removing `matches!(opt.mode, Mode::Compute(_))` from `translate_as` (`mod.rs:1409`) would leave the test green, and that check is what keeps other modes out under `XCL_COMPACT_CS=1`. A branching program for the non-compute mode, asserting that its compact text differs from `translate`'s and that the routed result equals `translate`'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.
Author
Owner

@⁠gsucristo on GitHub · 2026-11-25 02:10 UTC · original · reviewed

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:

  1. Redundant compact_wanted scans on cache misses (crates/xcl/src/gpu/recomp/pso.rs & mod.rs): In Auto mode on a cache miss, compact_form(blob) / cs.takes(code) decodes and scans the full compute program up to 3 times (once in console_to_dxil_in to choose the _c.bin path, once in compile_console_shader for goes_direct, and once in translate_as). Passing the already-computed bool down would avoid re-decoding 88k-instruction shaders on misses.
  2. XCL_DIRECT_DXIL precedence (pso.rs, goes_direct): Now that #2034 implements the compact form natively in Direct DXIL (0.48 MB DXIL with no DXC compile), routing XCL_DIRECT_DXIL=1 compute shaders to the HLSL+DXC compact path first may no longer be desirable once #2034 lands.
  3. Tiny formatting nit (crates/xcl/src/gpu/recomp/mod.rs): Missing space in let compact =compact::translate_compact(&code, &opt).unwrap(); in only_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.)

**@⁠gsucristo** on GitHub · 2026-11-25 02:10 UTC · [original](https://github.com/xcl-dev/xcl/pull/1316#pullrequestreview-6050610022) · **reviewed** 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: 1. **Redundant `compact_wanted` scans on cache misses (`crates/xcl/src/gpu/recomp/pso.rs` & `mod.rs`):** In `Auto` mode on a cache miss, `compact_form(blob)` / `cs.takes(code)` decodes and scans the full compute program up to 3 times (once in `console_to_dxil_in` to choose the `_c.bin` path, once in `compile_console_shader` for `goes_direct`, and once in `translate_as`). Passing the already-computed `bool` down would avoid re-decoding 88k-instruction shaders on misses. 2. **`XCL_DIRECT_DXIL` precedence (`pso.rs`, `goes_direct`):** Now that #2034 implements the compact form natively in Direct DXIL (`0.48 MB` DXIL with no DXC compile), routing `XCL_DIRECT_DXIL=1` compute shaders to the HLSL+DXC compact path first may no longer be desirable once #2034 lands. 3. **Tiny formatting nit (`crates/xcl/src/gpu/recomp/mod.rs`):** Missing space in `let compact =compact::translate_compact(&code, &opt).unwrap();` in `only_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.)*
This pull request has changes conflicting with the target branch.
  • crates/xcl/src/gpu/recomp/mod.rs
  • crates/xcl/src/gpu/recomp/pso.rs
  • crates/xcl/src/shaders.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1316/head:github-bot/gh-1316'
git switch 'github-bot/gh-1316'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1316'
git switch 'github-bot/gh-1316'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1316'
git switch 'github-bot/gh-1316'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1316'
git switch 'main'
git merge --squash 'github-bot/gh-1316'
git switch 'main'
git merge --ff-only 'github-bot/gh-1316'
git switch 'main'
git merge 'github-bot/gh-1316'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.