D3D12.X: a build a submit waits for is wanted from the moment its call is put off #2569

Closed
Royalflamejlh wants to merge 1 commit from upstream-pr/2579 into main
Royalflamejlh commented 2026-11-25 23:52:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Royalflamejlh on 2026-11-25T23:52:31Z.


A pipeline that a put-off call needs (#2118) is wanted from the moment the call is put off, not from the moment the submit reaches it. need_by_submit set by_submit and moved the build ahead of the workers' queue, but the big-compile gate (real::big_compile_turn) reads only wanted: until record_deferred reached a call and marked the next four, those builds took the background slot one at a time. Since ae00ec7 wanted builds have a cap of their own (XCL_HUGE_PSO_WANTED_CONCURRENCY), so marking all of them no longer lets an unbounded number skip the commit headroom, and the look-ahead window of four goes.

What is in it

  • pso_async.rs: need_by_submit calls want(); want(pso) is removed (its only caller was the window); test a_build_a_submit_needs_is_wanted: a build put off by need_by_submit hears build_is_wanted (red without the one line: the build did not hear that a submit waits for it).
  • list_x.rs: record_deferred no longer marks the next four (WANTED_AT_ONCE removed).
  • bind.rs: want_bound removed.

Tested

  • Linux through Wine: NVIDIA GeForce RTX 4060 Ti 16 GB (driver 615.71.09), Ryzen 9 9950X3D, 62 GB RAM, Wine 11.21 Staging, vkd3d-proton v3.1-90-g30b0eb9b with the relaxed-vtable patch from #175, rustc 1.98.0, release, x86_64-pc-windows-gnu.
  • cargo test --workspace --release --target x86_64-pc-windows-gnu --no-fail-fast -- --test-threads=4: lib 1300 passed, 3 failed, 27 ignored on this head against 1299, 3, 27 on main 08db802; the other binaries 122 passed, 3 failed, 20 ignored on both. The same six fail on both (directed_reference_basics, f64_programs_on_the_gpu, gpu_promoted_uav_clear_values_pass_create_committed_resource, disk_free_space_ex_reports_pls_quota, set_predication_buffer_state_and_kickoff, test_title_runs_and_game_folder_is_untouched). Two lib tests are skipped as they hang under Wine (#1706).
  • Native Windows, NVIDIA GeForce RTX 2070 SUPER 8 GB, Windows 11: cargo test --workspace -- pso_async:: list_x:: title_list:: bind:: alloc_pool:: dispatch_chain --test-threads=4 in debug, 80 passed, 0 failed; scripts/smoke.ps1: 745 frames against 770 on main 08db802, both exit 0x0, 0 device removals, 0 crashes.
  • The retail title, 300 s, 1 run per cell, A pressed when the title takes it, XCL_DIRECT_DXIL=1 XCL_HUGE_PSO_WANTED_CONCURRENCY=6 XCL_PSO_DISK_CACHE=0 XCL_DXC_THREADS=4, no XCL_PSO_WAIT_MS. The tree is a local merge of main e0d93c8 with #684, #751, #2082, #1860, #1599, #1798, #2404 and #2333 (so the split ExecuteIndirects are chained, not built on the title's thread), with and without this change. Each run starts from its own copy of one NVIDIA shader-cache folder (filled by one earlier run). Time the compute builds spent waiting at the big-compile gate after the first #101, summed from the driver compile finish lines:
pair without with this
1 1,079 s over 48 builds 161 s over 67 builds
2 1,064 s over 46 builds 342 s over 64 builds
3 stopped at 125 s with 3 GB of memory available; not counted 219 s over 66 builds
  • No run drew a frame after its world-start burst within 300 s: the cold builds last longer than that on this card in all of them. No error line, no queue.Wait timeout, no device removal in any.
  • The least available system memory: 12, 7 and 8 GB with the change, 13 and 13 GB without (and the third run without, above). More builds run at once with it, each without the commit headroom, as a wanted build had before.

Regression run
Under Wine on Linux (RTX 4060 Ti; scripts/smoke.ps1 unchanged, run by PowerShell 7 with xcl.exe started through Wine: "peak commit" reads 0 MB there, exit: 0x89 is the wrapper ending Wine after XCL's own process ends, and RTX 4060 Ti 8GB is the name vkd3d-proton gives this 16 GB card).

main:

xcl-smoke v1
commit: 08db8020d323bf478964fcc586152cce54959cfc
gpu: NVIDIA GeForce RTX 4060 Ti 8GB
title: 1253b9d5
seconds: 60
exit: 0x89
frames shown: 1328 (PresentX 1328)
presents per 2 s (last 3): 60 59 60
device removals: 0
crashes: 0
peak commit: 0 MB

PR:

xcl-smoke v1
commit: 93445592be144d697a0ba2323112a028502e8213
gpu: NVIDIA GeForce RTX 4060 Ti 8GB
title: 1253b9d5
seconds: 60
exit: 0x89
frames shown: 1578 (PresentX 1578)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 0 MB

Not tested

  • A run in which this change lets the first world frame out sooner: in our runs the first frame needs more than 300 s of builds either way.
  • AMD, Intel; the 16 GB Windows card; the whole suite on Windows.
  • XCL_HUGE_PSO_WANTED_CONCURRENCY at its default (2): the runs used 6.
  • nvidia-dev: this does not apply there, as nvidia-dev (c044dc6d) does not have #2118, which this follows.

AI use

  • Claude Code (Claude Opus 5.5) wrote the change, the test and this description, and made the runs. Another Claude Code session (Bench E) found the cause in the gate waits.
<!-- greyfinch-sync:ivall/xcl:issue:5501247589 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2579). Originally posted by [Royalflamejlh](https://github.com/Royalflamejlh) on 2026-11-25T23:52:31Z. --- A pipeline that a put-off call needs (#2118) is wanted from the moment the call is put off, not from the moment the submit reaches it. `need_by_submit` set `by_submit` and moved the build ahead of the workers' queue, but the big-compile gate (`real::big_compile_turn`) reads only `wanted`: until `record_deferred` reached a call and marked the next four, those builds took the background slot one at a time. Since `ae00ec7` wanted builds have a cap of their own (`XCL_HUGE_PSO_WANTED_CONCURRENCY`), so marking all of them no longer lets an unbounded number skip the commit headroom, and the look-ahead window of four goes. **What is in it** - `pso_async.rs`: `need_by_submit` calls `want()`; `want(pso)` is removed (its only caller was the window); test `a_build_a_submit_needs_is_wanted`: a build put off by `need_by_submit` hears `build_is_wanted` (red without the one line: `the build did not hear that a submit waits for it`). - `list_x.rs`: `record_deferred` no longer marks the next four (`WANTED_AT_ONCE` removed). - `bind.rs`: `want_bound` removed. **Tested** - Linux through Wine: NVIDIA GeForce RTX 4060 Ti 16 GB (driver 615.71.09), Ryzen 9 9950X3D, 62 GB RAM, Wine 11.21 Staging, vkd3d-proton v3.1-90-g30b0eb9b with the relaxed-vtable patch from #175, rustc 1.98.0, release, `x86_64-pc-windows-gnu`. - `cargo test --workspace --release --target x86_64-pc-windows-gnu --no-fail-fast -- --test-threads=4`: lib 1300 passed, 3 failed, 27 ignored on this head against 1299, 3, 27 on `main` `08db802`; the other binaries 122 passed, 3 failed, 20 ignored on both. The same six fail on both (`directed_reference_basics`, `f64_programs_on_the_gpu`, `gpu_promoted_uav_clear_values_pass_create_committed_resource`, `disk_free_space_ex_reports_pls_quota`, `set_predication_buffer_state_and_kickoff`, `test_title_runs_and_game_folder_is_untouched`). Two lib tests are skipped as they hang under Wine (#1706). - Native Windows, NVIDIA GeForce RTX 2070 SUPER 8 GB, Windows 11: `cargo test --workspace -- pso_async:: list_x:: title_list:: bind:: alloc_pool:: dispatch_chain --test-threads=4` in debug, 80 passed, 0 failed; `scripts/smoke.ps1`: 745 frames against 770 on `main` `08db802`, both exit 0x0, 0 device removals, 0 crashes. - The retail title, 300 s, 1 run per cell, A pressed when the title takes it, `XCL_DIRECT_DXIL=1 XCL_HUGE_PSO_WANTED_CONCURRENCY=6 XCL_PSO_DISK_CACHE=0 XCL_DXC_THREADS=4`, no `XCL_PSO_WAIT_MS`. The tree is a local merge of `main` `e0d93c8` with #684, #751, #2082, #1860, #1599, #1798, #2404 and #2333 (so the split `ExecuteIndirect`s are chained, not built on the title's thread), with and without this change. Each run starts from its own copy of one NVIDIA shader-cache folder (filled by one earlier run). Time the compute builds spent waiting at the big-compile gate after the first `#101`, summed from the `driver compile finish` lines: | pair | without | with this | |---|---|---| | 1 | 1,079 s over 48 builds | 161 s over 67 builds | | 2 | 1,064 s over 46 builds | 342 s over 64 builds | | 3 | stopped at 125 s with 3 GB of memory available; not counted | 219 s over 66 builds | - No run drew a frame after its world-start burst within 300 s: the cold builds last longer than that on this card in all of them. No error line, no `queue.Wait` timeout, no device removal in any. - The least available system memory: 12, 7 and 8 GB with the change, 13 and 13 GB without (and the third run without, above). More builds run at once with it, each without the commit headroom, as a wanted build had before. **Regression run** Under Wine on Linux (RTX 4060 Ti; `scripts/smoke.ps1` unchanged, run by PowerShell 7 with `xcl.exe` started through Wine: "peak commit" reads 0 MB there, `exit: 0x89` is the wrapper ending Wine after XCL's own `process ends`, and `RTX 4060 Ti 8GB` is the name vkd3d-proton gives this 16 GB card). main: ``` xcl-smoke v1 commit: 08db8020d323bf478964fcc586152cce54959cfc gpu: NVIDIA GeForce RTX 4060 Ti 8GB title: 1253b9d5 seconds: 60 exit: 0x89 frames shown: 1328 (PresentX 1328) presents per 2 s (last 3): 60 59 60 device removals: 0 crashes: 0 peak commit: 0 MB ``` PR: ``` xcl-smoke v1 commit: 93445592be144d697a0ba2323112a028502e8213 gpu: NVIDIA GeForce RTX 4060 Ti 8GB title: 1253b9d5 seconds: 60 exit: 0x89 frames shown: 1578 (PresentX 1578) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 0 MB ``` **Not tested** - A run in which this change lets the first world frame out sooner: in our runs the first frame needs more than 300 s of builds either way. - AMD, Intel; the 16 GB Windows card; the whole suite on Windows. - `XCL_HUGE_PSO_WANTED_CONCURRENCY` at its default (2): the runs used 6. - `nvidia-dev`: this does not apply there, as `nvidia-dev` (`c044dc6d`) does not have #2118, which this follows. **AI use** - Claude Code (Claude Opus 5.5) wrote the change, the test and this description, and made the runs. Another Claude Code session (Bench E) found the cause in the gate waits.
DavidM1911 commented 2026-11-26 01:05:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T00:08:08Z.


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

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

Thanks!

— Devin

<!-- greyfinch-sync:ivall/xcl:comment:7178431897 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2579#issuecomment-7178431897). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T00:08:08Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 26 ignored. Thanks! — Devin
oni-swr commented 2026-11-26 03:06:34 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by oni-swr on 2026-11-26T02:36:56Z.


Test report for 93445592be144d697a0ba2323112a028502e8213, with its exact parent 08db8020d323bf478964fcc586152cce54959cfc as the control. Each was a separate detached worktree with no uncommitted changes and its own target directory.

Tested

  • AMD Radeon RX 7800 XT (driver 32.0.31035.1003), Ryzen 7 5700X3D, 64 GB, Windows 11 build 26200, rustc / cargo 1.100.0, debug. XCL_ADAPTER=radeon and XCL_REQUIRE_GPU=wave64,mesh were set.
  • cargo build --workspace -j 4: exit 0 on both.
  • cargo test --workspace -j 4 --no-fail-fast -- --test-threads=4:
    • head: 1428 passed, 2 failed, 47 ignored (lib 1304 / 1 / 27)
    • parent: 1427 passed, 2 failed, 47 ignored (lib 1303 / 1 / 27)
    • The +1 is the new test. Every other binary has the same counts on both.
  • The same two tests fail on both, with the same messages:
    • gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: seed 722: res[30] = 0x1, CPU 0x7fffffff, on 3 of 3 reruns on each commit (#2115).
    • heap_window_out_of_memory_falls_back_to_the_switch_form (gpu_compute_e2e): no heap windows, but XCL_REQUIRE_GPU=wave64,mesh (#1651). Without XCL_REQUIRE_GPU, it prints SKIPPED …: no heap windows and gpu_compute_e2e is 6 passed, 0 failed on both.
  • SKIPPED: 6 lines, the same on both. They are the f16_programs_on_the_gpu / f32_programs_on_the_gpu per-lane forms refused for V_MUL_F16, V_PK_MUL_F16 and V_CVT_F16_F32 (#1426 semantics), in wave32 and wave64.
  • Focused run, cargo test -j 4 -p xcl --lib -- pso_async:: list_x:: bind:: --test-threads=4: head 63 passed, parent 62 passed, 0 failed on both.
  • a_build_a_submit_needs_is_wanted on head: passed in 5 of 5 separate runs.
  • The parent with only that test added (the test hunk of pso_async.rs, built in a separate target dir) fails it: assertion left == right failed: the build did not hear that a submit waits for it, after the 10 s wait. So the test is red without the one-line change on this adapter.

Not tested

  • scripts/smoke.ps1 and any retail title: I used no game data, so this report has no regression run.
  • Release builds, the default XCL_HUGE_PSO_WANTED_CONCURRENCY, and timing of the big-compile gate.

AI use

  • Claude Code (Claude Opus 5.5) made the runs and wrote this report; Codex (gpt-6.2-sol) coordinated the run.
<!-- greyfinch-sync:ivall/xcl:comment:7180964978 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2579#issuecomment-7180964978). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-26T02:36:56Z. --- Test report for `93445592be144d697a0ba2323112a028502e8213`, with its exact parent `08db8020d323bf478964fcc586152cce54959cfc` as the control. Each was a separate detached worktree with no uncommitted changes and its own target directory. **Tested** - AMD Radeon RX 7800 XT (driver 32.0.31035.1003), Ryzen 7 5700X3D, 64 GB, Windows 11 build 26200, rustc / cargo 1.100.0, debug. `XCL_ADAPTER=radeon` and `XCL_REQUIRE_GPU=wave64,mesh` were set. - `cargo build --workspace -j 4`: exit 0 on both. - `cargo test --workspace -j 4 --no-fail-fast -- --test-threads=4`: - head: 1428 passed, 2 failed, 47 ignored (lib 1304 / 1 / 27) - parent: 1427 passed, 2 failed, 47 ignored (lib 1303 / 1 / 27) - The +1 is the new test. Every other binary has the same counts on both. - The same two tests fail on both, with the same messages: - `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1`: `seed 722: res[30] = 0x1, CPU 0x7fffffff`, on 3 of 3 reruns on each commit (#2115). - `heap_window_out_of_memory_falls_back_to_the_switch_form` (`gpu_compute_e2e`): `no heap windows, but XCL_REQUIRE_GPU=wave64,mesh` (#1651). Without `XCL_REQUIRE_GPU`, it prints `SKIPPED …: no heap windows` and `gpu_compute_e2e` is 6 passed, 0 failed on both. - `SKIPPED`: 6 lines, the same on both. They are the `f16_programs_on_the_gpu` / `f32_programs_on_the_gpu` per-lane forms refused for V_MUL_F16, V_PK_MUL_F16 and V_CVT_F16_F32 (#1426 semantics), in wave32 and wave64. - Focused run, `cargo test -j 4 -p xcl --lib -- pso_async:: list_x:: bind:: --test-threads=4`: head 63 passed, parent 62 passed, 0 failed on both. - `a_build_a_submit_needs_is_wanted` on head: passed in 5 of 5 separate runs. - The parent with only that test added (the test hunk of `pso_async.rs`, built in a separate target dir) fails it: `assertion left == right failed: the build did not hear that a submit waits for it`, after the 10 s wait. So the test is red without the one-line change on this adapter. **Not tested** - `scripts/smoke.ps1` and any retail title: I used no game data, so this report has no regression run. - Release builds, the default `XCL_HUGE_PSO_WANTED_CONCURRENCY`, and timing of the big-compile gate. **AI use** - Claude Code (Claude Opus 5.5) made the runs and wrote this report; Codex (gpt-6.2-sol) coordinated the run.
ettehn commented 2026-11-26 12:07:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ettehn on 2026-11-26T12:00:54Z.


A native Windows baseline trace that may help evaluate the default wanted cap (2). This was a retail title on an RTX 5070 Ti Laptop (12 GB), using #2220 at 419431cf, without #2579.

  • The direct queue's submit thread was in q_execute_command_lists → record_deferred → resolve_wait for a deferred compute PSO. A stack snapshot tied both threads to the same pending PSO object. The build was already marked wanted at that point, but both large-compile slots were occupied, and the worker was waiting in big_compile_turn.
  • That build (#858 in this run) logged 886.9 s of cumulative gate wait and 82.7 s in the driver. The same submit batch then waited for another compute PSO (#860 in this run), which logged 731.4 s at the gate and 64.1 s in the driver. The gate times are per-build totals, separate from the wall time observed on the submit thread.
  • Both builds completed. At the follow-up, the same batch still had 35 queued behind it, its next fence signal had yet to be submitted, and there was no new Present.

I haven't run the #2579 head on this machine. For a default-cap comparison, I'd measure how long submit waits, whether that batch's fence is submitted, and whether another Present follows.

AI-assisted verification (OpenAI Codex).

<!-- greyfinch-sync:ivall/xcl:comment:7191455338 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2579#issuecomment-7191455338). Originally posted by [ettehn](https://github.com/ettehn) on 2026-11-26T12:00:54Z. --- A native Windows baseline trace that may help evaluate the default wanted cap (2). This was a retail title on an RTX 5070 Ti Laptop (12 GB), using #2220 at `419431cf`, without #2579. - The direct queue's submit thread was in `q_execute_command_lists → record_deferred → resolve_wait` for a deferred compute PSO. A stack snapshot tied both threads to the same pending PSO object. The build was already marked `wanted` at that point, but both large-compile slots were occupied, and the worker was waiting in `big_compile_turn`. - That build (#858 in this run) logged 886.9 s of cumulative gate wait and 82.7 s in the driver. The same submit batch then waited for another compute PSO (#860 in this run), which logged 731.4 s at the gate and 64.1 s in the driver. The gate times are per-build totals, separate from the wall time observed on the submit thread. - Both builds completed. At the follow-up, the same batch still had 35 queued behind it, its next fence signal had yet to be submitted, and there was no new Present. I haven't run the #2579 head on this machine. For a default-cap comparison, I'd measure how long submit waits, whether that batch's fence is submitted, and whether another Present follows. AI-assisted verification (OpenAI Codex).
Royalflamejlh commented 2026-11-26 13:05:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Royalflamejlh on 2026-11-26T13:03:05Z.


In your trace the build was already wanted and waited on the cap for wanted big compiles (XCL_HUGE_PSO_WANTED_CONCURRENCY, 2 by default). This pull request does not change that cap. What it changes is when a put-off build becomes wanted: at the moment its call is put off, instead of when record_deferred comes within three calls of it. With both slots taken, it would still wait as in your trace. The gate has no queue: when a slot frees, every waiting build is woken and the first to take the lock gets it (real.rs:4018, big_compile_turn). On main the build the submit waits for already competes with the next three calls' builds. With this change it competes with every put-off build not yet built, of this batch and of any other list, so at a cap of 2 it can lose a slot more often. That is read from the code, not measured.

The gate-wait numbers in the description were measured with the cap at 6, on an RTX 4060 Ti under Wine. The default of 2 was not measured. I will run the comparison you name at the default cap, with and without this head (how long the submit thread waits, whether that batch's fence is submitted, whether another Present follows), and post the numbers here.

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

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

<!-- greyfinch-sync:ivall/xcl:comment:7192806769 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2579#issuecomment-7192806769). Originally posted by [Royalflamejlh](https://github.com/Royalflamejlh) on 2026-11-26T13:03:05Z. --- In your trace the build was already wanted and waited on the cap for wanted big compiles (`XCL_HUGE_PSO_WANTED_CONCURRENCY`, 2 by default). This pull request does not change that cap. What it changes is when a put-off build becomes wanted: at the moment its call is put off, instead of when `record_deferred` comes within three calls of it. With both slots taken, it would still wait as in your trace. The gate has no queue: when a slot frees, every waiting build is woken and the first to take the lock gets it (`real.rs:4018`, `big_compile_turn`). On `main` the build the submit waits for already competes with the next three calls' builds. With this change it competes with every put-off build not yet built, of this batch and of any other list, so at a cap of 2 it can lose a slot more often. That is read from the code, not measured. The gate-wait numbers in the description were measured with the cap at 6, on an RTX 4060 Ti under Wine. The default of 2 was not measured. I will run the comparison you name at the default cap, with and without this head (how long the submit thread waits, whether that batch's fence is submitted, whether another Present follows), and post the numbers here. **AI use:** Claude Code (Claude Opus 5.5) read the trace against the change and wrote this reply. Posted without review by a person: the account owner was away and reads replies later.
Prime1997 commented 2026-11-26 13:06:05 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Prime1997 on 2026-11-26T13:06:05Z.

Review: COMMENTED


Good within the reviewed scope; retain for integration. The deferred-bind priority fix is worth keeping. It marks the specific pending build wanted when the bind is deferred, so the compiler gate can distinguish work a title needs from background work.

PR head 93445592be144d697a0ba2323112a028502e8213 integrated locally with current main b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7. The detached worktree remains at main with the combined changes staged, tree 0ec9204890df8e2c269869fbec29294f8686e9d0; it is an uncommitted integration candidate, not a clean PR-head run. Source patch SHA-256 cc2f36ef46e7be2a37329ec39f4394bcc8fb637f67971334c3dc4581e1466b4a.

Targeted result: 1 passed, 0 failed, 0 ignored, 0 skipped. Each exact filter ran in a fresh process:

  • hle::d3d12x::pso_async::used_tests::a_build_a_submit_needs_is_wanted

Build: cargo test --locked --offline -p xcl --lib --no-run --message-format=json --target-dir <isolated-target>. Run: <test-exe> <each-exact-filter-above> --exact --test-threads=1 --nocapture. Private executable/target paths are placeholders. Windows 11 Pro 26200, i5-10400, 32 GiB RAM, Rust 1.100.0 MSVC debug. These selected fixtures did not dispatch GPU work.

Not tested: The fake-job fixture covers demand propagation. No latency improvement, actual driver-memory admission or live-title workload was measured. No whole suite or retail smoke was run for this batch; this is not merge certification.

AI use: Codex (GPT-6) reviewed source, ran the selected tests and verified raw results. Optional temporary Discord for coordinating contributor work, testing and comparing results.

<!-- greyfinch-sync:ivall/xcl:review:6074633541 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2579#pullrequestreview-6074633541). Originally posted by [Prime1997](https://github.com/Prime1997) on 2026-11-26T13:06:05Z. **Review:** COMMENTED --- **Good within the reviewed scope; retain for integration.** The deferred-bind priority fix is worth keeping. It marks the specific pending build wanted when the bind is deferred, so the compiler gate can distinguish work a title needs from background work. PR head `93445592be144d697a0ba2323112a028502e8213` integrated locally with current main `b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`. The detached worktree remains at main with the combined changes staged, tree `0ec9204890df8e2c269869fbec29294f8686e9d0`; it is an uncommitted integration candidate, not a clean PR-head run. Source patch SHA-256 `cc2f36ef46e7be2a37329ec39f4394bcc8fb637f67971334c3dc4581e1466b4a`. **Targeted result: 1 passed, 0 failed, 0 ignored, 0 skipped.** Each exact filter ran in a fresh process: - `hle::d3d12x::pso_async::used_tests::a_build_a_submit_needs_is_wanted` Build: `cargo test --locked --offline -p xcl --lib --no-run --message-format=json --target-dir <isolated-target>`. Run: `<test-exe> <each-exact-filter-above> --exact --test-threads=1 --nocapture`. Private executable/target paths are placeholders. Windows 11 Pro 26200, i5-10400, 32 GiB RAM, Rust 1.100.0 MSVC debug. These selected fixtures did not dispatch GPU work. **Not tested:** The fake-job fixture covers demand propagation. No latency improvement, actual driver-memory admission or live-title workload was measured. No whole suite or retail smoke was run for this batch; this is not merge certification. AI use: Codex (GPT-6) reviewed source, ran the selected tests and verified raw results. Optional temporary [Discord](https://discord.gg/gK3y7WRRY) for coordinating contributor work, testing and comparing results.
jennydeth commented 2026-11-26 16:06:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by jennydeth on 2026-11-26T15:25:18Z.


Windows / NVIDIA results for 9344559 with the retail title (1.0.2.1) on an RTX 3060 12 GB.

Regression run (default settings, 600 s)

main b49be18:

xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 3060
title: 9cc6a39e
seconds: 600
exit: 0x0
frames shown: 2047 (PresentX 2047)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 35859 MB

This PR, 9344559:

xcl-smoke v1
commit: 93445592be144d697a0ba2323112a028502e8213
gpu: NVIDIA GeForce RTX 3060
title: 9cc6a39e
seconds: 600
exit: 0x0
frames shown: 2112 (PresentX 2112)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 36316 MB
  • This PR has 2,112 frames against main's 2,047 (103 %) and peak commit of 36,316 MB against 35,859 MB (101 %), with no removal and no crash in either. Neither run reaches the world: presents stop at 100.3 s on main and at 102.3 s with this PR, while big compute programs are still compiling.
  • Put-off and gate lines: the put-off counter reached #1024 at 104.8 s with this PR and at 102.1 s on main. After presents stop, 8 gated huge compute compiles finished in the 600 s with this PR and 9 on main, each taking 67–172 s on main and 85–142 s with this PR. In this title on this card I see no difference in the counters; one run each.
  • Direct DXIL (XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_DRED=1, warm caches, 900 s): the device was lost (0x887a0005, #2403) at 112.6 s, last present at 112.4 s, with the same DRED line as on main (page fault at GPU VA 0x0; allocations there: []; recently freed: []). Three b49be18 runs today with the same switches lost it at 110.6, 211.2 and 216.0 s, so one run can't tell this PR apart from main there.

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; DXC 1.9.2609.5.
  • cargo test --workspace --release --no-fail-fast -- --test-threads=4 on 9344559: 1430 passed, 0 failed, 47 ignored. SKIPPED (29): 21 × no wave64; 3 × per-lane form refused; 3 × no D3D12 debug layer / d3d12SDKLayers.dll; 1 × no heap windows; 1 × pso_measurement_compiles_an_exact_synthetic_record (cannot disable the driver cache).
  • Retail title 1.0.2.1, scripts/smoke.ps1 -Game <folder> (XCL_NETWORK=0), the same scripted pad presses into the story load in every run; XCL_FRAME_DUMP=300 in the pair, 100 in the direct DXIL runs. Every run was of a copy named xcl-noprofile.exe: this machine has #2590's 1 GiB shader-heap profile on xcl.exe, and a copy under another name does not match it.

Not tested: least available system memory (not read); a run that gets past the stall; AMD / wave64.

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

<!-- greyfinch-sync:ivall/xcl:comment:7196242586 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2579#issuecomment-7196242586). Originally posted by [jennydeth](https://github.com/jennydeth) on 2026-11-26T15:25:18Z. --- Windows / NVIDIA results for `9344559` with the retail title (1.0.2.1) on an RTX 3060 12 GB. **Regression run** (default settings, 600 s) `main` `b49be18`: ``` xcl-smoke v1 commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7 gpu: NVIDIA GeForce RTX 3060 title: 9cc6a39e seconds: 600 exit: 0x0 frames shown: 2047 (PresentX 2047) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 35859 MB ``` This PR, `9344559`: ``` xcl-smoke v1 commit: 93445592be144d697a0ba2323112a028502e8213 gpu: NVIDIA GeForce RTX 3060 title: 9cc6a39e seconds: 600 exit: 0x0 frames shown: 2112 (PresentX 2112) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 36316 MB ``` - This PR has 2,112 frames against `main`'s 2,047 (103 %) and peak commit of 36,316 MB against 35,859 MB (101 %), with no removal and no crash in either. Neither run reaches the world: presents stop at 100.3 s on `main` and at 102.3 s with this PR, while big compute programs are still compiling. - **Put-off and gate lines:** the put-off counter reached `#1024` at 104.8 s with this PR and at 102.1 s on `main`. After presents stop, 8 gated huge compute compiles finished in the 600 s with this PR and 9 on `main`, each taking 67–172 s on `main` and 85–142 s with this PR. In this title on this card I see no difference in the counters; one run each. - **Direct DXIL** (`XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_DRED=1`, warm caches, 900 s): the device was lost (`0x887a0005`, #2403) at 112.6 s, last present at 112.4 s, with the same DRED line as on `main` (`page fault at GPU VA 0x0; allocations there: []; recently freed: []`). Three `b49be18` runs today with the same switches lost it at 110.6, 211.2 and 216.0 s, so one run can't tell this PR apart from `main` there. **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; DXC 1.9.2609.5. - `cargo test --workspace --release --no-fail-fast -- --test-threads=4` on `9344559`: **1430 passed, 0 failed, 47 ignored**. SKIPPED (29): 21 × no wave64; 3 × per-lane form refused; 3 × no D3D12 debug layer / `d3d12SDKLayers.dll`; 1 × no heap windows; 1 × `pso_measurement_compiles_an_exact_synthetic_record` (cannot disable the driver cache). - Retail title 1.0.2.1, `scripts/smoke.ps1 -Game <folder>` (`XCL_NETWORK=0`), the same scripted pad presses into the story load in every run; `XCL_FRAME_DUMP=300` in the pair, `100` in the direct DXIL runs. Every run was of a copy named `xcl-noprofile.exe`: this machine has #2590's 1 GiB shader-heap profile on `xcl.exe`, and a copy under another name does not match it. **Not tested:** least available system memory (not read); a run that gets past the stall; AMD / wave64. AI use: Claude Code (Claude Opus 5.5) built the commit, ran the suite and the runs on my machine, read the logs and wrote this.
NWProgramming00 commented 2026-11-26 16:57:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by NWProgramming00 on 2026-11-26T16:57:18Z.


Supporting data for the line this PR shares with #2832. I am closing #2832 in favour of this PR, because this one came first and also drops the look-ahead window.

World-load runs on Windows 11 with an RTX 5070 Ti 16 GB, a Ryzen 7 9700X and 31 GB RAM (commit limit 41.7 GB).

Run Graphics driver builds after world entry Driver time Wall time Builds at once
Without the line 78 260.9 s 263 s 1
With the line 97 (cold) 426.5 s 212 s about 2, the wanted cap
  • Without the line, the gate waits add up to 3,731 s. A thread dump showed 13 of 15 workers in big_compile_turn and the submit in record_deferred → resolve_wait.
  • Caveat: neither run got frames back after world entry. The run with the line ended at 427 s in D3D12 device removed: 0x887a0005, with no DRED. I cannot tell whether that is #2403's shader-code heap, reached sooner because pipelines are built faster, so I do not claim it either way.

On main b49be18, the same one-line change passes the full workspace suite on NVIDIA and on the Radeon iGPU, with and without XCL_DIRECT_DXIL=all. Each row is +1 for the new test, and the same known fuzz tests fail as on the base (#1905, #2115). The counts are in #2832.

AI use: Claude Code (Claude Opus 5.5) ran these measurements and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7198305452 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2579#issuecomment-7198305452). Originally posted by [NWProgramming00](https://github.com/NWProgramming00) on 2026-11-26T16:57:18Z. --- Supporting data for the line this PR shares with #2832. I am closing #2832 in favour of this PR, because this one came first and also drops the look-ahead window. **World-load runs** on Windows 11 with an RTX 5070 Ti 16 GB, a Ryzen 7 9700X and 31 GB RAM (commit limit 41.7 GB). - Each run is 600 s with `XCL_NETWORK=0 XCL_ACTIVITY=1`, from the same cache copy, on `b49be18` + #2611 + #2613. - The `need_by_submit` → `want()` line was behind a local switch, and the window of four was left in place. - Details: https://github.com/xcl-dev/xcl/pull/2611#issuecomment-7193653105 | Run | Graphics driver builds after world entry | Driver time | Wall time | Builds at once | |---|---|---|---|---| | Without the line | 78 | 260.9 s | 263 s | 1 | | With the line | 97 (cold) | 426.5 s | 212 s | about 2, the wanted cap | - **Without the line**, the gate waits add up to 3,731 s. A thread dump showed 13 of 15 workers in `big_compile_turn` and the submit in `record_deferred → resolve_wait`. - **Caveat:** neither run got frames back after world entry. The run with the line ended at 427 s in `D3D12 device removed: 0x887a0005`, with no DRED. I cannot tell whether that is #2403's shader-code heap, reached sooner because pipelines are built faster, so I do not claim it either way. **On `main` `b49be18`**, the same one-line change passes the full workspace suite on NVIDIA and on the Radeon iGPU, with and without `XCL_DIRECT_DXIL=all`. Each row is +1 for the new test, and the same known fuzz tests fail as on the base (#1905, #2115). The counts are in #2832. AI use: Claude Code (Claude Opus 5.5) ran these measurements and wrote this.
SzczepanGrela commented 2026-11-26 18:44:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SzczepanGrela on 2026-11-26T18:44:31Z.


RX 9070 / Linux-Wine controlled verification of head 93445592be144d697a0ba2323112a028502e8213, current main 8b957bec6f82495aec940944c6bf47faa02db590, and their automatic three-way integration. This adds actual native PSO creation, resolver use and GPU output to the demand-propagation check. The gate's headroom predicate was injected as false; this is not an OS memory-admission or title-latency measurement.

Tested

RX 9070 (RADV GFX1201, PCI 1002:7550, LUID 00000000:000003ef), Mesa 26.3.1-arch3.5, Ryzen 7 7700, CachyOS kernel 7.3.0-5-cachyos, GE-Proton11-12 / Wine 11.0 Staging, native d3d12/d3d12core/dxgi, vkd3d-proton 8293130ebe370b1+ (local asserts-disabled build), DXC 1.9.2602.17, Rust 1.97.1, release x86_64-pc-windows-gnu.

Separate source copies and targets, built with cargo test --offline --locked --release --target x86_64-pc-windows-gnu -p xcl --lib --no-run. Exact parent 08db8020d323bf478964fcc586152cce54959cfc verified through the commit API. The three changed files merged onto current main without conflicts. Source bytes and executable hashes were checked after reversing test-only additions. Main received the original new regression test; existing assertions were retained.

The unit selection contained a_build_a_submit_needs_is_wanted, a_waiting_bind_makes_the_build_wanted, wanted_builds_bypass_commit_and_unwanted_slot_but_respect_hard_cap, and unwanted_commit_waiter_does_not_starve_wanted_compile:

Source Threads 1 Threads 4
main 3 passed, 1 failed 3 passed, 1 failed
exact PR head 4 passed, 0 failed 4 passed, 0 failed
integration 4 passed, 0 failed 4 passed, 0 failed

Main fails only the new wanted-demand assertion. All counts have 0 ignored and no capability skips.

Native fixture

Three fresh processes per source used actual pso_async worker jobs, synthetic registry stand-ins and three small validated compute shaders. The test adapter called the unchanged real::big_compile_turn with an isolated slot counter, the production cap accessors/defaults (1 background / 2 wanted), and commit_free = false. It did not use BIG_COMPILES' shared counter or classify the small shaders as huge.

  • All three jobs started on distinct xcl-pso-* workers before marking demand. need_by_submit was called twice per stand-in. Before any bind or cleanup promotion, main recorded by_submit=true, wanted=false for all three and admitted 0 jobs; head and integration recorded both flags true and admitted 2.
  • The two admitted jobs created real native PSOs, then held their slot guards at a latch. The third stayed blocked while both guards were held. Releasing one guard admitted the third; the occupied count stayed at 2, then returned to 0 after completion.
  • For main, manual promotion occurred only after its initial snapshot, to complete the controls and cleanup. Its final assertion failed after the GPU work and COM cleanup, rather than leaving blocked workers behind.
  • All three returned native pipelines were obtained through resolve, used in real dispatches on an owned 256-byte buffer, and released after the GPU fence. Every process read back [42, 43, 44]; no pending entry remained.

The native fixture passed 1/0 on all six head/integration processes. Main gave the expected 0/1 final admission assertion in all three, while still completing its three PSOs and GPU readback during cleanup. Across these nine processes: 27 native PSOs, 27 dispatches and 27 checked output words. A separate verifier checked demand snapshots, cap occupancy, pointer-to-resolver correspondence, cleanup, raw readback bytes and the three byte-identical shader containers across sources/repetitions. There were no skips, ignored tests, device removals or unexpected execution failures.

Environment: XCL_ADAPTER=AMD Radeon RX 9070, XCL_REQUIRE_GPU=wave64, XCL_NETWORK=0, XCL_DXC_THREADS=4, native DLL overrides and private enabled caches; no huge-PSO cap overrides. The three HLSL compile calls are serial before worker submission. An initial local harness compile error in explicit union dereferencing was corrected before GPU runs; its logs were retained.

Not tested

Full workspace suite, retail/smoke runs, real deferred command-list replay or removal of its look-ahead window, actual driver compile overlap, huge/giant shader classification, OS commit pressure, preload thread priority, queue fairness, submit latency, world entry, or FPS/performance. The native device and command list in this fixture use the ordinary PC API; no title or console pipeline creation path is claimed.

AI use

OpenAI Codex (GPT-6; exact serving variant not exposed) reviewed the changes, prepared the bounded test adapter/fixture, built and ran all three sources, independently checked source bytes, native observations and GPU data, and wrote this report. Publication authorized by the account owner.

<!-- greyfinch-sync:ivall/xcl:comment:7200800071 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2579#issuecomment-7200800071). Originally posted by [SzczepanGrela](https://github.com/SzczepanGrela) on 2026-11-26T18:44:31Z. --- RX 9070 / Linux-Wine controlled verification of head `93445592be144d697a0ba2323112a028502e8213`, current main `8b957bec6f82495aec940944c6bf47faa02db590`, and their automatic three-way integration. This adds actual native PSO creation, resolver use and GPU output to the demand-propagation check. The gate's headroom predicate was injected as false; this is not an OS memory-admission or title-latency measurement. **Tested** RX 9070 (RADV GFX1201, PCI `1002:7550`, LUID `00000000:000003ef`), Mesa `26.3.1-arch3.5`, Ryzen 7 7700, CachyOS kernel `7.3.0-5-cachyos`, GE-Proton11-12 / Wine 11.0 Staging, native d3d12/d3d12core/dxgi, vkd3d-proton `8293130ebe370b1+` (local asserts-disabled build), DXC `1.9.2602.17`, Rust `1.97.1`, release `x86_64-pc-windows-gnu`. Separate source copies and targets, built with `cargo test --offline --locked --release --target x86_64-pc-windows-gnu -p xcl --lib --no-run`. Exact parent `08db8020d323bf478964fcc586152cce54959cfc` verified through the commit API. The three changed files merged onto current main without conflicts. Source bytes and executable hashes were checked after reversing test-only additions. Main received the original new regression test; existing assertions were retained. The unit selection contained `a_build_a_submit_needs_is_wanted`, `a_waiting_bind_makes_the_build_wanted`, `wanted_builds_bypass_commit_and_unwanted_slot_but_respect_hard_cap`, and `unwanted_commit_waiter_does_not_starve_wanted_compile`: | Source | Threads 1 | Threads 4 | |---|---|---| | main | 3 passed, 1 failed | 3 passed, 1 failed | | exact PR head | 4 passed, 0 failed | 4 passed, 0 failed | | integration | 4 passed, 0 failed | 4 passed, 0 failed | Main fails only the new wanted-demand assertion. All counts have 0 ignored and no capability skips. **Native fixture** Three fresh processes per source used actual `pso_async` worker jobs, synthetic registry stand-ins and three small validated compute shaders. The test adapter called the unchanged `real::big_compile_turn` with an isolated slot counter, the production cap accessors/defaults (`1` background / `2` wanted), and `commit_free = false`. It did not use `BIG_COMPILES`' shared counter or classify the small shaders as huge. - All three jobs started on distinct `xcl-pso-*` workers before marking demand. `need_by_submit` was called twice per stand-in. Before any bind or cleanup promotion, main recorded `by_submit=true, wanted=false` for all three and admitted 0 jobs; head and integration recorded both flags true and admitted 2. - The two admitted jobs created real native PSOs, then held their slot guards at a latch. The third stayed blocked while both guards were held. Releasing one guard admitted the third; the occupied count stayed at 2, then returned to 0 after completion. - For main, manual promotion occurred only after its initial snapshot, to complete the controls and cleanup. Its final assertion failed after the GPU work and COM cleanup, rather than leaving blocked workers behind. - All three returned native pipelines were obtained through `resolve`, used in real dispatches on an owned 256-byte buffer, and released after the GPU fence. Every process read back `[42, 43, 44]`; no pending entry remained. The native fixture passed 1/0 on all six head/integration processes. Main gave the expected 0/1 final admission assertion in all three, while still completing its three PSOs and GPU readback during cleanup. Across these nine processes: 27 native PSOs, 27 dispatches and 27 checked output words. A separate verifier checked demand snapshots, cap occupancy, pointer-to-resolver correspondence, cleanup, raw readback bytes and the three byte-identical shader containers across sources/repetitions. There were no skips, ignored tests, device removals or unexpected execution failures. Environment: `XCL_ADAPTER=AMD Radeon RX 9070`, `XCL_REQUIRE_GPU=wave64`, `XCL_NETWORK=0`, `XCL_DXC_THREADS=4`, native DLL overrides and private enabled caches; no huge-PSO cap overrides. The three HLSL compile calls are serial before worker submission. An initial local harness compile error in explicit union dereferencing was corrected before GPU runs; its logs were retained. **Not tested** Full workspace suite, retail/smoke runs, real deferred command-list replay or removal of its look-ahead window, actual driver compile overlap, huge/giant shader classification, OS commit pressure, preload thread priority, queue fairness, submit latency, world entry, or FPS/performance. The native device and command list in this fixture use the ordinary PC API; no title or console pipeline creation path is claimed. **AI use** OpenAI Codex (GPT-6; exact serving variant not exposed) reviewed the changes, prepared the bounded test adapter/fixture, built and ran all three sources, independently checked source bytes, native observations and GPU data, and wrote this report. Publication authorized by the account owner.
Decodere commented 2026-11-26 19:22:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-26T19:22:32Z.


Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2579 at 93445592be144d697a0ba2323112a028502e8213 (exact parent & merge-base 08db8020d323bf478964fcc586152cce54959cfc). Measurements and targeted test results only; not a full source review.

Setup

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12), driver 32.0.16.2114 (NVIDIA 621.14, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-11400F (6 cores / 12 threads), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200
  • Toolchain / caches: rustc 1.100.0 (0ef1bc386 2026-11-09), DXC 1.9.2609.5, release builds, warm DXIL/pipeline caches, quiet machine (zero concurrent builds/tests during timed runs)
  • Workload: Retail workload title: 29640639 via scripts/smoke.ps1 -Seconds 60 (XCL_NETWORK=0, default flags, no input)

Targeted RTX 4060 release unit & GPU tests (93445592)

  • cargo test --release -p xcl --lib a_build_a_submit_needs_is_wanted -- --nocapture: 1 passed, 0 failed, 0 ignored (0.01 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib hle::d3d12x::pso_async:: (3 consecutive parallel passes): 15 passed, 0 failed, 0 ignored on all 3 passes (1.06 s / 1.06 s / 1.11 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib hle::d3d12x::list_x:: (3 consecutive parallel passes): 40 passed, 0 failed, 0 ignored on all 3 passes (0.69 s / 0.70 s / 0.69 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib hle::d3d12x::bind::: 8 passed, 0 failed, 0 ignored (0.28 s, 0 SKIPPED).

Paired 60 s RTX 4060 smoke (exact parent 08db8020 vs 93445592)

Both runs completed cleanly at steady 60/2 s pacing with 0 device removals and 0 crashes (93445592 vs 08db8020 xcl.log: 6,175 / 6,114 MB vs 6,116 / 6,116 MB peak/end local VRAM, 4,651 MB vs 4,683 MB end non-local VRAM, 19,567 vs 19,507 translated draws / 1,024 dispatches with 0 skipped).

Exact parent (08db8020):

xcl-smoke v1
commit: 08db8020d323bf478964fcc586152cce54959cfc
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1588 (PresentX 1588)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14000 MB

PR #2579 head (93445592):

xcl-smoke v1
commit: 93445592be144d697a0ba2323112a028502e8213
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1597 (PresentX 1597)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13979 MB

Limits of coverage

  • Full workspace test suite was not run on 93445592 (only a_build_a_submit_needs_is_wanted, 3 parallel passes each of pso_async:: and list_x::, bind::, release build, and exact-parent paired 60 s smokes).
  • The 60 s smoke ran with warm DXIL/pipeline caches, so cold deferred-dispatch submit contention under background pipeline builds was exercised by the targeted pso_async::/list_x:: release unit tests (including a_build_a_submit_needs_is_wanted) rather than cold cache misses during the smoke.
  • Single discrete NVIDIA 8 GB GPU (RTX 4060) on native Windows 11; no AMD, Intel, or Wine/Linux run on this host.

AI use

Ran the targeted release unit/GPU tests, release build, and exact-parent paired quiet 60 s smoke runs with assistance from Google Antigravity (Gemini 4 Neon); all test counts, timings, memory figures, and smoke blocks were extracted directly from cargo test, xcl.log, and scripts/smoke.ps1 outputs.

<!-- greyfinch-sync:ivall/xcl:comment:7201514876 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2579#issuecomment-7201514876). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-26T19:22:32Z. --- **Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2579 at `93445592be144d697a0ba2323112a028502e8213`** (exact parent & merge-base `08db8020d323bf478964fcc586152cce54959cfc`). Measurements and targeted test results only; not a full source review. ### Setup - **GPU:** NVIDIA GeForce RTX 4060 (8 GB / `7956 MiB` reported by D3D12), driver `32.0.16.2114` (NVIDIA `621.14`, WDDM 3.2) - **CPU / RAM / OS:** Intel Core i5-11400F (6 cores / 12 threads), 32 GB RAM (`31.9 GiB` usable), Windows 11 Home `26200` - **Toolchain / caches:** `rustc 1.100.0 (0ef1bc386 2026-11-09)`, DXC `1.9.2609.5`, release builds, warm DXIL/pipeline caches, quiet machine (zero concurrent builds/tests during timed runs) - **Workload:** Retail workload `title: 29640639` via `scripts/smoke.ps1 -Seconds 60` (`XCL_NETWORK=0`, default flags, no input) ### Targeted RTX 4060 release unit & GPU tests (`93445592`) - `cargo test --release -p xcl --lib a_build_a_submit_needs_is_wanted -- --nocapture`: **1 passed, 0 failed, 0 ignored** (`0.01 s`, `0` `SKIPPED`). - `cargo test --release -p xcl --lib hle::d3d12x::pso_async::` (3 consecutive parallel passes): **15 passed, 0 failed, 0 ignored** on all 3 passes (`1.06 s` / `1.06 s` / `1.11 s`, `0` `SKIPPED`). - `cargo test --release -p xcl --lib hle::d3d12x::list_x::` (3 consecutive parallel passes): **40 passed, 0 failed, 0 ignored** on all 3 passes (`0.69 s` / `0.70 s` / `0.69 s`, `0` `SKIPPED`). - `cargo test --release -p xcl --lib hle::d3d12x::bind::`: **8 passed, 0 failed, 0 ignored** (`0.28 s`, `0` `SKIPPED`). ### Paired 60 s RTX 4060 smoke (exact parent `08db8020` vs `93445592`) Both runs completed cleanly at steady 60/2 s pacing with `0` device removals and `0` crashes (`93445592` vs `08db8020` `xcl.log`: `6,175` / `6,114 MB` vs `6,116` / `6,116 MB` peak/end local VRAM, `4,651 MB` vs `4,683 MB` end non-local VRAM, `19,567` vs `19,507` translated draws / `1,024` dispatches with `0` skipped). Exact parent (`08db8020`): ``` xcl-smoke v1 commit: 08db8020d323bf478964fcc586152cce54959cfc gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1588 (PresentX 1588) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14000 MB ``` PR #2579 head (`93445592`): ``` xcl-smoke v1 commit: 93445592be144d697a0ba2323112a028502e8213 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1597 (PresentX 1597) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13979 MB ``` ### Limits of coverage - Full workspace test suite was not run on `93445592` (only `a_build_a_submit_needs_is_wanted`, 3 parallel passes each of `pso_async::` and `list_x::`, `bind::`, release build, and exact-parent paired 60 s smokes). - The 60 s smoke ran with warm DXIL/pipeline caches, so cold deferred-dispatch submit contention under background pipeline builds was exercised by the targeted `pso_async::`/`list_x::` release unit tests (including `a_build_a_submit_needs_is_wanted`) rather than cold cache misses during the smoke. - Single discrete NVIDIA 8 GB GPU (`RTX 4060`) on native Windows 11; no AMD, Intel, or Wine/Linux run on this host. ### AI use Ran the targeted release unit/GPU tests, release build, and exact-parent paired quiet 60 s smoke runs with assistance from Google Antigravity (Gemini 4 Neon); all test counts, timings, memory figures, and smoke blocks were extracted directly from `cargo test`, `xcl.log`, and `scripts/smoke.ps1` outputs.
throny commented 2026-11-27 20:52:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T20:52:48Z.


merge-check claim
head: 93445592be

<!-- greyfinch-sync:ivall/xcl:comment:7227926064 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2579#issuecomment-7227926064). Originally posted by [throny](https://github.com/throny) on 2026-11-27T20:52:48Z. --- merge-check claim head: 93445592be144d697a0ba2323112a028502e8213
pickles976 commented 2026-11-27 21:08:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by pickles976 on 2026-11-27T21:08:48Z.


Verified exact head 93445592be144d697a0ba2323112a028502e8213 in a clean detached checkout on Linux 6.17 / Wine 11 / i7-13620H / 16 GiB, Rust 1.98.1, Windows MSVC target, XCL_DXC_THREADS=2.

6/6 CPU tests passed, 0 ignored, 1.08 s after fresh intended-worktree compilation (25.67 s): submit-needed build becomes wanted, submit-needed pipeline overtakes the backlog, wanted burst cap, wanted bypass of background/commit waiting, and both unwanted progress/slot checks. Command filters: a_build_a_submit_needs_is_wanted a_pipeline_a_submit_needs_is_built_before_the_queue big_compile_tests::wanted big_compile_tests::unwanted, --nocapture --test-threads=1.

No D3D12 adapter initialized or actual driver PSO compiled. The cap/progress tests use synthetic commit availability and local slot counters. This proves the selected CPU scheduling behavior under Wine, not lower title frame time, less peak RAM, or correction of our separate Game-Init producer-fence stall. No matched-parent run or title launch.

For this 16 GiB machine I would retain the default wanted-class limit, not copy the six-worker performance configuration from the description: wanted admission deliberately bypasses the commit-headroom check, and the separate giant lane means the per-class cap is not an aggregate process-memory budget. All external 9 GiB scope / 512 MiB swap / 2 GiB available-RAM / 6,000 MiB GPU / 10 GiB disk guards remained unchanged.

Evidence: .compat-runtime/logs/verify-xcl2579-demand-admission-20261127T210619Z/.

AI use: OpenAI Codex / GPT-6 Astra reviewed the code, executed the checks, and prepared this report.

<!-- greyfinch-sync:ivall/xcl:comment:7228177273 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2579#issuecomment-7228177273). Originally posted by [pickles976](https://github.com/pickles976) on 2026-11-27T21:08:48Z. --- Verified exact head `93445592be144d697a0ba2323112a028502e8213` in a clean detached checkout on Linux 6.17 / Wine 11 / i7-13620H / 16 GiB, Rust 1.98.1, Windows MSVC target, `XCL_DXC_THREADS=2`. **6/6 CPU tests passed**, 0 ignored, 1.08 s after fresh intended-worktree compilation (25.67 s): submit-needed build becomes wanted, submit-needed pipeline overtakes the backlog, wanted burst cap, wanted bypass of background/commit waiting, and both unwanted progress/slot checks. Command filters: `a_build_a_submit_needs_is_wanted a_pipeline_a_submit_needs_is_built_before_the_queue big_compile_tests::wanted big_compile_tests::unwanted`, `--nocapture --test-threads=1`. No D3D12 adapter initialized or actual driver PSO compiled. The cap/progress tests use synthetic commit availability and local slot counters. This proves the selected CPU scheduling behavior under Wine, **not** lower title frame time, less peak RAM, or correction of our separate Game-Init producer-fence stall. No matched-parent run or title launch. For this 16 GiB machine I would retain the default wanted-class limit, not copy the six-worker performance configuration from the description: wanted admission deliberately bypasses the commit-headroom check, and the separate giant lane means the per-class cap is not an aggregate process-memory budget. All external 9 GiB scope / 512 MiB swap / 2 GiB available-RAM / 6,000 MiB GPU / 10 GiB disk guards remained unchanged. Evidence: `.compat-runtime/logs/verify-xcl2579-demand-admission-20261127T210619Z/`. AI use: OpenAI Codex / GPT-6 Astra reviewed the code, executed the checks, and prepared this report.
throny commented 2026-11-27 21:10:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T21:10:42Z.


merge-check
base: 6089122a
head: 93445592be
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1466 passed, 0 failed, 47 ignored (26 SKIPPED lines); base alone: 1465 passed, 0 failed, 47 ignored
review: none blocking. No deadlock: the demand guard is dropped before want(). The removed want_bound, pso_async::want and WANTED_AT_ONCE have no other users on main. For whoever merges: it conflicts textually with #2424 (pso_async.rs) and #2547 (bind.rs), not in meaning; its new test and #2424's use the same key in a global map and would race once both are in, so one key must change; with #2547 merged, the window loop that PR keeps should go.
performance: default path: every put-off build is wanted at once and so skips the memory-headroom wait and the compile gate, which can raise peak commit during loading (a tester's run in the thread shows about +1 %; not measured here). No steady-state cost found.
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).

<!-- greyfinch-sync:ivall/xcl:comment:7228206602 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2579#issuecomment-7228206602). Originally posted by [throny](https://github.com/throny) on 2026-11-27T21:10:42Z. --- merge-check base: 6089122a head: 93445592be144d697a0ba2323112a028502e8213 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1466 passed, 0 failed, 47 ignored (26 SKIPPED lines); base alone: 1465 passed, 0 failed, 47 ignored review: none blocking. No deadlock: the demand guard is dropped before want(). The removed want_bound, pso_async::want and WANTED_AT_ONCE have no other users on main. For whoever merges: it conflicts textually with #2424 (pso_async.rs) and #2547 (bind.rs), not in meaning; its new test and #2424's use the same key in a global map and would race once both are in, so one key must change; with #2547 merged, the window loop that PR keeps should go. performance: default path: every put-off build is wanted at once and so skips the memory-headroom wait and the compile gate, which can raise peak commit during loading (a tester's run in the thread shows about +1 %; not measured here). No steady-state cost found. verdict: safe to merge hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
oni-swr commented 2026-11-27 21:22:53 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by oni-swr on 2026-11-27T21:22:53Z.


claiming: a native Windows AMD title data point (RX 7800 XT, RDNA3): paired scripts/smoke.ps1 of head 93445592 vs base main 6089122a, queued behind our current GPU jobs, ETA ~23:45Z.
AI-assisted (Gemini 4 Neon); aggregate numbers only.

<!-- greyfinch-sync:ivall/xcl:comment:7228392190 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2579#issuecomment-7228392190). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-27T21:22:53Z. --- claiming: a native Windows AMD title data point (RX 7800 XT, RDNA3): paired scripts/smoke.ps1 of head 93445592 vs base main 6089122a, queued behind our current GPU jobs, ETA ~23:45Z. AI-assisted (Gemini 4 Neon); aggregate numbers only.
oni-swr commented 2026-11-27 23:30:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by oni-swr on 2026-11-27T23:30:25Z.


Native Windows AMD paired retail-title report for PR #2579.

Setup

  • Hardware / OS: AMD Radeon RX 7800 XT 16 GB (RDNA3), driver 32.0.31035.1003; Windows 11 Pro 25H2 (build 26200.9974); rustc 1.100.0, release builds.
  • Commits: pinned main control 6089122a1c96dff16e93b6fdf04c8ed20cfb6102 vs PR #2579 head 93445592be144d697a0ba2323112a028502e8213.
  • Method & env switches: 2 alternating runs per arm (base, head, base, head), 600 s cap with a 120 s no-present watchdog kill. XCL_NETWORK=0, XCL_PREPARE=0, XCL_ACTIVITY=1, XCL_RUN_SECONDS=600, XCL_ADAPTER="AMD Radeon RX 7800 XT", scripted periodic A input (XCL_PRESS_A_AT every 4 s from 20 s) to enter world load, default XCL_HUGE_PSO_WANTED_CONCURRENCY (2). Each run used a fresh isolated copy of the same baseline XCL_DXIL_CACHE (including driver/) and XCL_DATA_ROOT, so arms did not share a warmed cache.

Results (aggregate per arm, 2 runs each)

Metric Pinned main (6089122a) PR #2579 (93445592)
Stop reason 2/2 killed by 120 s no-present watchdog (226 s, 226 s wall; exit 0xffffffff) 2/2 killed by 120 s no-present watchdog (223 s, 230 s wall; exit 0xffffffff)
Total presents (sum of 2 s activity windows) 1,659 / 1,710 (mean 1,685) 1,583 / 1,672 (mean 1,628)
Last-present time 101.1 s / 102.3 s (mean 101.7 s) 97.6 s / 105.9 s (mean 101.8 s)
Peak commit 29,441 MB / 29,401 MB (mean 29,421 MB) 30,700 MB / 30,498 MB (mean 30,599 MB; +4.0%)
Device removals / crashes 0 / 0 0 / 0
Put-off submit counter reached #512 / #1024 #512 / #512
Gated huge compute PSO finishes 0 / 0 18 / 29 (222.2 s / 187.5 s cumulative compile; 487.1 s / 367.2 s cumulative gate wait)
Total huge/gated driver compiles finished 33 / 58 (mean 45.5) 57 / 92 (mean 74.5)

Observations

  • Both arms stop presenting at the same point (~98–106 s into world load) and do not resume within 120 s.
  • The change clearly unblocks the big-compile gate on AMD Windows: pinned main finished 0 gated huge compute PSOs during the 120 s stall window in both runs, whereas PR #2579 finished 18 and 29 gated huge compute PSOs at the default wanted cap (2), with +4.0% higher peak commit and no device removals or crashes.

Not tested

  • Letting runs continue beyond 120 s after presents stop, XCL_HUGE_PSO_WANTED_CONCURRENCY above default, or rerunning the full workspace unit/GPU test suite in this pass.

AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:ivall/xcl:comment:7230193099 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2579#issuecomment-7230193099). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-27T23:30:25Z. --- Native Windows AMD paired retail-title report for PR #2579. **Setup** - **Hardware / OS:** AMD Radeon RX 7800 XT 16 GB (RDNA3), driver `32.0.31035.1003`; Windows 11 Pro 25H2 (build `26200.9974`); `rustc 1.100.0`, release builds. - **Commits:** pinned `main` control `6089122a1c96dff16e93b6fdf04c8ed20cfb6102` vs PR #2579 head `93445592be144d697a0ba2323112a028502e8213`. - **Method & env switches:** 2 alternating runs per arm (`base`, `head`, `base`, `head`), 600 s cap with a 120 s no-present watchdog kill. `XCL_NETWORK=0`, `XCL_PREPARE=0`, `XCL_ACTIVITY=1`, `XCL_RUN_SECONDS=600`, `XCL_ADAPTER="AMD Radeon RX 7800 XT"`, scripted periodic `A` input (`XCL_PRESS_A_AT` every 4 s from 20 s) to enter world load, default `XCL_HUGE_PSO_WANTED_CONCURRENCY` (2). Each run used a fresh isolated copy of the same baseline `XCL_DXIL_CACHE` (including `driver/`) and `XCL_DATA_ROOT`, so arms did not share a warmed cache. **Results (aggregate per arm, 2 runs each)** | Metric | Pinned `main` (`6089122a`) | PR #2579 (`93445592`) | |---|---|---| | Stop reason | 2/2 killed by 120 s no-present watchdog (226 s, 226 s wall; exit `0xffffffff`) | 2/2 killed by 120 s no-present watchdog (223 s, 230 s wall; exit `0xffffffff`) | | Total presents (sum of 2 s activity windows) | 1,659 / 1,710 (mean 1,685) | 1,583 / 1,672 (mean 1,628) | | Last-present time | 101.1 s / 102.3 s (mean 101.7 s) | 97.6 s / 105.9 s (mean 101.8 s) | | Peak commit | 29,441 MB / 29,401 MB (mean 29,421 MB) | 30,700 MB / 30,498 MB (mean 30,599 MB; +4.0%) | | Device removals / crashes | 0 / 0 | 0 / 0 | | Put-off submit counter reached | `#512` / `#1024` | `#512` / `#512` | | Gated huge compute PSO finishes | 0 / 0 | 18 / 29 (222.2 s / 187.5 s cumulative compile; 487.1 s / 367.2 s cumulative gate wait) | | Total huge/gated driver compiles finished | 33 / 58 (mean 45.5) | 57 / 92 (mean 74.5) | **Observations** - Both arms stop presenting at the same point (~98–106 s into world load) and do not resume within 120 s. - The change clearly unblocks the big-compile gate on AMD Windows: pinned `main` finished 0 gated huge compute PSOs during the 120 s stall window in both runs, whereas PR #2579 finished 18 and 29 gated huge compute PSOs at the default wanted cap (2), with +4.0% higher peak commit and no device removals or crashes. **Not tested** - Letting runs continue beyond 120 s after presents stop, `XCL_HUGE_PSO_WANTED_CONCURRENCY` above default, or rerunning the full workspace unit/GPU test suite in this pass. AI-assisted (Gemini 4 Neon).
thehollowedone commented 2026-11-27 23:49:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-27T23:49:39Z.


Test-only suggestion for 93445592. The new test checks that the worker eventually sees wanted, but never checks that the build started out unwanted. It can therefore pass if a future change marks the build wanted at creation, even with the promotion in need_by_submit missing.

Have the worker report its state before and after need_by_submit. This makes the transition explicit and replaces the polling loops with bounded waits. Both observations happen before joining the worker, since the join can mark the build wanted itself. No scheduler or cap changes.

Validation: git apply --check passed against the exact head’s source. I did not run the test on Windows. A focused run should pass as written and fail with either mutation: drop the submit-time promotion, or start the build already wanted.

Proposed test-only diff
--- a/crates/xcl/src/hle/d3d12x/pso_async.rs
+++ b/crates/xcl/src/hle/d3d12x/pso_async.rs
@@ -763,23 +763,24 @@
     #[test]
     fn a_build_a_submit_needs_is_wanted() {
         let standin = 0x7E57_B006usize;
-        let (started_tx, started) = mpsc::channel();
+        let timeout = std::time::Duration::from_secs(10);
+        let (observe_tx, observe) = mpsc::channel();
+        let (resume_tx, resume) = mpsc::channel();
         submit(standin, true, Box::new(move || {
-            started_tx.send(()).unwrap();
-            let t = std::time::Instant::now();
-            while !build_is_wanted() && t.elapsed() < std::time::Duration::from_secs(10) {
-                std::thread::sleep(std::time::Duration::from_millis(1));
+            if observe_tx.send(build_is_wanted()).is_err() || resume.recv_timeout(timeout).is_err() {
+                return 0;
             }
-            if build_is_wanted() { 0x5757 } else { 0 }
+            let _ = observe_tx.send(build_is_wanted());
+            0x5757
         }));
-        started.recv().unwrap();
+        let before = observe.recv_timeout(timeout).expect("pipeline worker did not start");
         need_by_submit(standin);
-        let t = std::time::Instant::now();
-        while is_pending(standin) && t.elapsed() < std::time::Duration::from_secs(15) {
-            std::thread::sleep(std::time::Duration::from_millis(5));
-        }
-        assert_eq!(resolve(standin), 0x5757, "the build did not hear that a submit waits for it");
+        resume_tx.send(()).expect("pipeline worker stopped early");
+        let after = observe.recv_timeout(timeout).expect("pipeline worker did not report demand");
+        // Only join after sampling: the wait can itself mark the build wanted.
+        assert_eq!(resolve_wait_for(standin, Some(timeout)), 0x5757);
         let _ = released(standin);
+        assert_eq!((before, after), (false, true), "demand should change only at need_by_submit");
     }
 
     /// A worker's build hears that a bind waits for it (and only its own build does).

AI use: OpenAI ChatGPT with GPT-6.2 Astra for source review and the proposed test patch.

<!-- greyfinch-sync:ivall/xcl:comment:7230437920 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2579#issuecomment-7230437920). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-27T23:49:39Z. --- **Test-only suggestion for `93445592`.** The new test checks that the worker eventually sees `wanted`, but never checks that the build started out unwanted. It can therefore pass if a future change marks the build wanted at creation, even with the promotion in `need_by_submit` missing. Have the worker report its state before and after `need_by_submit`. This makes the transition explicit and replaces the polling loops with bounded waits. Both observations happen before joining the worker, since the join can mark the build wanted itself. No scheduler or cap changes. Validation: `git apply --check` passed against the exact head’s source. I did not run the test on Windows. A focused run should pass as written and fail with either mutation: drop the submit-time promotion, or start the build already wanted. <details> <summary>Proposed test-only diff</summary> ```diff --- a/crates/xcl/src/hle/d3d12x/pso_async.rs +++ b/crates/xcl/src/hle/d3d12x/pso_async.rs @@ -763,23 +763,24 @@ #[test] fn a_build_a_submit_needs_is_wanted() { let standin = 0x7E57_B006usize; - let (started_tx, started) = mpsc::channel(); + let timeout = std::time::Duration::from_secs(10); + let (observe_tx, observe) = mpsc::channel(); + let (resume_tx, resume) = mpsc::channel(); submit(standin, true, Box::new(move || { - started_tx.send(()).unwrap(); - let t = std::time::Instant::now(); - while !build_is_wanted() && t.elapsed() < std::time::Duration::from_secs(10) { - std::thread::sleep(std::time::Duration::from_millis(1)); + if observe_tx.send(build_is_wanted()).is_err() || resume.recv_timeout(timeout).is_err() { + return 0; } - if build_is_wanted() { 0x5757 } else { 0 } + let _ = observe_tx.send(build_is_wanted()); + 0x5757 })); - started.recv().unwrap(); + let before = observe.recv_timeout(timeout).expect("pipeline worker did not start"); need_by_submit(standin); - let t = std::time::Instant::now(); - while is_pending(standin) && t.elapsed() < std::time::Duration::from_secs(15) { - std::thread::sleep(std::time::Duration::from_millis(5)); - } - assert_eq!(resolve(standin), 0x5757, "the build did not hear that a submit waits for it"); + resume_tx.send(()).expect("pipeline worker stopped early"); + let after = observe.recv_timeout(timeout).expect("pipeline worker did not report demand"); + // Only join after sampling: the wait can itself mark the build wanted. + assert_eq!(resolve_wait_for(standin, Some(timeout)), 0x5757); let _ = released(standin); + assert_eq!((before, after), (false, true), "demand should change only at need_by_submit"); } /// A worker's build hears that a bind waits for it (and only its own build does). ``` </details> AI use: OpenAI ChatGPT with GPT-6.2 Astra for source review and the proposed test patch.
KOLESNiii commented 2026-11-28 03:54:00 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-28T03:54:00Z.


merge-check
base: e429936c10
head: 93445592be
merge: conflicts (crates/xcl/src/hle/d3d12x/bind.rs, crates/xcl/src/hle/d3d12x/list_x.rs, crates/xcl/src/hle/d3d12x/pso_async.rs)
build: not run (the PR does not merge into this base)
tests: not run
review: not done (the merge has conflicts)
performance: not assessed
verdict: not yet: conflicts with main (crates/xcl/src/hle/d3d12x/bind.rs, crates/xcl/src/hle/d3d12x/list_x.rs, crates/xcl/src/hle/d3d12x/pso_async.rs); rebase onto main
hardware / tool and model: Windows 11 build 26300.9974, NVIDIA GeForce RTX 2070 SUPER 8 GB (driver 621.40, wave32 only), AMD Ryzen 5 3600XT; rustc 1.100.1 (20ddd0171 2026-11-25) x86_64-pc-windows-msvc, debug test profile. Claude Code: Claude Opus 5.5 (coordination, draft).

<!-- greyfinch-sync:ivall/xcl:comment:7233492060 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2579#issuecomment-7233492060). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-28T03:54:00Z. --- merge-check base: e429936c10a5b8aa09470ff99dfc8c8d3d8c56fd head: 93445592be144d697a0ba2323112a028502e8213 merge: conflicts (crates/xcl/src/hle/d3d12x/bind.rs, crates/xcl/src/hle/d3d12x/list_x.rs, crates/xcl/src/hle/d3d12x/pso_async.rs) build: not run (the PR does not merge into this base) tests: not run review: not done (the merge has conflicts) performance: not assessed verdict: not yet: conflicts with main (crates/xcl/src/hle/d3d12x/bind.rs, crates/xcl/src/hle/d3d12x/list_x.rs, crates/xcl/src/hle/d3d12x/pso_async.rs); rebase onto main hardware / tool and model: Windows 11 build 26300.9974, NVIDIA GeForce RTX 2070 SUPER 8 GB (driver 621.40, wave32 only), AMD Ryzen 5 3600XT; rustc 1.100.1 (20ddd0171 2026-11-25) x86_64-pc-windows-msvc, debug test profile. Claude Code: Claude Opus 5.5 (coordination, draft).
Royalflamejlh commented 2026-11-28 04:26:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Royalflamejlh on 2026-11-28T04:26:38Z.


Closing: main has this since #2959. A put-off call now marks its pipeline as needed by the submit at the moment it is put off (resolution.need_by_submit() passed to defer_with in list_x.rs), and want_bound / WANTED_AT_ONCE, which this change replaced, are gone.

AI use: Claude Code (Claude Opus 5.5) compared this change with main and wrote this comment.

<!-- greyfinch-sync:ivall/xcl:comment:7234042430 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2579#issuecomment-7234042430). Originally posted by [Royalflamejlh](https://github.com/Royalflamejlh) on 2026-11-28T04:26:38Z. --- Closing: `main` has this since #2959. A put-off call now marks its pipeline as needed by the submit at the moment it is put off (`resolution.need_by_submit()` passed to `defer_with` in `list_x.rs`), and `want_bound` / `WANTED_AT_ONCE`, which this change replaced, are gone. **AI use:** Claude Code (Claude Opus 5.5) compared this change with `main` and wrote this comment.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2569
No description provided.