D3D12.X: a draw does not wait for a graphics pipeline still being built #1798

Open
github-bot wants to merge 1 commit from github-bot/gh-1798 into main AGit
Owner

@⁠isaacwingate on GitHub · 2026-11-24 20:53 UTC · original
isaacwingate:draws-dont-wait-pr → main · +38 −4 · 1 files · 1 commits · open

pso_async means a graphics pipeline still being built to go on with its stand-in, which draws nothing, while a worker builds it; only compute pipelines are waited for (a skipped dispatch would leave its outputs unwritten). But graphics_bound and ExecuteIndirect called resolve_wait, which waits for the build – and builds it on the title's thread when no worker has started it. With lazy pipelines that is every graphics pipeline's first draw. They now take their pipeline with resolve_for_bind, which waits for compute pipelines only. Part of #505.

Related: #1652 (stacked on #1274, 10 files) also stops draws waiting, among other changes; #267 bounds the draw wait to 4 s. This is the small change on its own.

What is in it

  • crates/xcl/src/hle/d3d12x/bind.rs: pso_for_draw (= pso_async::resolve_for_bind) for draws (graphics_bound) and ExecuteIndirect; a pending graphics pipeline's draw uses its stand-in, a pending one's ExecuteIndirect is skipped as before; compute is waited for as before. The XCL_TRACE_FRAME lookup no longer waits either. Test: a_draw_does_not_wait_for_a_graphics_pipeline_still_being_built – fails without the change (the draw waited the build's 1.5 s and got the real pipeline).
  • Rebased onto main c4d37be: the only conflict was this test landing next to execute_indirect_reads_the_arguments_written_before_it (both kept); execute_indirect's fresh_indirect_arguments is unaffected, both tests pass.

Tested

  • NVIDIA GeForce RTX 5080, driver 32.0.16.2124, i9-12900K, Windows 11 build 26300, rustc 1.100.0; tests in debug, runs in release
  • cargo test --workspace -- --test-threads=4 on 55e7beb: 960 passed, 0 failed, 43 ignored (SKIPPED: no wave64 for the wave64 forms of the new lower/lower_dxil GPU tests, gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware; three wave32 per-lane cases of f16_programs_on_the_gpu / f32_programs_on_the_gpu refused; 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)
  • The retail title of #505, XCL_NETWORK=0, with #899's wait log, through its world load (on main 1c87b1d, before this was rebased): without this, 25 graphics binds waited 33.2 s in all within 25 s as the world loaded (1 – 5 s each, mostly for a worker's build), next to the compute waits; with it, the same world load logged 0 graphics waits. On #889 an RTX 4080 report found a title thread held in bind::execute_indirect → resolve_wait at the watchdog's abort.

Regression run
Both with XCL_COHERENT_MB=4095 (without it the window is 512 MB or 4 GB depending on the commit free at the start, #284), one after the other.

main:

xcl-smoke v1
commit: c4d37bec1bb4286eb373aea963404a23f13401fa
gpu: NVIDIA GeForce RTX 5080
title: 8a66b2b2
seconds: 90
exit: 0x0
frames shown: 2520 (PresentX 2520)
presents per 2 s (last 3): 60 61 59
device removals: 0
crashes: 0
peak commit: 16007 MB

PR:

xcl-smoke v1
commit: 55e7beb6de9fcc8817d40d0a663857e3553c3632
gpu: NVIDIA GeForce RTX 5080
title: 8a66b2b2
seconds: 90
exit: 0x0
frames shown: 2527 (PresentX 2527)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16041 MB

Not tested

  • AMD and Intel GPUs; other titles
  • A world load end to end: on this machine the title's compute builds still hold it past the world load (cold caches), with or without this change
  • Pictures: a graphics pipeline still being built draws nothing for those frames; I did not compare frames

AI use

  • Claude Code with Claude Opus 5.5: found the waits (a thread profile and #899's counter), wrote the change and the test, ran the tests and the runs, and wrote this description.

🤖 Generated with Claude Code

**@⁠isaacwingate** on GitHub · 2026-11-24 20:53 UTC · [original](https://github.com/xcl-dev/xcl/pull/1798) `isaacwingate:draws-dont-wait-pr` → `main` · +38 −4 · 1 files · 1 commits · open `pso_async` means a graphics pipeline still being built to go on with its stand-in, which draws nothing, while a worker builds it; only compute pipelines are waited for (a skipped dispatch would leave its outputs unwritten). But `graphics_bound` and `ExecuteIndirect` called `resolve_wait`, which waits for the build – and builds it on the title's thread when no worker has started it. With lazy pipelines that is every graphics pipeline's first draw. They now take their pipeline with `resolve_for_bind`, which waits for compute pipelines only. Part of #505. Related: #1652 (stacked on #1274, 10 files) also stops draws waiting, among other changes; #267 bounds the draw wait to 4 s. This is the small change on its own. **What is in it** - `crates/xcl/src/hle/d3d12x/bind.rs`: `pso_for_draw` (= `pso_async::resolve_for_bind`) for draws (`graphics_bound`) and `ExecuteIndirect`; a pending graphics pipeline's draw uses its stand-in, a pending one's ExecuteIndirect is skipped as before; compute is waited for as before. The `XCL_TRACE_FRAME` lookup no longer waits either. Test: `a_draw_does_not_wait_for_a_graphics_pipeline_still_being_built` – fails without the change (the draw waited the build's 1.5 s and got the real pipeline). - Rebased onto `main` `c4d37be`: the only conflict was this test landing next to `execute_indirect_reads_the_arguments_written_before_it` (both kept); `execute_indirect`'s `fresh_indirect_arguments` is unaffected, both tests pass. **Tested** - NVIDIA GeForce RTX 5080, driver 32.0.16.2124, i9-12900K, Windows 11 build 26300, rustc 1.100.0; tests in debug, runs in release - `cargo test --workspace -- --test-threads=4` on 55e7beb: 960 passed, 0 failed, 43 ignored (SKIPPED: `no wave64` for the wave64 forms of the new `lower`/`lower_dxil` GPU tests, `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware`; three wave32 per-lane cases of `f16_programs_on_the_gpu` / `f32_programs_on_the_gpu` refused; `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) - The retail title of #505, `XCL_NETWORK=0`, with #899's wait log, through its world load (on main 1c87b1d, before this was rebased): without this, 25 graphics binds waited 33.2 s in all within 25 s as the world loaded (1 – 5 s each, mostly for a worker's build), next to the compute waits; with it, the same world load logged 0 graphics waits. On #889 an RTX 4080 report found a title thread held in `bind::execute_indirect` → `resolve_wait` at the watchdog's abort. **Regression run** Both with `XCL_COHERENT_MB=4095` (without it the window is 512 MB or 4 GB depending on the commit free at the start, #284), one after the other. main: ``` xcl-smoke v1 commit: c4d37bec1bb4286eb373aea963404a23f13401fa gpu: NVIDIA GeForce RTX 5080 title: 8a66b2b2 seconds: 90 exit: 0x0 frames shown: 2520 (PresentX 2520) presents per 2 s (last 3): 60 61 59 device removals: 0 crashes: 0 peak commit: 16007 MB ``` PR: ``` xcl-smoke v1 commit: 55e7beb6de9fcc8817d40d0a663857e3553c3632 gpu: NVIDIA GeForce RTX 5080 title: 8a66b2b2 seconds: 90 exit: 0x0 frames shown: 2527 (PresentX 2527) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16041 MB ``` **Not tested** - AMD and Intel GPUs; other titles - A world load end to end: on this machine the title's compute builds still hold it past the world load (cold caches), with or without this change - Pictures: a graphics pipeline still being built draws nothing for those frames; I did not compare frames **AI use** - Claude Code with Claude Opus 5.5: found the waits (a thread profile and #899's counter), wrote the change and the test, ran the tests and the runs, and wrote this description. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
pso_async means a graphics pipeline still being built to go on with its
stand-in, which draws nothing, while a worker builds it; only compute
pipelines are waited for (a skipped dispatch would leave its outputs
unwritten). But graphics_bound and ExecuteIndirect called resolve_wait,
which waits for the build - and builds it on the title's thread when no
worker has started it. With lazy pipelines that is every graphics
pipeline's first draw.

On an NVIDIA GPU the retail title of #505 had its threads held 1 - 5 s
per draw in the driver's compiler as its world loaded: 25 graphics binds,
33.2 s in all within 25 s (counted with #899's log), and its hang
watchdog ended the run. A test report on #889 (RTX 4080) found a title
thread held in bind::execute_indirect -> resolve_wait at the abort.

Draws and ExecuteIndirect now take their pipeline with resolve_for_bind:
a graphics one still being built goes to the workers and the draw uses
its stand-in (ExecuteIndirect skips, as it already did for a pending
one); a compute one is waited for as before. With this, the same world
load logged no graphics wait.

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

@⁠freemanovec on GitHub · 2026-11-24 22:17 UTC · original

Test report for #1798 on Linux / Wine / RADV, with the retail title of #505. Tested at head 141df97; the rebased head 55e7beb has the same patch.

Without #1798, our longest earlier run (main + the local picks below, without #1798) ended with the title thread in bind::execute_indirect -> pso_async::resolve_wait behind pixel-shader DXC. No present came after 160.6 s. With #1798 on main e9e94ce, no thread dump shows a title thread in execute_indirect or graphics_bound, so the graphics wait is gone here too. The title still does not present after ~150 s or leave the loading screen in 1200 s. The title threads now wait on compute pipelines: real::cl_set_pipeline_state -> resolve_for_bind -> resolve_wait, and dxc::compile called from translated_compute_pso_once on the title thread, ~13 s per 3.7–4.6 MB HLSL compute program.

Tested

  • Commit: 1e3f582 = main e9e94ce + 141df97 (#1798) + local picks not on main: #867, #871, #684, #433, #794, a 4 GiB window alignment workaround, diagnostic logging, and compute pipelines of 256 KiB+ DXIL built on a 64 MiB-stack thread. Release build, x86_64-pc-windows-gnu (llvm-mingw).
  • Hardware: AMD RX 7900 XTX, RADV Mesa 26.3.1, Linux 7.3.5, Wine 11.22 in gamescope. vkd3d-proton 3.1 (4522cc1) built with dxil-spirv 53aac41 plus four local patches (dominator queries and loop tracers without deep recursion; without them two retail compute programs take 300–940 s or overflow the stack).
  • cargo test --lib -- --test-threads=4 on the D3D12.X / sparse / xg / kernelx subset plus a_draw_does_not_wait_for_a_graphics_pipeline_still_being_built: 136 passed, 0 failed, 2 ignored. sparse_readback_waits, sparse_readback_lands: 1 passed each. gpu::dxil tests one by one: 86 passed, 1 ignored, 2 abort (integer_ops_match_cpu, uaddc_and_usubb_match_cpu, exit 3, the same on e9e94ce). No SKIPPED lines.
  • Title runs, 1200 s (XCL_RUN_SECONDS), HLSL path, XCL_HEAP_WINDOWS=1 XCL_PSO_PRELOAD=0 XCL_DXC_THREADS=2 XCL_PIPELINE_THREADS=4 XCL_LATE_RELEASE=0:
    • run 1: #101 at 123.8 s, last present 150.3 s, ends at the cap.
    • run 2 (warm): #101 at 148.0 s, last present 150.2 s, ends at the cap.
    • run 3: #101 at 146.3 s, last present 148.2 s, stopped at ~688 s.
    • No device removal, no crash, no amdgpu fault line in any run.
  • Two huge compute programs (56c0cd3b82a00c6e, 22.1 MB DXIL; 95cc13288a27a96e, 13.0 MB DXIL) take 175–204 s each in vkCreateComputePipelines on every run, though the driver blob is supplied and DXC is cached.

Not tested

  • Windows, NVIDIA, the stock dxil-spirv build with the title.
  • Whether the title presents again once every compute program is cached: each warm run got further through them, but none presented.
  • #1782, #1809.

Written by Claude Code (Claude Opus 5.5) from the runs above.

**@⁠freemanovec** on GitHub · 2026-11-24 22:17 UTC · [original](https://github.com/xcl-dev/xcl/pull/1798#issuecomment-7146049979) Test report for #1798 on Linux / Wine / RADV, with the retail title of #505. Tested at head 141df97; the rebased head 55e7beb has the same patch. Without #1798, our longest earlier run (main + the local picks below, without #1798) ended with the title thread in `bind::execute_indirect` -> `pso_async::resolve_wait` behind pixel-shader DXC. No present came after 160.6 s. With #1798 on main e9e94ce, no thread dump shows a title thread in `execute_indirect` or `graphics_bound`, so the graphics wait is gone here too. The title still does not present after ~150 s or leave the loading screen in 1200 s. The title threads now wait on compute pipelines: `real::cl_set_pipeline_state` -> `resolve_for_bind` -> `resolve_wait`, and `dxc::compile` called from `translated_compute_pso_once` on the title thread, ~13 s per 3.7–4.6 MB HLSL compute program. **Tested** - Commit: 1e3f582 = main e9e94ce + 141df97 (#1798) + local picks not on main: #867, #871, #684, #433, #794, a 4 GiB window alignment workaround, diagnostic logging, and compute pipelines of 256 KiB+ DXIL built on a 64 MiB-stack thread. Release build, x86_64-pc-windows-gnu (llvm-mingw). - Hardware: AMD RX 7900 XTX, RADV Mesa 26.3.1, Linux 7.3.5, Wine 11.22 in gamescope. vkd3d-proton 3.1 (4522cc1) built with dxil-spirv 53aac41 plus four local patches (dominator queries and loop tracers without deep recursion; without them two retail compute programs take 300–940 s or overflow the stack). - `cargo test --lib -- --test-threads=4` on the D3D12.X / sparse / xg / kernelx subset plus `a_draw_does_not_wait_for_a_graphics_pipeline_still_being_built`: 136 passed, 0 failed, 2 ignored. `sparse_readback_waits`, `sparse_readback_lands`: 1 passed each. `gpu::dxil` tests one by one: 86 passed, 1 ignored, 2 abort (`integer_ops_match_cpu`, `uaddc_and_usubb_match_cpu`, exit 3, the same on e9e94ce). No SKIPPED lines. - Title runs, 1200 s (`XCL_RUN_SECONDS`), HLSL path, `XCL_HEAP_WINDOWS=1 XCL_PSO_PRELOAD=0 XCL_DXC_THREADS=2 XCL_PIPELINE_THREADS=4 XCL_LATE_RELEASE=0`: - run 1: #101 at 123.8 s, last present 150.3 s, ends at the cap. - run 2 (warm): #101 at 148.0 s, last present 150.2 s, ends at the cap. - run 3: #101 at 146.3 s, last present 148.2 s, stopped at ~688 s. - No device removal, no crash, no amdgpu fault line in any run. - Two huge compute programs (56c0cd3b82a00c6e, 22.1 MB DXIL; 95cc13288a27a96e, 13.0 MB DXIL) take 175–204 s each in vkCreateComputePipelines on every run, though the driver blob is supplied and DXC is cached. **Not tested** - Windows, NVIDIA, the stock dxil-spirv build with the title. - Whether the title presents again once every compute program is cached: each warm run got further through them, but none presented. - #1782, #1809. Written by Claude Code (Claude Opus 5.5) from the runs above.
Author
Owner

@⁠vitor127wt on GitHub · 2026-11-24 22:25 UTC · original

Instrumented retail comparison — RTX 5070 Ti / Proton

The last logged wait snapshots show 20 graphics bind waits, 5,037 ms total on the base, and zero on the PR. The PR continued to log compute waits. The base completed the 150 s window, and the PR incurred a write access violation in xg::copy_from at 136.517 s.

Tested

  • RTX 5070 Ti 16 GB, NVIDIA 620.73.04, Ryzen 7 9700X, 32 GB DDR5, CachyOS 7.3.5-2-cachyos, Proton Experimental 11.0 (experimental-11.0-20261112-x86_64), vkd3d-proton ec207194 with the #257 patch and dxil-spirv 7c048638. Rust 1.100.0, LLVM-MinGW 20261117 (x86_64-pc-windows-gnullvm), DXC 1.9.2609.5.
  • Base c4d37bec1bb4286eb373aea963404a23f13401fa and PR head 55e7beb6de9fcc8817d40d0a663857e3553c3632, each with the same local wait-counter patch from #899 (b2936198896ad0e7dbac66ef406c1ba7415c6cb8). Built with cargo build --locked --release --target x86_64-pc-windows-gnullvm -p xcl --bin xcl.
  • Ran scripts/linux/smoke.sh "$PROTON" "$PREFIX" "$GAME" from #257 for 150 s with the same retail title, XCL_COHERENT_MB=4095, default lazy PSOs and HLSL translation, with A scheduled every three seconds. The title runs used fresh Wine prefixes and caches, networking off, and a 16 GiB Linux scope limit with no swap.
Last #899 snapshot Graphics waits Compute waits
Base at 108.056 s 20 / 5,037 ms total / 2,293 ms longest 8 / 13,292 ms total / 8,268 ms longest
PR at 98.462 s 0 / 0 ms 8 / 9,568 ms total / 6,295 ms longest

The base exited 0x0 with 1,999 presents. On the PR the last nonzero two-second bin ended at 136.029 s. At 136.517 s the log recorded 0xc0000005 in ucrtbase.dll+0x171d9. llvm-addr2line mapped xcl-pr1798.exe+0x268225 to core::ptr::copy_nonoverlapping in xcl::hle::xg::copy_from, crates/xcl/src/hle/xg.rs:713. The process ended at 141.294 s with 2,290 PresentX calls in its report. #684 changes that copy routine. This pair locates the fault and leaves its cause open.

Linux scope peaks were 15.17 and 16.00 GiB, with zero OOM kills. The runs are a locally instrumented comparison, and the early exit left the PR run without a completed smoke block.

AI use — OpenAI Codex (GPT-6, exact variant unavailable) ran the tests, checked the logs, and drafted this report.

**@⁠vitor127wt** on GitHub · 2026-11-24 22:25 UTC · [original](https://github.com/xcl-dev/xcl/pull/1798#issuecomment-7146201994) **Instrumented retail comparison — RTX 5070 Ti / Proton** The last logged wait snapshots show **20 graphics bind waits, 5,037 ms total on the base**, and **zero on the PR**. The PR continued to log compute waits. The base completed the 150 s window, and the PR incurred a write access violation in `xg::copy_from` at 136.517 s. **Tested** - RTX 5070 Ti 16 GB, NVIDIA 620.73.04, Ryzen 7 9700X, 32 GB DDR5, CachyOS `7.3.5-2-cachyos`, Proton Experimental 11.0 (`experimental-11.0-20261112-x86_64`), vkd3d-proton `ec207194` with the #257 patch and dxil-spirv `7c048638`. Rust 1.100.0, LLVM-MinGW 20261117 (`x86_64-pc-windows-gnullvm`), DXC 1.9.2609.5. - Base `c4d37bec1bb4286eb373aea963404a23f13401fa` and PR head `55e7beb6de9fcc8817d40d0a663857e3553c3632`, each with the same local wait-counter patch from #899 (`b2936198896ad0e7dbac66ef406c1ba7415c6cb8`). Built with `cargo build --locked --release --target x86_64-pc-windows-gnullvm -p xcl --bin xcl`. - Ran `scripts/linux/smoke.sh "$PROTON" "$PREFIX" "$GAME"` from #257 for 150 s with the same retail title, `XCL_COHERENT_MB=4095`, default lazy PSOs and HLSL translation, with A scheduled every three seconds. The title runs used fresh Wine prefixes and caches, networking off, and a 16 GiB Linux scope limit with no swap. | Last #899 snapshot | Graphics waits | Compute waits | | --- | --- | --- | | Base at 108.056 s | 20 / 5,037 ms total / 2,293 ms longest | 8 / 13,292 ms total / 8,268 ms longest | | PR at 98.462 s | 0 / 0 ms | 8 / 9,568 ms total / 6,295 ms longest | The base exited `0x0` with 1,999 presents. On the PR the last nonzero two-second bin ended at 136.029 s. At 136.517 s the log recorded `0xc0000005` in `ucrtbase.dll+0x171d9`. `llvm-addr2line` mapped `xcl-pr1798.exe+0x268225` to `core::ptr::copy_nonoverlapping` in `xcl::hle::xg::copy_from`, `crates/xcl/src/hle/xg.rs:713`. The process ended at 141.294 s with 2,290 PresentX calls in its report. #684 changes that copy routine. This pair locates the fault and leaves its cause open. Linux scope peaks were 15.17 and 16.00 GiB, with zero OOM kills. The runs are a locally instrumented comparison, and the early exit left the PR run without a completed smoke block. **AI use** — OpenAI Codex (GPT-6, exact variant unavailable) ran the tests, checked the logs, and drafted this report.
Author
Owner

@⁠vitor127wt on GitHub · 2026-11-24 22:56 UTC · original

I repeated the retail loading run from my earlier report with and without the #684 fix. The control reproduced the same xg::copy_from crash. With #684 applied, the title reached the 150 s timer and exited with code 0. It had stopped presenting new frames toward the end.

Build Result Last sampled PSO bind waits
#1798 + #899 instrumentation 0xc0000005 at 122.140 s, process end logged at 126.507 s. llvm-addr2line mapped the XCL frame to xg::copy_from at xg.rs:713. 0 graphics, 8 compute (10,133 ms total)
#1798 + same #899 instrumentation + #684 150.000 s, exit 0, 1,701 PresentX calls, 0 crashes, 0 device removals. The activity interval ending at 118.129 s and each later interval recorded zero presents. 0 graphics, 34 compute (94,506 ms total)

The compute times are cumulative across threads and the runs reached different points. Neither scope recorded an OOM kill. Peak scope memory was 15.71 GiB without #684 and 15.07 GiB with it.

Both builds used 55e7beb6de9fcc8817d40d0a663857e3553c3632 with the wait counter from #899 at b2936198896a. The second build also applied the #684 diff 91f9a5e9f031..e56dbc3f4313. The Windows binaries were built with cargo build --locked --release --target x86_64-pc-windows-gnullvm -p xcl --bin xcl. Each used Linux kit #257's scripts/linux/smoke.sh "$PROTON" "$PREFIX" "$GAME" 150 with my local retail 1.0.2.1 extraction, XCL_COHERENT_MB=4095, HLSL + DXC, lazy PSOs, A every 3 s, fresh prefixes and private caches, and a 16 GiB cgroup with swap disabled.

RTX 5070 Ti (16 GB, driver 620.73.04), Ryzen 7 9700X, 32 GB DDR5, CachyOS 7.3.5-2-cachyos, Proton Experimental experimental-11.0-20261112-x86_64, vkd3d-proton ec20719452e9, dxil-spirv 7c048638ab59, Rust 1.100.0, LLVM-MinGW 20261117, DXC 1.9.2609.5.

AI use — OpenAI Codex (GPT-6, exact variant unavailable) ran the tests, symbolized the crash, and drafted this report.

**@⁠vitor127wt** on GitHub · 2026-11-24 22:56 UTC · [original](https://github.com/xcl-dev/xcl/pull/1798#issuecomment-7146829619) I repeated the retail loading run from [my earlier report](https://git.gtahub.st/github/xcl-dev--xcl/pulls/1798) with and without the #684 fix. The control reproduced the same `xg::copy_from` crash. With #684 applied, the title reached the 150 s timer and exited with code 0. It had stopped presenting new frames toward the end. | Build | Result | Last sampled PSO bind waits | | --- | --- | --- | | #1798 + #899 instrumentation | `0xc0000005` at 122.140 s, process end logged at 126.507 s. `llvm-addr2line` mapped the XCL frame to `xg::copy_from` at `xg.rs:713`. | 0 graphics, 8 compute (10,133 ms total) | | #1798 + same #899 instrumentation + #684 | 150.000 s, exit 0, 1,701 PresentX calls, 0 crashes, 0 device removals. The activity interval ending at 118.129 s and each later interval recorded zero presents. | 0 graphics, 34 compute (94,506 ms total) | The compute times are cumulative across threads and the runs reached different points. Neither scope recorded an OOM kill. Peak scope memory was 15.71 GiB without #684 and 15.07 GiB with it. Both builds used `55e7beb6de9fcc8817d40d0a663857e3553c3632` with the wait counter from #899 at `b2936198896a`. The second build also applied the #684 diff `91f9a5e9f031..e56dbc3f4313`. The Windows binaries were built with `cargo build --locked --release --target x86_64-pc-windows-gnullvm -p xcl --bin xcl`. Each used Linux kit #257's `scripts/linux/smoke.sh "$PROTON" "$PREFIX" "$GAME" 150` with my local retail 1.0.2.1 extraction, `XCL_COHERENT_MB=4095`, HLSL + DXC, lazy PSOs, A every 3 s, fresh prefixes and private caches, and a 16 GiB cgroup with swap disabled. RTX 5070 Ti (16 GB, driver 620.73.04), Ryzen 7 9700X, 32 GB DDR5, CachyOS 7.3.5-2-cachyos, Proton Experimental `experimental-11.0-20261112-x86_64`, vkd3d-proton `ec20719452e9`, dxil-spirv `7c048638ab59`, Rust 1.100.0, LLVM-MinGW 20261117, DXC 1.9.2609.5. **AI use** — OpenAI Codex (GPT-6, exact variant unavailable) ran the tests, symbolized the crash, and drafted this report.
Author
Owner

@⁠Royalflamejlh on GitHub · 2026-11-24 23:27 UTC · original

Linux (Wine + vkd3d-proton) + NVIDIA test of 55e7beb on main c4d37be + #684, 2 runs each way into a retail title's world load: with it at least 40 draws went on with their stand-in (the first within 6 s) and at least 128 ExecuteIndirect calls were skipped (the first at 76.6 and 92.9 s), where without it none were. Presents stopped at the end of loading in all four runs, as in part 2 of #662, at 78.1 to 78.2 s with it and 74.3 to 74.9 s without; 2 runs each way do not show that the difference is the pull request's, and no run reached #662's null write.

Setup: Fedora 44 (kernel 7.2.9), Wine 11.21 Staging (Wayland driver), vkd3d-proton v3.1-90-g30b0eb9b with the relaxed-vtable patch from #175 and a local dxil-spirv patch, VKD3D_CONFIG=ignore_shared_fence. RTX 4070 12 GB (driver 615.71.09, 32-lane waves), Ryzen 9 9950X3D, 62 GB RAM. Release, cross-compiled to x86_64-pc-windows-gnu (rustc 1.98.0), DXC 1.9.2609.5, XCL_NETWORK=0, XCL_PSO_PRELOAD=0. Caches as earlier runs left them: about a third of the compute pipelines came from the driver's blob (57 and 58 with it, 68 and 93 without). Retail title 1.0.2.1, the first-run screens completed once and no story progress, A pressed on the account screen at 16.4 to 16.5 s in the four runs of the table. The run with it went first in every pair, and the first of them alone was started with a rebuild. 55e7beb merged onto main c4d37be + #684 (e56dbc3) without conflicts; main is 20cf130 now, with bind.rs unchanged since c4d37be.

Tested

  • cargo test --release -p xcl --lib for a_draw_does_not_wait and execute_indirect_reads under Wine, on the merge: 2 passed, 0 failed.
c4d37be + #684: 100 s / 130 s the same + 55e7beb: 100 s / 130 s
draws with a stand-in (logged as "with PC pipelines"), at the last count line 0 / 0 40 / 40 (33 / 22 at the last count line before presents stopped)
ExecuteIndirect skipped, pipeline still being built (logged as "skipped"), at the last count line 0 / 0 128 / 128; first at 76.6 / 92.9 s
last 2 s with a present 74.3 s / 74.9 s 78.2 s / 78.1 s
dispatches by the last activity line 9676 / 10065 9560 / 9508
compute pipelines made by the end 208 / 303 175 / 168
frames presented 1325 / 1314 1362 / 1404

The count line is printed when one of its counters reaches a power of two, so 40 and 128 are floors (128 means 128 to 255), and the warning for a skipped ExecuteIndirect is printed for the first four only.

In the 100 s run with it the loading pictures at 40, 60, 66 and 74 s were whole (frames kept), the last of them after 23 draws had used a stand-in. I kept no frames of the runs without it. The skipped ExecuteIndirect calls all came after the last kept frame (73.9 s).

A third pair of 100 s runs was slower from the start (A at 22.2 and 18.4 s): presents stopped at 90.2 s with it and 92.2 s without, and neither run had the burst of dispatches or a skipped ExecuteIndirect before it ended.

Read

  • bind.rs:497 (pso_for_draw) is resolve_for_bind, used at :256 for ExecuteIndirect and at :508 for draws (graphics_bound), as the description says; compute still waits. The runs agree: what went on with a stand-in or was skipped is graphics.
  • With it the title made fewer compute pipelines by the end of both runs (175 and 168 against 208 and 303) and slightly fewer dispatches. I do not know why, and 2 runs may not separate it from the spread between runs: by 90 s the 130 s run with it had made 24 compute pipelines, the other three 141, 195 and 219.

Not tested: past the point where presents stop, where a skipped call would show; frames of the runs without it; the preload of #690 on; #1652 and #267, which change the same wait; the rest of the suite; AMD and Intel.

AI use: Claude Code (Claude Fable 5.2) read the diff, built the trees, ran the tests and the six runs, compared the logs and frames and wrote this report.

Posted without review by a person: the account owner was away and reads replies later.

**@⁠Royalflamejlh** on GitHub · 2026-11-24 23:27 UTC · [original](https://github.com/xcl-dev/xcl/pull/1798#issuecomment-7147423072) Linux (Wine + vkd3d-proton) + NVIDIA test of `55e7beb` on `main` `c4d37be` + #684, 2 runs each way into a retail title's world load: with it at least 40 draws went on with their stand-in (the first within 6 s) and at least 128 `ExecuteIndirect` calls were skipped (the first at 76.6 and 92.9 s), where without it none were. Presents stopped at the end of loading in all four runs, as in part 2 of #662, at 78.1 to 78.2 s with it and 74.3 to 74.9 s without; 2 runs each way do not show that the difference is the pull request's, and no run reached #662's null write. **Setup:** Fedora 44 (kernel 7.2.9), Wine 11.21 Staging (Wayland driver), vkd3d-proton v3.1-90-g30b0eb9b with the relaxed-vtable patch from #175 and a local dxil-spirv patch, `VKD3D_CONFIG=ignore_shared_fence`. RTX 4070 12 GB (driver 615.71.09, 32-lane waves), Ryzen 9 9950X3D, 62 GB RAM. Release, cross-compiled to `x86_64-pc-windows-gnu` (rustc 1.98.0), DXC 1.9.2609.5, `XCL_NETWORK=0`, `XCL_PSO_PRELOAD=0`. Caches as earlier runs left them: about a third of the compute pipelines came from the driver's blob (57 and 58 with it, 68 and 93 without). Retail title 1.0.2.1, the first-run screens completed once and no story progress, A pressed on the account screen at 16.4 to 16.5 s in the four runs of the table. The run with it went first in every pair, and the first of them alone was started with a rebuild. `55e7beb` merged onto `main` `c4d37be` + #684 (`e56dbc3`) without conflicts; `main` is `20cf130` now, with `bind.rs` unchanged since `c4d37be`. **Tested** - `cargo test --release -p xcl --lib` for `a_draw_does_not_wait` and `execute_indirect_reads` under Wine, on the merge: 2 passed, 0 failed. | | `c4d37be` + #684: 100 s / 130 s | the same + `55e7beb`: 100 s / 130 s | |---|---|---| | draws with a stand-in (logged as "with PC pipelines"), at the last count line | 0 / 0 | 40 / 40 (33 / 22 at the last count line before presents stopped) | | `ExecuteIndirect` skipped, pipeline still being built (logged as "skipped"), at the last count line | 0 / 0 | 128 / 128; first at 76.6 / 92.9 s | | last 2 s with a present | 74.3 s / 74.9 s | 78.2 s / 78.1 s | | dispatches by the last activity line | 9676 / 10065 | 9560 / 9508 | | compute pipelines made by the end | 208 / 303 | 175 / 168 | | frames presented | 1325 / 1314 | 1362 / 1404 | The count line is printed when one of its counters reaches a power of two, so 40 and 128 are floors (128 means 128 to 255), and the warning for a skipped `ExecuteIndirect` is printed for the first four only. In the 100 s run with it the loading pictures at 40, 60, 66 and 74 s were whole (frames kept), the last of them after 23 draws had used a stand-in. I kept no frames of the runs without it. The skipped `ExecuteIndirect` calls all came after the last kept frame (73.9 s). A third pair of 100 s runs was slower from the start (A at 22.2 and 18.4 s): presents stopped at 90.2 s with it and 92.2 s without, and neither run had the burst of dispatches or a skipped `ExecuteIndirect` before it ended. **Read** - `bind.rs:497` (`pso_for_draw`) is `resolve_for_bind`, used at `:256` for `ExecuteIndirect` and at `:508` for draws (`graphics_bound`), as the description says; compute still waits. The runs agree: what went on with a stand-in or was skipped is graphics. - With it the title made fewer compute pipelines by the end of both runs (175 and 168 against 208 and 303) and slightly fewer dispatches. I do not know why, and 2 runs may not separate it from the spread between runs: by 90 s the 130 s run with it had made 24 compute pipelines, the other three 141, 195 and 219. **Not tested:** past the point where presents stop, where a skipped call would show; frames of the runs without it; the preload of #690 on; #1652 and #267, which change the same wait; the rest of the suite; AMD and Intel. **AI use:** Claude Code (Claude Fable 5.2) read the diff, built the trees, ran the tests and the six runs, compared the logs and frames and wrote this report. Posted without review by a person: the account owner was away and reads replies later.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 00:04 UTC · original

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

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

Thanks!

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

@⁠Anon64 on GitHub · 2026-11-25 00:38 UTC · original

World-loading run of this PR on a 12 GB 32-lane NVIDIA card, where main's world load now waits on graphics pipelines.

Setup: RTX 3060 12 GB (581.80), Windows 11 26200, 64 GB RAM, release, retail title. A pressed every 4 s from 20 s. XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_PSO_PRELOAD=0 XCL_NETWORK=0.

main 80f4819 alone: presents stop at ~72 s and stay 0 to the end of a 420 s run, with no crash.

  • Thread dumps at 150 / 200 / 240 s (from a build with #253 for safe dumps) show one title thread in bind… → pso_async::resolve_wait each time.
  • In each dump one xcl-pso-* worker is inside nvgpucomp64.dll, and the rest are idle.
  • The log has driver compile start/finish … graphics PSO … huge, wanted at once (no slot) builds of 1.7–3 s, one after another.
  • No compute PSO is built after ~200 s.

This PR's head 55e7beb merged onto main 80f4819 (clean merge), same settings:

  • presents stop at ~72 s as before, and one frame is presented at 117 s;
  • at 144.9 s the device is removed, 0x887a0006 (DXGI_ERROR_DEVICE_HUNG), logged as D3D12 device removed just before the exception. Then the title ends itself with 0x80000003 at its +0x2474606, the int3 that ends its crash report (#1508; @⁠gigabyteZ390's comment there). (smoke.ps1: device removals: 1, crashes: 2);
  • peak commit 32.0 GB.

So on this card the draws no longer wait, and the title gets past the point where main sits. Then the GPU hangs. Whether that comes from draws being dropped while their pipelines build, or from something later that main never reaches, I can't tell from one run.

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

**@⁠Anon64** on GitHub · 2026-11-25 00:38 UTC · [original](https://github.com/xcl-dev/xcl/pull/1798#issuecomment-7148730381) World-loading run of this PR on a 12 GB 32-lane NVIDIA card, where `main`'s world load now waits on graphics pipelines. **Setup:** RTX 3060 12 GB (581.80), Windows 11 26200, 64 GB RAM, release, retail title. A pressed every 4 s from 20 s. `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_PSO_PRELOAD=0 XCL_NETWORK=0`. **`main` `80f4819` alone:** presents stop at ~72 s and stay 0 to the end of a 420 s run, with no crash. - Thread dumps at 150 / 200 / 240 s (from a build with #253 for safe dumps) show one title thread in `bind`… → `pso_async::resolve_wait` each time. - In each dump one `xcl-pso-*` worker is inside `nvgpucomp64.dll`, and the rest are idle. - The log has `driver compile start/finish … graphics PSO … huge, wanted at once (no slot)` builds of 1.7–3 s, one after another. - No compute PSO is built after ~200 s. **This PR's head `55e7beb` merged onto `main` `80f4819`** (clean merge), same settings: - presents stop at ~72 s as before, and one frame is presented at 117 s; - at **144.9 s** the device is removed, `0x887a0006` (`DXGI_ERROR_DEVICE_HUNG`), logged as `D3D12 device removed` just before the exception. Then the title ends itself with `0x80000003` at its `+0x2474606`, the `int3` that ends its crash report (#1508; @⁠gigabyteZ390's comment there). (`smoke.ps1`: `device removals: 1`, `crashes: 2`); - peak commit 32.0 GB. So on this card the draws no longer wait, and the title gets past the point where `main` sits. Then the GPU hangs. Whether that comes from draws being dropped while their pipelines build, or from something later that `main` never reaches, I can't tell from one run. Written with Claude Code (Claude Opus 5.5) from runs on this machine.
Author
Owner

@⁠raylitebull on GitHub · 2026-11-25 00:55 UTC · original

Code review on 55e7beb:

  • Routing graphics_bound and execute_indirect through pso_for_draw -> pso_async::resolve_for_bind cleanly avoids blocking draws on in-flight graphics PSO builds while keeping compute pipelines synchronous, and a_draw_does_not_wait_for_a_graphics_pipeline_still_being_built covers both paths.
  • This already has cross-vendor test coverage (RADV + NVIDIA + Wine) and PR description is green, but Build and test (Windows, no GPU) has not run on 55e7beb.

Next step to unblock merge: Please rebase onto current main (or re-push) so Build and test (Windows, no GPU) runs on the current head.

**@⁠raylitebull** on GitHub · 2026-11-25 00:55 UTC · [original](https://github.com/xcl-dev/xcl/pull/1798#issuecomment-7149033983) Code review on `55e7beb`: - Routing `graphics_bound` and `execute_indirect` through `pso_for_draw` -> `pso_async::resolve_for_bind` cleanly avoids blocking draws on in-flight graphics PSO builds while keeping compute pipelines synchronous, and `a_draw_does_not_wait_for_a_graphics_pipeline_still_being_built` covers both paths. - This already has cross-vendor test coverage (RADV + NVIDIA + Wine) and `PR description` is green, **but `Build and test (Windows, no GPU)` has not run on `55e7beb`**. **Next step to unblock merge:** Please rebase onto current `main` (or re-push) so `Build and test (Windows, no GPU)` runs on the current head.
Author
Owner

@⁠raylitebull on GitHub · 2026-11-25 01:06 UTC · original

Update: \Build and test (Windows, no GPU)\ is now green on \55e7beb\ (\CLEAN). One quick AMD confirmation on exact head \55e7beb\ (the prior RADV run was on \141df97) is all that remains before merge.

**@⁠raylitebull** on GitHub · 2026-11-25 01:06 UTC · [original](https://github.com/xcl-dev/xcl/pull/1798#issuecomment-7149208267) Update: \Build and test (Windows, no GPU)\ is now green on \55e7beb\ (\CLEAN\). One quick **AMD** confirmation on exact head \55e7beb\ (the prior RADV run was on \141df97\) is all that remains before merge.
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 01:29 UTC · original

Empirical verification on the Intel Arc A770 for the draw path with pending graphics pipelines.

  • PR head tested from a clean checkout 55e7beb6de9fcc8817d40d0a663857e3553c3632
  • Fetched origin/main 8f5fca5bb9ad6e695093d75294ad2cec023bba60. git merge-tree --write-tree origin/main HEAD completed with exit 0 and no conflicts.

Tested

  • Windows 11 Enterprise Evaluation x64 build 26200.9974 on an AMD Ryzen 7 3800X and Intel Arc A770 (driver 32.0.101.9175). The test log confirmed the A770 backend.
  • Rust 1.100.0 (0ef1bc386 2026-11-09), DXC 1.9.2609.5 (01b62ad47), unoptimized debug/test profiles with CARGO_INCREMENTAL=0, CARGO_PROFILE_DEV_DEBUG=0, and CARGO_PROFILE_TEST_DEBUG=0.
  • cargo test --workspace --no-run and cargo build --workspace succeeded. The workspace build supplied the end-to-end test title and DLL.
  • cargo test -p xcl --lib hle::d3d12x::bind::tests::a_draw_does_not_wait_for_a_graphics_pipeline_still_being_built -- --exact --show-output ran on the CPU. 1 passed, 0 failed, 0 ignored, with no skip messages. It completed in 1.51 seconds.
  • & 'L:/XclTooling/Invoke-ArcTest.ps1' -Test { cargo test --workspace -- --test-threads=4 --show-output } stopped after the library binary with exit 101. 893 passed, 18 failed, 23 ignored and 22 GPU skip messages.
  • & 'L:/XclTooling/Invoke-ArcTest.ps1' -Test { cargo test --workspace --no-fail-fast -- --test-threads=4 --show-output } completed all 19 test binaries plus doctests with exit 101. 941 passed, 19 failed, 43 ignored from Cargo. The 25 GPU skip messages below are excluded from coverage. Both the new draw test and the existing pending-pipeline ExecuteIndirect test passed in both workspace runs.
  • The 18 library failures reproduced on the rerun. The most common error was CreateComputePipelineState returning 0x80070057. The additional end-to-end failure was the RSSetDepthBiasX test-title check, which read a blue pixel where it expected green.
19 failing tests
gpu::dxil::ops_tests::doubles_match_cpu
gpu::dxil::ops_tests::groupshared_barrier_and_atomics_run
gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu
gpu::recomp::tests::gpu_clamp_and_omod_per_instruction
gpu::recomp::tests::gpu_f64_class_compare
gpu::recomp::tests::gpu_f64_literal_high_word
gpu::recomp::tests::gpu_f64_compares_with_nan
gpu::recomp::tests::gpu_f64_roots
gpu::recomp::tests::gpu_f64_rounding_and_conversions
gpu::recomp::tests::gpu_f64_math_random
gpu::recomp::tests::gpu_frexp_f64_exp_and_mant
gpu::recomp::tests::gpu_ldexp_f64
gpu::recomp::tests::gpu_float_compares_random
gpu::recomp::tests::gpu_nonfused_mad_and_mac_prevent_fma_contraction
gpu::recomp::tests::gpu_ps_image_sample_offset_implicit_lod_between_mips
gpu::recomp::tests::gpu_rndne_f64
gpu::recomp::tests::gpu_valu_16_and_64_bit
gpu::recomp::tests::gpu_wave64_ps_whole_wave_reductions
test_title_runs_and_game_folder_is_untouched
25 SKIPPED messages from the full workspace run
SKIPPED gpu::recomp::lower::tests::a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower::tests::cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower::tests::coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower::tests::the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::a_per_lane_2d_or_3d_group_runs_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))
SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 arithmetic, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))
SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 compares, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer arithmetic, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 rounding, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer carries, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 transcendentals, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 three-source, wave64: no wave64
SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64
SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64
SKIPPED shaders::tests::pso_measurement_compiles_an_exact_synthetic_record: cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)
SKIPPED placed_title_textures_share_vram_and_preserve_pixels: tiled tier < 2
SKIPPED test_title_draws_with_a_root_signature_under_the_debug_layer: no d3d12SDKLayers.dll
SKIPPED heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows
SKIPPED uploads_start_from_each_subresources_state: no D3D12 debug layer (The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D))

Not tested

  • Baseline execution on origin/main, tests on the merged tree, and retail-title smoke or world-load timing. The run does not establish whether the observed failures reproduce on main.
  • AMD or NVIDIA GPUs, non-Windows hosts, and retail samples gated by unset XCL_SAMPLE_* variables.

AI use

  • T3 Code / Codex (gpt-6.2-sol) fetched and verified the commits, ran the builds and tests, parsed the logs, and prepared this empirical report.
**@⁠JJAutoCompare** on GitHub · 2026-11-25 01:29 UTC · [original](https://github.com/xcl-dev/xcl/pull/1798#issuecomment-7149598317) Empirical verification on the Intel Arc A770 for the draw path with pending graphics pipelines. - PR head tested from a clean checkout `55e7beb6de9fcc8817d40d0a663857e3553c3632` - Fetched `origin/main` `8f5fca5bb9ad6e695093d75294ad2cec023bba60`. `git merge-tree --write-tree origin/main HEAD` completed with exit 0 and no conflicts. **Tested** - Windows 11 Enterprise Evaluation x64 build `26200.9974` on an AMD Ryzen 7 3800X and Intel Arc A770 (driver `32.0.101.9175`). The test log confirmed the A770 backend. - Rust `1.100.0 (0ef1bc386 2026-11-09)`, DXC `1.9.2609.5 (01b62ad47)`, unoptimized debug/test profiles with `CARGO_INCREMENTAL=0`, `CARGO_PROFILE_DEV_DEBUG=0`, and `CARGO_PROFILE_TEST_DEBUG=0`. - `cargo test --workspace --no-run` and `cargo build --workspace` succeeded. The workspace build supplied the end-to-end test title and DLL. - `cargo test -p xcl --lib hle::d3d12x::bind::tests::a_draw_does_not_wait_for_a_graphics_pipeline_still_being_built -- --exact --show-output` ran on the CPU. **1 passed, 0 failed, 0 ignored**, with no skip messages. It completed in 1.51 seconds. - `& 'L:/XclTooling/Invoke-ArcTest.ps1' -Test { cargo test --workspace -- --test-threads=4 --show-output }` stopped after the library binary with exit 101. **893 passed, 18 failed, 23 ignored** and 22 GPU skip messages. - `& 'L:/XclTooling/Invoke-ArcTest.ps1' -Test { cargo test --workspace --no-fail-fast -- --test-threads=4 --show-output }` completed all 19 test binaries plus doctests with exit 101. **941 passed, 19 failed, 43 ignored** from Cargo. The 25 GPU skip messages below are excluded from coverage. Both the new draw test and the existing pending-pipeline `ExecuteIndirect` test passed in both workspace runs. - The 18 library failures reproduced on the rerun. The most common error was `CreateComputePipelineState` returning `0x80070057`. The additional end-to-end failure was the `RSSetDepthBiasX` test-title check, which read a blue pixel where it expected green. <details> <summary>19 failing tests</summary> ```text gpu::dxil::ops_tests::doubles_match_cpu gpu::dxil::ops_tests::groupshared_barrier_and_atomics_run gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu gpu::recomp::tests::gpu_clamp_and_omod_per_instruction gpu::recomp::tests::gpu_f64_class_compare gpu::recomp::tests::gpu_f64_literal_high_word gpu::recomp::tests::gpu_f64_compares_with_nan gpu::recomp::tests::gpu_f64_roots gpu::recomp::tests::gpu_f64_rounding_and_conversions gpu::recomp::tests::gpu_f64_math_random gpu::recomp::tests::gpu_frexp_f64_exp_and_mant gpu::recomp::tests::gpu_ldexp_f64 gpu::recomp::tests::gpu_float_compares_random gpu::recomp::tests::gpu_nonfused_mad_and_mac_prevent_fma_contraction gpu::recomp::tests::gpu_ps_image_sample_offset_implicit_lod_between_mips gpu::recomp::tests::gpu_rndne_f64 gpu::recomp::tests::gpu_valu_16_and_64_bit gpu::recomp::tests::gpu_wave64_ps_whole_wave_reductions test_title_runs_and_game_folder_is_untouched ``` </details> <details> <summary>25 SKIPPED messages from the full workspace run</summary> ```text SKIPPED gpu::recomp::lower::tests::a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower::tests::cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower::tests::coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower::tests::the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::a_per_lane_2d_or_3d_group_runs_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's)) SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 arithmetic, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's)) SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 compares, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer arithmetic, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's)) SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 rounding, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer carries, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 transcendentals, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 three-source, wave64: no wave64 SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64 SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64 SKIPPED shaders::tests::pso_measurement_compiles_an_exact_synthetic_record: cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D) SKIPPED placed_title_textures_share_vram_and_preserve_pixels: tiled tier < 2 SKIPPED test_title_draws_with_a_root_signature_under_the_debug_layer: no d3d12SDKLayers.dll SKIPPED heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows SKIPPED uploads_start_from_each_subresources_state: no D3D12 debug layer (The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)) ``` </details> **Not tested** - Baseline execution on `origin/main`, tests on the merged tree, and retail-title smoke or world-load timing. The run does not establish whether the observed failures reproduce on `main`. - AMD or NVIDIA GPUs, non-Windows hosts, and retail samples gated by unset `XCL_SAMPLE_*` variables. **AI use** - T3 Code / Codex (`gpt-6.2-sol`) fetched and verified the commits, ran the builds and tests, parsed the logs, and prepared this empirical report.
Author
Owner

@⁠zohaiblazuli on GitHub · 2026-11-25 09:25 UTC · original

A second RTX 3060 12 GB data point, adding to @⁠Anon64's: the wait on my card was in ExecuteIndirect, and with this change the title got into its world before the device was removed.

Setup: RTX 3060 12 GB (617.42), i5-14600K, 32 GB RAM, Windows 11 26300, release, retail title in the Series S profile (device_type = "lockhart"), A pressed every 10 s, XCL_NETWORK=0. Not main: an older local tree (main 4178e88 + #615, #929, #1323, #688, the #1315/#1316/#1448 stack and an XMemMapPhysicalPagesScatter unmap fix like #495), with this PR's 55e7beb cherry-picked on top. Its compute pipelines were built ahead from earlier runs (driver blobs on disk), so no compute build was waited for in either run.

  • Without this change: presents stop at ~500 s, at the start of the world. A stack sample of every thread showed one title thread in bind::execute_indirect → pso_async::resolve_wait, while the PSO workers were inside nvgpucomp64.dll building graphics pipelines (driver compile start … graphics PSO). The title threads were idle.
  • With it (bind.rs tests a_draw_does_not_wait_for_a_graphics_pipeline_still_being_built and execute_indirect_with_a_pipeline_still_building_is_skipped pass): no stall. The title got into its world at ~514 s (2,312 draws in a 2 s window). About 3 s later the device was removed: 0x887a0005, then the title's int3 at +0x2474606. The System event log had no TDR or nvlddmkm event for it. Local video memory was 12.9 GB on the 12 GB card at that point, and the log had "Write64 Signal … would close a GPU cycle – signalled on CPU" warnings just before it.

So the stall this PR removes was the one blocking world entry here. What removes the device afterwards is not settled by this run.

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

**@⁠zohaiblazuli** on GitHub · 2026-11-25 09:25 UTC · [original](https://github.com/xcl-dev/xcl/pull/1798#issuecomment-7158303829) A second RTX 3060 12 GB data point, adding to @⁠Anon64's: the wait on my card was in `ExecuteIndirect`, and with this change the title got into its world before the device was removed. **Setup:** RTX 3060 12 GB (617.42), i5-14600K, 32 GB RAM, Windows 11 26300, release, retail title in the Series S profile (`device_type = "lockhart"`), A pressed every 10 s, `XCL_NETWORK=0`. Not `main`: an older local tree (`main` `4178e88` + #615, #929, #1323, #688, the #1315/#1316/#1448 stack and an `XMemMapPhysicalPagesScatter` unmap fix like #495), with this PR's `55e7beb` cherry-picked on top. Its compute pipelines were built ahead from earlier runs (driver blobs on disk), so no compute build was waited for in either run. - **Without this change:** presents stop at ~500 s, at the start of the world. A stack sample of every thread showed one title thread in `bind::execute_indirect` → `pso_async::resolve_wait`, while the PSO workers were inside `nvgpucomp64.dll` building graphics pipelines (`driver compile start … graphics PSO`). The title threads were idle. - **With it** (`bind.rs` tests `a_draw_does_not_wait_for_a_graphics_pipeline_still_being_built` and `execute_indirect_with_a_pipeline_still_building_is_skipped` pass): no stall. The title got into its world at ~514 s (2,312 draws in a 2 s window). About 3 s later the device was removed: `0x887a0005`, then the title's `int3` at `+0x2474606`. The System event log had no TDR or `nvlddmkm` event for it. Local video memory was 12.9 GB on the 12 GB card at that point, and the log had "Write64 Signal … would close a GPU cycle – signalled on CPU" warnings just before it. So the stall this PR removes was the one blocking world entry here. What removes the device afterwards is not settled by this run. Written with Claude Code (Claude Opus 5.5) from runs on this machine.
Author
Owner

@⁠kanade333 on GitHub · 2026-11-25 14:40 UTC · original · edited 2026-11-25 15:09 UTC

RTX 5080 16 GB (Blackwell), driver 621.40, #2057's head + this PR: two 420 s runs, both kept presenting to the limit with no device removal and no stretch without frames. Without this PR the same tree had multi-minute stretches with no present in three of four runs.

Applied on #2057 at 4df1e6e (this PR's 55e7beb applies cleanly there). cargo test --release -p xcl --lib -- d3d12x::bind d3d12x::pso_async --test-threads=4: 13 passed, 0 failed.

Setup: NVIDIA GeForce RTX 5080 16 GB (driver 621.40), AMD Ryzen 9 9950X, 32 GB RAM (commit limit 97 GB), Windows 11 Pro 26200, release. Retail title of #505, 1.0.2.1, XCL_NETWORK=0, scripted A presses to 90 s. All 2,689 compute pipelines built ahead with this driver; graphics pipelines warm from earlier runs.

Every run: XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_COHERENT_MB=512 XCL_LOOK_SKIP=1 XCL_WATCH_HOT=0 XCL_DRED=1 XCL_RUN_SECONDS=420, one after the other.

run tree presents after 62 s 30 s windows with 0 presents end
33 4df1e6e 241 9 (90–360 s) 0x887a0006 at 379.3 s
36 4df1e6e 2,285 3 (240–330 s) ran to 420 s
34 4df1e6e + #2270 1,295 6 (240–420 s) ran to 420 s
35 4df1e6e + #2270 0 – 0x887a0006 at 55.6 s
39 4df1e6e + #1798 3,467 0 ran to 420 s
40 4df1e6e + #1798 4,451 0 ran to 420 s
  • In run 40 every 30 s window from 150 s on has 411–433 presents (about 14 per second); run 39 stays between 161 and 467 per 30 s window.
  • Draws left out while their pipeline was still being built: 470 of 1,873,957 (run 39) and 104 of 2,802,333 (run 40); 0 dispatches skipped. Graphics pipelines built by the driver during the runs: 201 and 218, 20 of each with no kept blob.
  • 0 GPU-wait time-outs in all six runs.
  • Peak local video memory 21.2 GB in both #1798 runs (over this card's 16 GB); process commit at the end 46.3 and 43.1 GB.
  • The world is still grey on this tree (the mesh pipelines #2057's description names), so this says nothing about the picture.

Two runs only, so the absence of a removal in 420 s could still be luck (run 36, without this PR, also had none). The stretches with no frames, though, are gone in both, and match what @⁠minimalhipster990 saw on the RTX 4090.

Not tested: more runs; this PR on main; AMD; whether the draws it lets through without their pipeline change what is on screen (the frames are grey either way here).

AI use: Claude Code (Claude Opus 5.5) built the trees, ran the title on this machine, read the logs and wrote this report.


Update 1: one 1,200 s run of the same tree and switches (XCL_FRAME_DUMP=120 added): no device removal and no minute without frames.

  • Presents per minute from the 3rd minute to the 20th: 712, then 810–876 every minute (about 14 per second).
  • Local video memory 21.1 GB at 2 min, 21.5 GB at 20 min; process commit 42–43 GB throughout. Neither kept growing.
  • 0 draws and 0 dispatches skipped by the end (the counters report "0 skipped" for this run), 0 GPU-wait time-outs.
  • The picture of the world is still a flat grey, as before.

AI use for this update: Claude Code (Claude Opus 5.5).

**@⁠kanade333** on GitHub · 2026-11-25 14:40 UTC · [original](https://github.com/xcl-dev/xcl/pull/1798#issuecomment-7165640851) · edited 2026-11-25 15:09 UTC **RTX 5080 16 GB (Blackwell), driver 621.40, #2057's head + this PR: two 420 s runs, both kept presenting to the limit with no device removal and no stretch without frames. Without this PR the same tree had multi-minute stretches with no present in three of four runs.** Applied on #2057 at `4df1e6e` (this PR's `55e7beb` applies cleanly there). `cargo test --release -p xcl --lib -- d3d12x::bind d3d12x::pso_async --test-threads=4`: 13 passed, 0 failed. **Setup:** NVIDIA GeForce RTX 5080 16 GB (driver 621.40), AMD Ryzen 9 9950X, 32 GB RAM (commit limit 97 GB), Windows 11 Pro 26200, release. Retail title of #505, 1.0.2.1, `XCL_NETWORK=0`, scripted A presses to 90 s. All 2,689 compute pipelines built ahead with this driver; graphics pipelines warm from earlier runs. Every run: `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_COHERENT_HEAPS=sparse:16 XCL_COHERENT_MB=512 XCL_LOOK_SKIP=1 XCL_WATCH_HOT=0 XCL_DRED=1 XCL_RUN_SECONDS=420`, one after the other. | run | tree | presents after 62 s | 30 s windows with 0 presents | end | |---|---|---|---|---| | 33 | `4df1e6e` | 241 | 9 (90–360 s) | `0x887a0006` at 379.3 s | | 36 | `4df1e6e` | 2,285 | 3 (240–330 s) | ran to 420 s | | 34 | `4df1e6e` + #2270 | 1,295 | 6 (240–420 s) | ran to 420 s | | 35 | `4df1e6e` + #2270 | 0 | – | `0x887a0006` at 55.6 s | | **39** | `4df1e6e` + **#1798** | **3,467** | **0** | ran to 420 s | | **40** | `4df1e6e` + **#1798** | **4,451** | **0** | ran to 420 s | - In run 40 every 30 s window from 150 s on has 411–433 presents (about 14 per second); run 39 stays between 161 and 467 per 30 s window. - Draws left out while their pipeline was still being built: 470 of 1,873,957 (run 39) and 104 of 2,802,333 (run 40); 0 dispatches skipped. Graphics pipelines built by the driver during the runs: 201 and 218, 20 of each with no kept blob. - 0 GPU-wait time-outs in all six runs. - Peak local video memory 21.2 GB in both #1798 runs (over this card's 16 GB); process commit at the end 46.3 and 43.1 GB. - The world is still grey on this tree (the mesh pipelines #2057's description names), so this says nothing about the picture. Two runs only, so the absence of a removal in 420 s could still be luck (run 36, without this PR, also had none). The stretches with no frames, though, are gone in both, and match what @⁠minimalhipster990 saw on the RTX 4090. **Not tested:** more runs; this PR on `main`; AMD; whether the draws it lets through without their pipeline change what is on screen (the frames are grey either way here). **AI use:** Claude Code (Claude Opus 5.5) built the trees, ran the title on this machine, read the logs and wrote this report. --- **Update 1: one 1,200 s run of the same tree and switches (`XCL_FRAME_DUMP=120` added):** no device removal and no minute without frames. - Presents per minute from the 3rd minute to the 20th: 712, then 810–876 every minute (about 14 per second). - Local video memory 21.1 GB at 2 min, 21.5 GB at 20 min; process commit 42–43 GB throughout. Neither kept growing. - 0 draws and 0 dispatches skipped by the end (the counters report "0 skipped" for this run), 0 GPU-wait time-outs. - The picture of the world is still a flat grey, as before. AI use for this update: Claude Code (Claude Opus 5.5).
Author
Owner

@⁠jennydeth on GitHub · 2026-11-25 23:02 UTC · original

RTX 3060 12 GB / 32 GB RAM, exact head 55e7beb against its base c4d37be (tested as the branch is; it conflicts with current main), retail title 1.0.2.1 into its story load: no regression, and the change shows in the log. Both 600 s runs end with no crash or device removal, 2190 / 2191 frames; with this PR the title drew with stand-ins instead of waiting (64 draws with PC pipelines by 244 s; 0 on the base at its last count). Neither reached the world within 600 s here. This adds a suite run and a regression pair on exact head, on default settings, to @⁠Anon64's and @⁠zohaiblazuli's 3060 reports above.

Tested

  • NVIDIA GeForce RTX 3060 12 GB, driver 32.0.16.2101 (32-lane waves only); Ryzen 5 5600X; 32 GB RAM; Windows 11 Pro 10.0.26300.9974; Rust 1.100.0 (stable-x86_64-pc-windows-msvc); release build; DXC 1.9.2609.5 (XCL_DXC_DIR)
  • cargo test --workspace --release --no-fail-fast -- --test-threads=4 on 55e7beb: 960 passed, 0 failed, 43 ignored (20 test targets incl. doc-tests), including a_draw_does_not_wait_for_a_graphics_pipeline_still_being_built. SKIPPED (23): 18 × no wave64; 3 × per-lane form refused (V_MUL_F16, V_PK_MUL_F16, V_CVT_F16_F32); 1 × no heap windows; 1 × pso_measurement_compiles_an_exact_synthetic_record (cannot disable the driver cache)
  • Retail title, scripts/smoke.ps1 -Game <folder> -Seconds 600 (main's copy of the script; neither commit's has -OutDir), XCL_NETWORK=0, scripted pad presses from the start screens into the story load (XCL_PRESS_AT), XCL_FRAME_DUMP=300, default settings otherwise. Head run first, then the base.

Regression run

main c4d37be:

xcl-smoke v1
commit: c4d37bec1bb4286eb373aea963404a23f13401fa
gpu: NVIDIA GeForce RTX 3060
title: 4a4b54dc
seconds: 600
exit: 0x0
frames shown: 2190 (PresentX 2190)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 76100 MB

This PR, 55e7beb:

xcl-smoke v1
commit: 55e7beb6de9fcc8817d40d0a663857e3553c3632
gpu: NVIDIA GeForce RTX 3060
title: 4a4b54dc
seconds: 600
exit: 0x0
frames shown: 2191 (PresentX 2191)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 38066 MB
  • The change at work (the console code so far lines): with this PR, 33 draws with PC (stand-in) pipelines by 78 s, 44 by 143 s and 64 by 244 s, with 138 draws skipped by then, and 4 × ExecuteIndirect with a pipeline that is still being built skipped at 143 s. The base's last such line (102 s) has 0 of each; the line prints only at powers of two from 64, so after that the base stayed under 64 of each.
  • Last 2 s window with a present: 102 s on the base, 112 s with this PR; the last dumped frames are the loading artwork in both. Both runs still have compute pipelines building at 600 s.
  • The base's 76 GB peak is not this PR's: its commit was 31–38 GB from 110 s to 518 s, then went 30.9 → 59.1 GB by 542 s and 76.0 GB by 596 s, with local video memory flat at 14.0 GB. I did not find what took it (one run, not repeated).

Not tested

  • How long draws waited: neither tree logs draw-time pipeline waits
  • The branch rebased onto current main; the world (not reached within 600 s here); AMD / wave64; Wine

AI use: Claude Code (Claude Opus 5.5) built both commits, ran the suite and the two runs on my machine, read the logs and wrote this.

**@⁠jennydeth** on GitHub · 2026-11-25 23:02 UTC · [original](https://github.com/xcl-dev/xcl/pull/1798#issuecomment-7177083927) **RTX 3060 12 GB / 32 GB RAM, exact head `55e7beb` against its base `c4d37be` (tested as the branch is; it conflicts with current `main`), retail title 1.0.2.1 into its story load: no regression, and the change shows in the log. Both 600 s runs end with no crash or device removal, 2190 / 2191 frames; with this PR the title drew with stand-ins instead of waiting (64 draws with PC pipelines by 244 s; 0 on the base at its last count). Neither reached the world within 600 s here.** This adds a suite run and a regression pair on exact head, on default settings, to @⁠Anon64's and @⁠zohaiblazuli's 3060 reports above. **Tested** - NVIDIA GeForce RTX 3060 12 GB, driver 32.0.16.2101 (32-lane waves only); Ryzen 5 5600X; 32 GB RAM; Windows 11 Pro 10.0.26300.9974; Rust 1.100.0 (`stable-x86_64-pc-windows-msvc`); release build; DXC 1.9.2609.5 (`XCL_DXC_DIR`) - `cargo test --workspace --release --no-fail-fast -- --test-threads=4` on `55e7beb`: **960 passed, 0 failed, 43 ignored** (20 test targets incl. doc-tests), including `a_draw_does_not_wait_for_a_graphics_pipeline_still_being_built`. SKIPPED (23): 18 × no wave64; 3 × per-lane form refused (`V_MUL_F16`, `V_PK_MUL_F16`, `V_CVT_F16_F32`); 1 × no heap windows; 1 × `pso_measurement_compiles_an_exact_synthetic_record` (cannot disable the driver cache) - Retail title, `scripts/smoke.ps1 -Game <folder> -Seconds 600` (main's copy of the script; neither commit's has `-OutDir`), `XCL_NETWORK=0`, scripted pad presses from the start screens into the story load (`XCL_PRESS_AT`), `XCL_FRAME_DUMP=300`, default settings otherwise. Head run first, then the base. **Regression run** `main` `c4d37be`: ``` xcl-smoke v1 commit: c4d37bec1bb4286eb373aea963404a23f13401fa gpu: NVIDIA GeForce RTX 3060 title: 4a4b54dc seconds: 600 exit: 0x0 frames shown: 2190 (PresentX 2190) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 76100 MB ``` This PR, `55e7beb`: ``` xcl-smoke v1 commit: 55e7beb6de9fcc8817d40d0a663857e3553c3632 gpu: NVIDIA GeForce RTX 3060 title: 4a4b54dc seconds: 600 exit: 0x0 frames shown: 2191 (PresentX 2191) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 38066 MB ``` - **The change at work** (the `console code so far` lines): with this PR, 33 draws with PC (stand-in) pipelines by 78 s, 44 by 143 s and 64 by 244 s, with 138 draws skipped by then, and 4 × `ExecuteIndirect with a pipeline that is still being built skipped` at 143 s. The base's last such line (102 s) has 0 of each; the line prints only at powers of two from 64, so after that the base stayed under 64 of each. - Last 2 s window with a present: 102 s on the base, 112 s with this PR; the last dumped frames are the loading artwork in both. Both runs still have compute pipelines building at 600 s. - The base's 76 GB peak is not this PR's: its commit was 31–38 GB from 110 s to 518 s, then went 30.9 → 59.1 GB by 542 s and 76.0 GB by 596 s, with local video memory flat at 14.0 GB. I did not find what took it (one run, not repeated). **Not tested** - How long draws waited: neither tree logs draw-time pipeline waits - The branch rebased onto current `main`; the world (not reached within 600 s here); AMD / wave64; Wine AI use: Claude Code (Claude Opus 5.5) built both commits, ran the suite and the two runs on my machine, read the logs and wrote this.
Author
Owner

@⁠KOLESNiii on GitHub · 2026-11-26 00:27 UTC · original

RTX 2070 SUPER 8 GB, Windows, fully cold (XCL caches empty, NVIDIA / D3D12 implicit shader caches off), #1798 rebased onto current main 08db802: the title's threads no longer build graphics pipelines (353 s → 66 s held in builds), and 43 % more compute pipelines are built in the 10 min after the world load. Frames do not come back within 10 min with or without it. One run each.

Setup

  • RTX 2070 SUPER 8 GB (Turing, wave32 only), driver 32.0.16.2140; Ryzen 5 3600XT (6 cores / 12 threads); 32 GB RAM; Windows 11 build 26300; rustc 1.100.0; DXC 1.9.2609.5; release.
  • Retail title of #505 (1.0.2.1). The game was started by hand with a controller at about the same point in every run; each run 780 s (XCL_RUN_SECONDS=780).
  • XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_TRACE=1, a fresh empty XCL_DXIL_CACHE per run (no DXIL, translated, driver-blob or used-pipelines cache), and the driver's implicit caches off with ID3D12Device9::ShaderCacheControl(IMPLICIT_DRIVER_MANAGED | IMPLICIT_D3D_CACHE_FOR_DRIVER, DISABLE) right after device creation (a local experiment-only patch, same in all trees; needs Developer Mode; the log confirms Ok(())).

Trees

  • A = main 08db802.
  • B = A + a local scheduler change of mine (a pipeline worker waiting for a turn among the big driver compiles gets a helper thread in its place; I am opening it as its own PR). B → C isolates #1798.
  • C = B + #1798 (55e7beb) applied onto 08db802. It conflicts with current main in two places in bind.rs; I kept main's code and only swapped the call: in execute_indirect the put-off of an unbuilt dispatching ExecuteIndirect (#2118) stays, and the later resolve_wait(raw_pso) becomes pso_for_draw(raw_pso); in graphics_bound main's two-pass mesh skip stays, with let real = pso_for_draw(pso). No other resolve_wait in bind.rs is on a graphics path.
  • cargo test -p xcl --lib -- a_draw_does_not_wait pso_async big_compile on C: 28 passed, 0 failed, 0 ignored (incl. a_draw_does_not_wait_for_a_graphics_pipeline_still_being_built). The whole suite was not run on C.

Results – the 10 min after the world load (the start of the first stretch of 20 s or more without a present after the game was started: A 110 s, B 110 s, C 96 s), from xcl.log:

A main B C (B + #1798)
driver builds, all 372 398 372
… graphics 115 115 4
… compute 257 283 368
builds on the title's threads (those that log put-off dispatches) 141 143 33
time in those builds, whole run 353.0 s 319.0 s 66.4 s
pipelines the title used, whole run (used-pipelines.txt) 856 877 1 092
presents 0 0 0
longest stretch without a present 668 s 668 s 682 s
peak commit 31.0 GB 31.2 GB 32.6 GB
exit / device removal / crash 0 / none / none 0 / none / none 0 / none / none
  • Without #1798, the graphics builds per minute match the builds on one title thread almost one to one: the draw's resolve_wait takes the not-yet-started lazy job and builds it there, whether or not a worker is free. With #1798 that goes away. That only 4 graphics builds finish is, I think, because they are queued behind the compute builds while the draws use stand-ins (not measured: the log does not say what is queued).
  • The freed time goes into compute; what still holds the frames here is compute pipelines the title waits for (dispatches put off to the submit). In C's 10 min, the compute builds of 256 KB of DXIL or more were 27 of 369 (7 %) but 533 s of their 1 001 s driver time (53 %); in A 19 of 258, 438 of 846 s.
  • Peak commit is 1.4 GB higher with #1798 (within 125 % of main), on a 32 GB machine that is close to its limit in all three runs.

Not tested: more than one run per tree; AMD; warm caches or after an offline precompile; #1798 without B on top of 08db802; the whole suite on C.

AI use: Claude Code with Claude Opus 5.5 ran the builds and the runs (through a local exclusive-run queue), resolved the conflict, measured from the logs and wrote this report; I started the game in each run.

**@⁠KOLESNiii** on GitHub · 2026-11-26 00:27 UTC · [original](https://github.com/xcl-dev/xcl/pull/1798#issuecomment-7178778256) **RTX 2070 SUPER 8 GB, Windows, fully cold (XCL caches empty, NVIDIA / D3D12 implicit shader caches off), #1798 rebased onto current `main` `08db802`: the title's threads no longer build graphics pipelines (353 s → 66 s held in builds), and 43 % more compute pipelines are built in the 10 min after the world load. Frames do not come back within 10 min with or without it.** One run each. **Setup** - RTX 2070 SUPER 8 GB (Turing, wave32 only), driver 32.0.16.2140; Ryzen 5 3600XT (6 cores / 12 threads); 32 GB RAM; Windows 11 build 26300; rustc 1.100.0; DXC 1.9.2609.5; release. - Retail title of #505 (1.0.2.1). The game was started by hand with a controller at about the same point in every run; each run 780 s (`XCL_RUN_SECONDS=780`). - `XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_TRACE=1`, a fresh empty `XCL_DXIL_CACHE` per run (no DXIL, translated, driver-blob or used-pipelines cache), and the driver's implicit caches off with `ID3D12Device9::ShaderCacheControl(IMPLICIT_DRIVER_MANAGED | IMPLICIT_D3D_CACHE_FOR_DRIVER, DISABLE)` right after device creation (a local experiment-only patch, same in all trees; needs Developer Mode; the log confirms `Ok(())`). **Trees** - **A** = `main` `08db802`. - **B** = A + a local scheduler change of mine (a pipeline worker waiting for a turn among the big driver compiles gets a helper thread in its place; I am opening it as its own PR). B → C isolates #1798. - **C** = B + #1798 (`55e7beb`) applied onto `08db802`. It conflicts with current `main` in two places in `bind.rs`; I kept `main`'s code and only swapped the call: in `execute_indirect` the put-off of an unbuilt dispatching `ExecuteIndirect` (#2118) stays, and the later `resolve_wait(raw_pso)` becomes `pso_for_draw(raw_pso)`; in `graphics_bound` `main`'s two-pass mesh skip stays, with `let real = pso_for_draw(pso)`. No other `resolve_wait` in `bind.rs` is on a graphics path. - `cargo test -p xcl --lib -- a_draw_does_not_wait pso_async big_compile` on C: 28 passed, 0 failed, 0 ignored (incl. `a_draw_does_not_wait_for_a_graphics_pipeline_still_being_built`). The whole suite was not run on C. **Results** – the 10 min after the world load (the start of the first stretch of 20 s or more without a present after the game was started: A 110 s, B 110 s, C 96 s), from `xcl.log`: | | A `main` | B | C (B + #1798) | |---|---|---|---| | driver builds, all | 372 | 398 | 372 | | … graphics | 115 | 115 | **4** | | … compute | 257 | 283 | **368** | | builds on the title's threads (those that log put-off dispatches) | 141 | 143 | **33** | | time in those builds, whole run | 353.0 s | 319.0 s | **66.4 s** | | pipelines the title used, whole run (`used-pipelines.txt`) | 856 | 877 | **1 092** | | presents | 0 | 0 | 0 | | longest stretch without a present | 668 s | 668 s | 682 s | | peak commit | 31.0 GB | 31.2 GB | 32.6 GB | | exit / device removal / crash | 0 / none / none | 0 / none / none | 0 / none / none | - Without #1798, the graphics builds per minute match the builds on one title thread almost one to one: the draw's `resolve_wait` takes the not-yet-started lazy job and builds it there, whether or not a worker is free. With #1798 that goes away. That only 4 graphics builds finish is, I think, because they are queued behind the compute builds while the draws use stand-ins (not measured: the log does not say what is queued). - The freed time goes into compute; what still holds the frames here is compute pipelines the title waits for (dispatches put off to the submit). In C's 10 min, the compute builds of 256 KB of DXIL or more were 27 of 369 (7 %) but 533 s of their 1 001 s driver time (53 %); in A 19 of 258, 438 of 846 s. - Peak commit is 1.4 GB higher with #1798 (within 125 % of `main`), on a 32 GB machine that is close to its limit in all three runs. **Not tested:** more than one run per tree; AMD; warm caches or after an offline precompile; #1798 without B on top of `08db802`; the whole suite on C. **AI use:** Claude Code with Claude Opus 5.5 ran the builds and the runs (through a local exclusive-run queue), resolved the conflict, measured from the logs and wrote this report; I started the game in each run.
Author
Owner

@⁠afpruivo on GitHub · 2026-11-26 01:44 UTC · original

RTX 3090 (driver 621.40), compute and graphics caches warm, the same cache state for both runs: #1798 works as described, but it does not move the stall here. Both trees stop presenting about 2 s into the world, because the next wait is cold compute builds on the title's threads, not graphics. One run each.

This is the case the earlier reports did not cover: @⁠KOLESNiii's 2070 SUPER run was fully cold, so compute builds were in the way too.

Setup

  • RTX 3090 24 GB, NVIDIA 621.40, i5-13600K, Windows 11 26300, release.
  • Retail 1.0.2.1. XCL_DIRECT_DXIL=1 XCL_DRED=1 XCL_NETWORK=0 XCL_ACTIVITY=1, A pressed every 4 s from 20 s, 480 s, no driver profile for the exe.
  • main 08db802 against #1798 (55e7beb) rebased onto the same 08db802. One conflict in bind.rs: main had since added the compute deferral and the two-pass mesh check to the same functions. I kept both and used pso_for_draw where the PR does. d3d12x::bind + d3d12x::pso_async tests: 23 passed.
  • Caches: xcl shaders … --precompile --only cs --pipelines --used-only (2,453 compute pipelines, 0 refused), then three earlier world runs that left the graphics blobs. After each A/B run, the cache files it added were moved aside and the journals restored, so both started from the same XCL cache. NVIDIA's own shader cache was not reset.

Result

main #1798
world start (first #101) 87.2 s 87.5 s
presents after it 20, then 0 to the end 27, then 0 to the end
draws with PC pipelines 0 8
graphics driver compiles after the world start 0 (174 from blobs before it, 2 cold) the same
frames, removals, crashes 2,189 / 0 / 0 2,138 / 0 / 0

What the title waits on instead (both runs): after the world starts, compute PSOs of 0.8–1.2 MB DXIL are built cold on title threads (huge, ungated here), one after another, 11–17 s each: 30 with driver blob absent, about 387 s in the driver over the rest of the run. Their records are not in the --used-only list, because earlier runs never got this far. I have not yet confirmed that they are the whole forms of split programs (#2404 / #2519); that is my next check, with #2551.

So with this cache state, #1798's change is visible (draws on PC pipelines instead of waits) but not what holds the frames.

Not tested: more than one run per tree; a cold cache; a tree with #2404 / #2519 / #2551; other cards.

AI use: Claude Code (Claude Opus 5.5) rebased the PR, ran both runs on my PC, read the logs and drafted this.

**@⁠afpruivo** on GitHub · 2026-11-26 01:44 UTC · [original](https://github.com/xcl-dev/xcl/pull/1798#issuecomment-7180082059) **RTX 3090 (driver 621.40), compute and graphics caches warm, the same cache state for both runs: #1798 works as described, but it does not move the stall here. Both trees stop presenting about 2 s into the world, because the next wait is cold compute builds on the title's threads, not graphics.** One run each. This is the case the earlier reports did not cover: @⁠KOLESNiii's 2070 SUPER run was fully cold, so compute builds were in the way too. **Setup** - RTX 3090 24 GB, NVIDIA 621.40, i5-13600K, Windows 11 26300, release. - Retail 1.0.2.1. `XCL_DIRECT_DXIL=1 XCL_DRED=1 XCL_NETWORK=0 XCL_ACTIVITY=1`, A pressed every 4 s from 20 s, 480 s, no driver profile for the exe. - `main` `08db802` against #1798 (`55e7beb`) rebased onto the same `08db802`. One conflict in `bind.rs`: `main` had since added the compute deferral and the two-pass mesh check to the same functions. I kept both and used `pso_for_draw` where the PR does. `d3d12x::bind` + `d3d12x::pso_async` tests: 23 passed. - Caches: `xcl shaders … --precompile --only cs --pipelines --used-only` (2,453 compute pipelines, 0 refused), then three earlier world runs that left the graphics blobs. After each A/B run, the cache files it added were moved aside and the journals restored, so both started from the same XCL cache. NVIDIA's own shader cache was not reset. **Result** | | `main` | #1798 | |---|---:|---:| | world start (first `#101`) | 87.2 s | 87.5 s | | presents after it | 20, then 0 to the end | 27, then 0 to the end | | draws with PC pipelines | 0 | 8 | | graphics driver compiles after the world start | 0 (174 from blobs before it, 2 cold) | the same | | frames, removals, crashes | 2,189 / 0 / 0 | 2,138 / 0 / 0 | **What the title waits on instead (both runs):** after the world starts, compute PSOs of 0.8–1.2 MB DXIL are built cold on title threads (`huge, ungated here`), one after another, 11–17 s each: 30 with `driver blob absent`, about 387 s in the driver over the rest of the run. Their records are not in the `--used-only` list, because earlier runs never got this far. I have not yet confirmed that they are the whole forms of split programs (#2404 / #2519); that is my next check, with #2551. So with this cache state, #1798's change is visible (draws on PC pipelines instead of waits) but not what holds the frames. **Not tested:** more than one run per tree; a cold cache; a tree with #2404 / #2519 / #2551; other cards. AI use: Claude Code (Claude Opus 5.5) rebased the PR, ran both runs on my PC, read the logs and drafted this.
This pull request has changes conflicting with the target branch.
  • crates/xcl/src/hle/d3d12x/bind.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/1798/head:github-bot/gh-1798'
git switch 'github-bot/gh-1798'

Merge

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