D3D12.X: with XCL_PSO_WAIT_MS set, a put-off dispatch waits for its pipeline at the submit instead of being dropped #2537

Open
grahamster2 wants to merge 1 commit from upstream-pr/2547 into main
grahamster2 commented 2026-11-25 22:36:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by grahamster2 on 2026-11-25T22:36:33Z.


With XCL_PSO_WAIT_MS set, a dispatch put off to the submit (#2118) can be left out for good while the list's labels still fire. This makes the submit wait for the put-off call's pipeline, with a long bound and a logged fallback. Part of #505 and #1452. It does not get the retail title past its world start: in the one world run below the title still stops presenting, at about 72 s.

A Dispatch, or an ExecuteIndirect that dispatches, whose pipeline is still being built gets a segment of its own and is recorded at ExecuteCommandLists / KickoffX (list_x::record_deferred). That recording went through resolve_wait, with the same budget a bind has while the title records. A pipeline that a bind had already found late got the stand-in at once, and one still building got it after the budget. Either way the dispatch was counted as skipped and dropped, and nothing said so beyond the skip count. Its segment sits between the list's other segments, so the Write64 labels, EOP writes and fence signals after it still ran: the title read the work as done, but the dispatch's UAV outputs, counters and indirect argument buffers were never written. #891 made skipping opt-in for binds as the title records ("skipped dispatches leave their outputs unwritten") because the title's watchdog ends it when its main thread stands still for about 30 s.

At the submit the waiting thread counts as held (title_held). That stops two clocks: kernelx::Sleep does not count the time, and the GPU-wait watchdog does not release waits meanwhile. It does not stop every clock a title can read, so a long wait at the submit can still reach the title's own watchdog. The change therefore bounds the wait, and the bound is the escape.

What the submit does now (pso_async::wait_for_submit, called by record_deferred before it records each put-off call)

  • XCL_PSO_WAIT_MS unset: it waits until the pipeline is built, as the submit already did.
  • XCL_PSO_WAIT_MS set:
    • The build is left to the workers for the length of the budget first, as a bind leaves it, so big compiles keep their turns on the workers.
    • A build no worker has started by then is built on the submitting thread, as without the budget. So a submit never waits for a free worker.
    • A build a worker has started is waited for at most 30 s (SUBMIT_WAIT_MOST, the time #891 measured the title's watchdog allowing). Past that the call goes on with the stand-in as before, with a WARN deferred dispatch skipped after waiting 30 s for its pipeline (N so far) and a count of its own.
  • late no longer matters at the submit. XCL_PSO_WAIT_MS still bounds binds while the title records.
  • Only compute pipelines are waited for, as resolve_for_bind waits only for those.
  • A worker's build that panics now ends as a failed build (catch_unwind around the job). Before, it left done unset and whoever waited for it waited for good. A lock the job held when it panicked can still be left poisoned.

From reading the code, not from a test: a build that fails still gets the stand-in and its dispatch is skipped, and a program binds do not wait for (XCL_PSO_IMAGE_SKIP=1) is still left out. A call that cannot be put off (defer fails: bundle, predication, segments used up, no allocator) still binds with the budget where it is.

dispatch_dropped in record_deferred is not changed. It counts the two cases where the put-off call cannot be recorded at all: the list's own allocator is gone, or the segment's Reset failed. Waiting does not help there, because the call has already been taken out of the title's list and there is no PC list to record it on.

What is in it

  • crates/xcl/src/hle/d3d12x/pso_async.rs: wait_for_submit, SUBMIT_WAIT_MOST and its counter, catch_unwind in a worker's build, and test-only per-thread overrides of the budget and the bound. Tests a_submit_builds_a_late_pipeline_no_worker_has_started, a_submit_waits_for_a_build_on_a_worker_no_longer_than_its_bound, a_build_that_panics_on_a_worker_ends_as_failed.
  • crates/xcl/src/hle/d3d12x/bind.rs: wait_for_bound (the pipeline a segment has bound); test helper set_args_for_test.
  • crates/xcl/src/hle/d3d12x/list_x.rs: record_deferred waits through wait_for_bound before it records the call; test a_put_off_dispatch_runs_at_the_submit_when_its_build_outlasts_the_wait_budget.

Tested

  • NVIDIA GeForce RTX 3080 (driver 32.0.16.1088), AMD Ryzen 5 7600X, Windows 11 Pro 26200, rustc 1.94.0, debug for the tests, release for the title runs.
  • cargo test -p xcl --lib -- --test-threads=4 on the head commit: 1302 passed, 0 failed, 26 ignored. 24 SKIPPED lines, all no wave64 (or wave32 per-lane forms refused) on this card; the four new tests ran.
  • Test isolation: the new put-off dispatch test now forgets its allocator in alloc_pool, and mid_list_write64_wait64_split_avoids_cycle_and_reuses_spares and cross_queue_cycle_and_same_queue_fifo_do_not_deadlock forget theirs before use, because another test's stale allocator type at a reused address made them fail in a whole-module run. cargo test -p xcl --lib hle::d3d12x::list_x::tests:: -- --test-threads=4, 3 sets of 100 runs on the head: 7, 2 and 6 failed runs, none in those two tests (main e1d84b7, 2 sets: 2 and 3 failed runs, mid_list_... 1 time and cross_queue_cycle_... 2 times). The other failures are the module's flaky tests: a_dispatch_with_a_pipeline_still_building_waits_at_the_submit (also on main), and a cluster of cpu_watchdog_..., cpu_cycle_break_... and a_reset_while_the_last_submit_runs_... failing together in one run (6 of the 300 runs on the head; on main the same cluster, without a_reset_while_..., came up once in 200). Not looked into. Full cargo test -p xcl --lib on the head: 1302 passed, 0 failed, 26 ignored, with and without --test-threads=4.
  • a_put_off_dispatch_runs_at_the_submit_when_its_build_outlasts_the_wait_budget (GPU): a translated console compute program stores a constant through a pointer in its argument table. Its stand-in's build ends 400 ms into the submit, the budget is 50 ms, and a bind has already found it late. The dispatch is put off, a Write64BitValueBottomOfPipeX follows it in the same list, and the list runs on a queue. With the change both the store and the label reach memory. With the wait_for_bound call removed it fails: the put-off dispatch was left out (the submit waited 487.1µs), while the label was written.
  • a_submit_builds_a_late_pipeline_no_worker_has_started: with every worker busy and a 30 ms budget, the submit's wait for a late pipeline builds it on the waiting thread. With wait_for_submit doing what the submit did before (resolve_wait), it fails: the submit's wait ended without the pipeline (it got the stand-in).
  • a_submit_waits_for_a_build_on_a_worker_no_longer_than_its_bound: a worker's build that does not end, a 20 ms budget and a 300 ms bound. The submit returns after the bound, counts it and logs the WARN. With the bound raised to 8 s it fails on the time it waited.
  • a_build_that_panics_on_a_worker_ends_as_failed: without the catch_unwind the build never ends (the test fails after 10 s).
  • The retail title: one 280 s world run, made on the previous head 89a8267. That head had the same change without the 30 s bound, the compute check and the catch_unwind. It used the world start settings of the earlier runs (XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_DRED=1 XCL_PSO_WAIT_MS=50 XCL_NETWORK=0, A pressed at 14, 17, 21, 25, 31 s, cold driver cache and a seeded DXIL cache). It is compared with one earlier run of main 6d12f58 with the same settings (e1d84b7, this branch's base, differs from it only in README.md). One run each. The thread dumps show no title thread in record_deferred or in a bind, so this run is context for where the title stands, not evidence for the change.
main 6d12f58 89a8267
last 2 s window with a present 68 s 72 s
presents in the run 1383 1395
dispatches after 96 s 0 99, in 27 of the 2 s windows up to 266 s
draws after 96 s 0 0
dispatches skipped (last count logged) 6803 5347
binds past the 50 ms budget (log lines) 257 or more 257 or more
device removals 0 0
peak commit 31455 MB 32721 MB
  • The title still stalls. Presents per 2 s on 89a8267, from 2 s to 72 s: 0 16 60 54 39 43 60 56 59 60 60 61 60 60 57 46 46 60 60 60 60 45 58 33 1 4 3 0 2 6 23 42 56 23 11 11; then 0 to the end of the run. On main: 0 15 61 54 40 41 60 56 60 60 60 60 60 60 56 45 43 60 60 61 60 44 59 32 6 4 6 0 7 50 48 31 11 13; then 0.
  • Thread dumps at 100, 185 and 269 s: no title thread was waiting for a pipeline, and no xcl-pso worker was building at 100 or 185 s (2 of 11 at 269 s). From 79 s on, XCL logged Wait64BitValueX waits bridged to queue.Wait with no producing queue (prod=qNone), the pattern of #1452.
  • Most of the 5347 skipped dispatches were counted within one second (from 77.8 s to 78.8 s the count went from 64 to 4096), on one title thread, with Dispatch with a pipeline that has no translated console shader warnings. The log does not say which caller they came from, and no failed or rejected pipeline was logged. Binds of late pipelines that could not be put off fit the timing; this change leaves those as they were.

Regression run
Default settings (XCL_PSO_WAIT_MS unset), so these runs check that nothing else changed. They do not exercise the budget or the bound.

main:

xcl-smoke v1
commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea
gpu: NVIDIA GeForce RTX 3080
title: 5d6132ca
seconds: 60
exit: 0x0
frames shown: 1551 (PresentX 1551)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14632 MB

PR:

xcl-smoke v1
commit: 60349e51011d8fd4295c00776b2617b229b32d27
gpu: NVIDIA GeForce RTX 3080
title: 5d6132ca
seconds: 60
exit: 0x0
frames shown: 1533 (PresentX 1533)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14587 MB

Not tested

  • The whole workspace suite (cargo test --workspace); only the xcl lib tests ran.
  • AMD and Intel GPUs, and a GPU with native 64-lane waves.
  • A world run of this head, more than one world run, and a world run with XCL_PSO_WAIT_MS unset. No world run entered record_deferred with a pipeline still building.
  • How long a submit is held when several of its put-off calls have slow builds. The 30 s bound is per pipeline, not per submit, so a submit with several can be held longer than 30 s.
  • ExecuteIndirect and KickoffX at the submit with a pipeline built after the budget (the tests use Dispatch through record_deferred).
  • The failed-build and XCL_PSO_IMAGE_SKIP cases at the submit (read from the code, not tested).
  • Which path the remaining skipped dispatches of the world run take. Calls that cannot be put off still skip once their pipeline is late. Whether those should wait too, or whether more calls should be put off, is a separate question.

AI use

  • Claude Code (Claude Opus 5.5) wrote the change, the tests and this description, and ran the tests and the title runs.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ivall/xcl:issue:5500366503 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2547). Originally posted by [grahamster2](https://github.com/grahamster2) on 2026-11-25T22:36:33Z. --- With `XCL_PSO_WAIT_MS` set, a dispatch put off to the submit (#2118) can be left out for good while the list's labels still fire. This makes the submit wait for the put-off call's pipeline, with a long bound and a logged fallback. Part of #505 and #1452. It does not get the retail title past its world start: in the one world run below the title still stops presenting, at about 72 s. A `Dispatch`, or an `ExecuteIndirect` that dispatches, whose pipeline is still being built gets a segment of its own and is recorded at `ExecuteCommandLists` / `KickoffX` (`list_x::record_deferred`). That recording went through `resolve_wait`, with the same budget a bind has while the title records. A pipeline that a bind had already found `late` got the stand-in at once, and one still building got it after the budget. Either way the dispatch was counted as skipped and dropped, and nothing said so beyond the skip count. Its segment sits between the list's other segments, so the `Write64` labels, EOP writes and fence signals after it still ran: the title read the work as done, but the dispatch's UAV outputs, counters and indirect argument buffers were never written. #891 made skipping opt-in for binds as the title records ("skipped dispatches leave their outputs unwritten") because the title's watchdog ends it when its main thread stands still for about 30 s. At the submit the waiting thread counts as held (`title_held`). That stops two clocks: `kernelx::Sleep` does not count the time, and the GPU-wait watchdog does not release waits meanwhile. It does not stop every clock a title can read, so a long wait at the submit can still reach the title's own watchdog. The change therefore bounds the wait, and the bound is the escape. **What the submit does now** (`pso_async::wait_for_submit`, called by `record_deferred` before it records each put-off call) - `XCL_PSO_WAIT_MS` unset: it waits until the pipeline is built, as the submit already did. - `XCL_PSO_WAIT_MS` set: - The build is left to the workers for the length of the budget first, as a bind leaves it, so big compiles keep their turns on the workers. - A build no worker has started by then is built on the submitting thread, as without the budget. So a submit never waits for a free worker. - A build a worker has started is waited for at most 30 s (`SUBMIT_WAIT_MOST`, the time #891 measured the title's watchdog allowing). Past that the call goes on with the stand-in as before, with a WARN `deferred dispatch skipped after waiting 30 s for its pipeline (N so far)` and a count of its own. - `late` no longer matters at the submit. `XCL_PSO_WAIT_MS` still bounds binds while the title records. - Only compute pipelines are waited for, as `resolve_for_bind` waits only for those. - A worker's build that panics now ends as a failed build (`catch_unwind` around the job). Before, it left `done` unset and whoever waited for it waited for good. A lock the job held when it panicked can still be left poisoned. From reading the code, not from a test: a build that fails still gets the stand-in and its dispatch is skipped, and a program binds do not wait for (`XCL_PSO_IMAGE_SKIP=1`) is still left out. A call that cannot be put off (`defer` fails: bundle, predication, segments used up, no allocator) still binds with the budget where it is. `dispatch_dropped` in `record_deferred` is not changed. It counts the two cases where the put-off call cannot be recorded at all: the list's own allocator is gone, or the segment's `Reset` failed. Waiting does not help there, because the call has already been taken out of the title's list and there is no PC list to record it on. **What is in it** - `crates/xcl/src/hle/d3d12x/pso_async.rs`: `wait_for_submit`, `SUBMIT_WAIT_MOST` and its counter, `catch_unwind` in a worker's build, and test-only per-thread overrides of the budget and the bound. Tests `a_submit_builds_a_late_pipeline_no_worker_has_started`, `a_submit_waits_for_a_build_on_a_worker_no_longer_than_its_bound`, `a_build_that_panics_on_a_worker_ends_as_failed`. - `crates/xcl/src/hle/d3d12x/bind.rs`: `wait_for_bound` (the pipeline a segment has bound); test helper `set_args_for_test`. - `crates/xcl/src/hle/d3d12x/list_x.rs`: `record_deferred` waits through `wait_for_bound` before it records the call; test `a_put_off_dispatch_runs_at_the_submit_when_its_build_outlasts_the_wait_budget`. **Tested** - NVIDIA GeForce RTX 3080 (driver 32.0.16.1088), AMD Ryzen 5 7600X, Windows 11 Pro 26200, rustc 1.94.0, debug for the tests, release for the title runs. - `cargo test -p xcl --lib -- --test-threads=4` on the head commit: 1302 passed, 0 failed, 26 ignored. 24 SKIPPED lines, all `no wave64` (or wave32 per-lane forms refused) on this card; the four new tests ran. - Test isolation: the new put-off dispatch test now forgets its allocator in `alloc_pool`, and `mid_list_write64_wait64_split_avoids_cycle_and_reuses_spares` and `cross_queue_cycle_and_same_queue_fifo_do_not_deadlock` forget theirs before use, because another test's stale allocator type at a reused address made them fail in a whole-module run. `cargo test -p xcl --lib hle::d3d12x::list_x::tests:: -- --test-threads=4`, 3 sets of 100 runs on the head: 7, 2 and 6 failed runs, none in those two tests (main `e1d84b7`, 2 sets: 2 and 3 failed runs, `mid_list_...` 1 time and `cross_queue_cycle_...` 2 times). The other failures are the module's flaky tests: `a_dispatch_with_a_pipeline_still_building_waits_at_the_submit` (also on main), and a cluster of `cpu_watchdog_...`, `cpu_cycle_break_...` and `a_reset_while_the_last_submit_runs_...` failing together in one run (6 of the 300 runs on the head; on main the same cluster, without `a_reset_while_...`, came up once in 200). Not looked into. Full `cargo test -p xcl --lib` on the head: 1302 passed, 0 failed, 26 ignored, with and without `--test-threads=4`. - `a_put_off_dispatch_runs_at_the_submit_when_its_build_outlasts_the_wait_budget` (GPU): a translated console compute program stores a constant through a pointer in its argument table. Its stand-in's build ends 400 ms into the submit, the budget is 50 ms, and a bind has already found it late. The dispatch is put off, a `Write64BitValueBottomOfPipeX` follows it in the same list, and the list runs on a queue. With the change both the store and the label reach memory. With the `wait_for_bound` call removed it fails: `the put-off dispatch was left out (the submit waited 487.1µs)`, while the label was written. - `a_submit_builds_a_late_pipeline_no_worker_has_started`: with every worker busy and a 30 ms budget, the submit's wait for a late pipeline builds it on the waiting thread. With `wait_for_submit` doing what the submit did before (`resolve_wait`), it fails: `the submit's wait ended without the pipeline` (it got the stand-in). - `a_submit_waits_for_a_build_on_a_worker_no_longer_than_its_bound`: a worker's build that does not end, a 20 ms budget and a 300 ms bound. The submit returns after the bound, counts it and logs the WARN. With the bound raised to 8 s it fails on the time it waited. - `a_build_that_panics_on_a_worker_ends_as_failed`: without the `catch_unwind` the build never ends (the test fails after 10 s). - The retail title: one 280 s world run, made on the previous head `89a8267`. That head had the same change without the 30 s bound, the compute check and the `catch_unwind`. It used the world start settings of the earlier runs (`XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_DRED=1 XCL_PSO_WAIT_MS=50 XCL_NETWORK=0`, A pressed at 14, 17, 21, 25, 31 s, cold driver cache and a seeded DXIL cache). It is compared with one earlier run of `main` `6d12f58` with the same settings (`e1d84b7`, this branch's base, differs from it only in `README.md`). One run each. The thread dumps show no title thread in `record_deferred` or in a bind, so this run is context for where the title stands, not evidence for the change. | | main `6d12f58` | `89a8267` | |---|---|---| | last 2 s window with a present | 68 s | 72 s | | presents in the run | 1383 | 1395 | | dispatches after 96 s | 0 | 99, in 27 of the 2 s windows up to 266 s | | draws after 96 s | 0 | 0 | | dispatches skipped (last count logged) | 6803 | 5347 | | binds past the 50 ms budget (log lines) | 257 or more | 257 or more | | device removals | 0 | 0 | | peak commit | 31455 MB | 32721 MB | - **The title still stalls.** Presents per 2 s on `89a8267`, from 2 s to 72 s: 0 16 60 54 39 43 60 56 59 60 60 61 60 60 57 46 46 60 60 60 60 45 58 33 1 4 3 0 2 6 23 42 56 23 11 11; then 0 to the end of the run. On `main`: 0 15 61 54 40 41 60 56 60 60 60 60 60 60 56 45 43 60 60 61 60 44 59 32 6 4 6 0 7 50 48 31 11 13; then 0. - Thread dumps at 100, 185 and 269 s: no title thread was waiting for a pipeline, and no `xcl-pso` worker was building at 100 or 185 s (2 of 11 at 269 s). From 79 s on, XCL logged `Wait64BitValueX` waits bridged to `queue.Wait` with no producing queue (`prod=qNone`), the pattern of #1452. - Most of the 5347 skipped dispatches were counted within one second (from 77.8 s to 78.8 s the count went from 64 to 4096), on one title thread, with `Dispatch with a pipeline that has no translated console shader` warnings. The log does not say which caller they came from, and no failed or rejected pipeline was logged. Binds of late pipelines that could not be put off fit the timing; this change leaves those as they were. **Regression run** Default settings (`XCL_PSO_WAIT_MS` unset), so these runs check that nothing else changed. They do not exercise the budget or the bound. main: ``` xcl-smoke v1 commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea gpu: NVIDIA GeForce RTX 3080 title: 5d6132ca seconds: 60 exit: 0x0 frames shown: 1551 (PresentX 1551) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14632 MB ``` PR: ``` xcl-smoke v1 commit: 60349e51011d8fd4295c00776b2617b229b32d27 gpu: NVIDIA GeForce RTX 3080 title: 5d6132ca seconds: 60 exit: 0x0 frames shown: 1533 (PresentX 1533) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14587 MB ``` **Not tested** - The whole workspace suite (`cargo test --workspace`); only the `xcl` lib tests ran. - AMD and Intel GPUs, and a GPU with native 64-lane waves. - A world run of this head, more than one world run, and a world run with `XCL_PSO_WAIT_MS` unset. No world run entered `record_deferred` with a pipeline still building. - How long a submit is held when several of its put-off calls have slow builds. The 30 s bound is per pipeline, not per submit, so a submit with several can be held longer than 30 s. - `ExecuteIndirect` and `KickoffX` at the submit with a pipeline built after the budget (the tests use `Dispatch` through `record_deferred`). - The failed-build and `XCL_PSO_IMAGE_SKIP` cases at the submit (read from the code, not tested). - Which path the remaining skipped dispatches of the world run take. Calls that cannot be put off still skip once their pipeline is late. Whether those should wait too, or whether more calls should be put off, is a separate question. **AI use** - Claude Code (Claude Opus 5.5) wrote the change, the tests and this description, and ran the tests and the title runs. _AI-assisted (Claude Code)._
DarkPanda69 commented 2026-11-25 23:09:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-25T22:40:40Z.


Update for head 60349e5: rerun on main b49be18, same filters, cards and --nocapture. pso_async 17 passed, put_off_dispatch 1 passed, a_submit_ 3 passed on both the RX 9070 XT and the RTX 3060, 0 failed, no SKIPPED.

AMD run on RDNA4, a GPU with native 64-lane waves (listed as untested), plus an RTX 3060: the new tests pass on both cards, with no skips.

Head ec538f1 applied on main e1d84b7, debug, Windows 11 Pro 26200, card chosen with XCL_ADAPTER, each filter run with --nocapture so that skips show:

cargo test -p xcl --lib -- <filter> RX 9070 XT (RDNA4, 32.0.32029.2010) RTX 3060 (32.0.16.1088)
pso_async 17 passed, 0 failed, no SKIPPED 17 passed, 0 failed, no SKIPPED
put_off_dispatch (a_put_off_dispatch_runs_at_the_submit_when_its_build_outlasts_the_wait_budget) ok, no SKIPPED ok, no SKIPPED
a_submit_ (the 3 submit tests) 3 passed 3 passed

The put-off dispatch test passed its no GPU / no wave64 / no unified memory checks on both cards and made its CreateComputePipelineState through the backend hook on each. The panicked at pso_async.rs:1014 line in the output comes from a_build_that_panics_on_a_worker_ends_as_failed, which passes.

Which wave width the runtime picked for the test's 64-thread program on the RX 9070 XT is not checked by the test or by this run.

Not tested: cargo test --workspace, a world run, Intel.
AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7176657148 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2547#issuecomment-7176657148). Originally posted by [DarkPanda69](https://github.com/DarkPanda69) on 2026-11-25T22:40:40Z. --- **Update for head `60349e5`:** rerun on `main` `b49be18`, same filters, cards and `--nocapture`. `pso_async` 17 passed, `put_off_dispatch` 1 passed, `a_submit_` 3 passed on both the RX 9070 XT and the RTX 3060, 0 failed, no SKIPPED. AMD run on RDNA4, a GPU with native 64-lane waves (listed as untested), plus an RTX 3060: the new tests pass on both cards, with no skips. Head `ec538f1` applied on `main` `e1d84b7`, debug, Windows 11 Pro 26200, card chosen with `XCL_ADAPTER`, each filter run with `--nocapture` so that skips show: | `cargo test -p xcl --lib -- <filter>` | RX 9070 XT (RDNA4, 32.0.32029.2010) | RTX 3060 (32.0.16.1088) | |---|---|---| | `pso_async` | 17 passed, 0 failed, no SKIPPED | 17 passed, 0 failed, no SKIPPED | | `put_off_dispatch` (`a_put_off_dispatch_runs_at_the_submit_when_its_build_outlasts_the_wait_budget`) | ok, no SKIPPED | ok, no SKIPPED | | `a_submit_` (the 3 submit tests) | 3 passed | 3 passed | The put-off dispatch test passed its `no GPU` / `no wave64` / `no unified memory` checks on both cards and made its `CreateComputePipelineState` through the backend hook on each. The `panicked at pso_async.rs:1014` line in the output comes from `a_build_that_panics_on_a_worker_ends_as_failed`, which passes. Which wave width the runtime picked for the test's 64-thread program on the RX 9070 XT is not checked by the test or by this run. Not tested: `cargo test --workspace`, a world run, Intel. AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
DavidM1911 commented 2026-11-25 23:09:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T22:46:55Z.


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

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7176779735 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2547#issuecomment-7176779735). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T22:46:55Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
emirduran707 commented 2026-11-25 23:09:19 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by emirduran707 on 2026-11-25T22:52:01Z.


Independent AMD RDNA4 (native wave64) verification of exact PR head ec538f118a185eda91bdd7da6e63e6d0d40ed5df on Windows 11 Pro 26300 (AMD Radeon RX 9060 XT 16 GB, driver 32.0.31044.16, Ryzen 5 5600, Rust 1.100.0 MSVC, DXC 1.9.2602.17).

Tested

  • cargo build --workspace (debug): passed (0 errors).
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 1425 passed, 2 failed, 46 ignored (8 SKIPPED: 6 per-lane DXIL forms refused by host adapter/driver, 1 heap_window_out_of_memory_falls_back_to_the_switch_form no heap windows, 1 pso_measurement_compiles_an_exact_synthetic_record Windows Developer Mode off).
    • The 4 new tests all passed on this machine:
      • hle::d3d12x::list_x::tests::a_put_off_dispatch_runs_at_the_submit_when_its_build_outlasts_the_wait_budget
      • hle::d3d12x::pso_async::used_tests::a_build_that_panics_on_a_worker_ends_as_failed
      • hle::d3d12x::pso_async::used_tests::a_submit_builds_a_late_pipeline_no_worker_has_started
      • hle::d3d12x::pso_async::used_tests::a_submit_waits_for_a_build_on_a_worker_no_longer_than_its_bound
    • The 2 failures (gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 and fuzz_validate_and_gpu_3) are pre-existing on unmodified main on this RX 9060 XT / driver 32.0.31044.16.
  • cargo build --release -p xcl + 60 s retail-title smoke test (scripts/smoke.ps1, offline):
xcl-smoke v1
commit: ec538f118a185eda91bdd7da6e63e6d0d40ed5df
gpu: AMD Radeon RX 9060 XT
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1583 (PresentX 1583)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13931 MB

(Compare against main 68a284a on this machine: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.)

Not tested

  • Retail-title smoke with XCL_PSO_WAIT_MS explicitly set to a non-default value.
  • NVIDIA / Intel GPUs, Linux / Wine.

AI use

  • Verification run and report prepared with Antigravity (Gemini 4 Neon); all build, test, and smoke results are from live runs on this machine.
<!-- greyfinch-sync:ivall/xcl:comment:7176878075 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2547#issuecomment-7176878075). Originally posted by [emirduran707](https://github.com/emirduran707) on 2026-11-25T22:52:01Z. --- Independent AMD RDNA4 (native wave64) verification of exact PR head `ec538f118a185eda91bdd7da6e63e6d0d40ed5df` on Windows 11 Pro 26300 (AMD Radeon RX 9060 XT 16 GB, driver `32.0.31044.16`, Ryzen 5 5600, Rust 1.100.0 MSVC, DXC `1.9.2602.17`). **Tested** - `cargo build --workspace` (debug): passed (`0` errors). - `cargo test --workspace --no-fail-fast -- --test-threads=4`: `1425 passed, 2 failed, 46 ignored` (`8 SKIPPED`: 6 per-lane DXIL forms refused by host adapter/driver, 1 `heap_window_out_of_memory_falls_back_to_the_switch_form` no heap windows, 1 `pso_measurement_compiles_an_exact_synthetic_record` Windows Developer Mode off). - The 4 new tests all passed on this machine: - `hle::d3d12x::list_x::tests::a_put_off_dispatch_runs_at_the_submit_when_its_build_outlasts_the_wait_budget` - `hle::d3d12x::pso_async::used_tests::a_build_that_panics_on_a_worker_ends_as_failed` - `hle::d3d12x::pso_async::used_tests::a_submit_builds_a_late_pipeline_no_worker_has_started` - `hle::d3d12x::pso_async::used_tests::a_submit_waits_for_a_build_on_a_worker_no_longer_than_its_bound` - The 2 failures (`gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` and `fuzz_validate_and_gpu_3`) are pre-existing on unmodified `main` on this RX 9060 XT / driver `32.0.31044.16`. - `cargo build --release -p xcl` + 60 s retail-title smoke test (`scripts/smoke.ps1`, offline): ``` xcl-smoke v1 commit: ec538f118a185eda91bdd7da6e63e6d0d40ed5df gpu: AMD Radeon RX 9060 XT title: 21222967 seconds: 60 exit: 0x0 frames shown: 1583 (PresentX 1583) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13931 MB ``` (Compare against `main` `68a284a` on this machine: `1573 frames, 14420 MB peak, 0 device removals, 0 crashes`.) **Not tested** - Retail-title smoke with `XCL_PSO_WAIT_MS` explicitly set to a non-default value. - NVIDIA / Intel GPUs, Linux / Wine. **AI use** - Verification run and report prepared with Antigravity (Gemini 4 Neon); all build, test, and smoke results are from live runs on this machine.
fromthemoonx commented 2026-11-26 00:05:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-11-25T23:18:37Z.


Rerun on the new head 60349e5: mid_list_write64_wait64_split_avoids_cycle_and_reuses_spares no longer fails in parallel here (0 in 200 runs, was 15 in 200), and cross_queue_cycle_and_same_queue_fifo_do_not_deadlock fails less (3 in 200, was 9 in 200). Thanks for tracing the stale type to cpu_cycle_break_….

result
cargo test --workspace --no-fail-fast -- --test-threads=4, 60349e5 merged onto main b49be18 (clean) 1439 passed, 0 failed, 47 ignored; 25 SKIPPED lines
hle::d3d12x::list_x::tests::, --test-threads=4, 2 × 100 runs 11 + 3 failed runs: a_dispatch_with_a_pipeline_still_building_waits_at_the_submit 11× (as on main), cross_queue_cycle_… 3× (all in the first 100; I did not keep their messages, earlier ones were E_OUTOFMEMORY), mid_list_… 0×

First run, on ec538f1: Whole suite on NVIDIA passed; the new tests passed 30 of 30 alone, but in parallel two older list_x tests became flakier.

Tested: ec538f1 (its base is main e1d84b7, so head = merged). RTX 3060 12 GB (driver 610.88), Ryzen 7 5700X, Windows 11 Pro 26300, Rust 1.100.0 MSVC, debug.

result
cargo test --workspace --no-fail-fast -- --test-threads=4 1427 passed, 0 failed, 46 ignored; 25 SKIPPED lines; the 4 new tests ran and passed
each new test alone, 30 runs (the put-off dispatch test ~1.2 s a run) 30 of 30 each
hle::d3d12x::pso_async:: (17 tests), --test-threads=8, 30 runs 30 of 30
hle::d3d12x::list_x::tests::, --test-threads=4, 100 runs: main 11 failed runs, all in tests that flake on main already (a_dispatch_with_a_pipeline_still_building_waits_at_the_submit 11×, rotating_queue_… 1×)
same, this PR, 2 × 100 runs 17 + 17 failed runs; besides those two, mid_list_write64_wait64_split_avoids_cycle_and_reuses_spares 15× (E_INVALIDARG from the reset_fn(wrap_c, a_comp…) at list_x.rs:7290) and cross_queue_cycle_and_same_queue_fifo_do_not_deadlock 9× (E_OUTOFMEMORY at list_x.rs:6256)
same, this PR with --skip a_put_off_dispatch_runs_at_the_submit, 100 runs 13 failed runs, only the two main ones
same, this PR with #2333's s.types.insert(raw, ty) in alloc_pool::created_on (scratch), 100 runs 13 failed runs: the two main ones, cross_queue_cycle_… once (E_OUTOFMEMORY) and cross_queue_wait64_… once; no mid_list_…

So the runtime change looks fine: without the new test, the PR's list_x runs fail like main's. The new test seems to leave a stale allocator type in alloc_pool, the cause @ivall found in #2333, and mid_list_… then resets a compute list on a direct backing allocator. Paired with only the new test, neither older test fails (40 runs each, 2 threads); it takes the whole module running alongside. Once #2333 is merged that part should go away. The cross_queue_… out-of-memory failures look like several GPU tests at once.

Not tested: a world run with XCL_PSO_WAIT_MS, a release build, AMD (covered above).

AI use: Claude Code (Claude Opus 5.5) ran the suite, the repeats and the scratch change, and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7177390833 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2547#issuecomment-7177390833). Originally posted by [fromthemoonx](https://github.com/fromthemoonx) on 2026-11-25T23:18:37Z. --- **Rerun on the new head `60349e5`: `mid_list_write64_wait64_split_avoids_cycle_and_reuses_spares` no longer fails in parallel here (0 in 200 runs, was 15 in 200), and `cross_queue_cycle_and_same_queue_fifo_do_not_deadlock` fails less (3 in 200, was 9 in 200).** Thanks for tracing the stale type to `cpu_cycle_break_…`. | | result | |---|---| | `cargo test --workspace --no-fail-fast -- --test-threads=4`, `60349e5` merged onto `main` `b49be18` (clean) | 1439 passed, 0 failed, 47 ignored; 25 `SKIPPED` lines | | `hle::d3d12x::list_x::tests::`, `--test-threads=4`, 2 × 100 runs | 11 + 3 failed runs: `a_dispatch_with_a_pipeline_still_building_waits_at_the_submit` 11× (as on `main`), `cross_queue_cycle_…` 3× (all in the first 100; I did not keep their messages, earlier ones were `E_OUTOFMEMORY`), `mid_list_…` 0× | --- *First run, on `ec538f1`:* Whole suite on NVIDIA passed; the new tests passed 30 of 30 alone, but in parallel two older `list_x` tests became flakier. **Tested:** `ec538f1` (its base is `main` `e1d84b7`, so head = merged). RTX 3060 12 GB (driver 610.88), Ryzen 7 5700X, Windows 11 Pro 26300, Rust 1.100.0 MSVC, debug. | | result | |---|---| | `cargo test --workspace --no-fail-fast -- --test-threads=4` | 1427 passed, 0 failed, 46 ignored; 25 `SKIPPED` lines; the 4 new tests ran and passed | | each new test alone, 30 runs (the put-off dispatch test ~1.2 s a run) | 30 of 30 each | | `hle::d3d12x::pso_async::` (17 tests), `--test-threads=8`, 30 runs | 30 of 30 | | `hle::d3d12x::list_x::tests::`, `--test-threads=4`, 100 runs: `main` | 11 failed runs, all in tests that flake on `main` already (`a_dispatch_with_a_pipeline_still_building_waits_at_the_submit` 11×, `rotating_queue_…` 1×) | | same, this PR, 2 × 100 runs | 17 + 17 failed runs; besides those two, `mid_list_write64_wait64_split_avoids_cycle_and_reuses_spares` 15× (`E_INVALIDARG` from the `reset_fn(wrap_c, a_comp…)` at `list_x.rs:7290`) and `cross_queue_cycle_and_same_queue_fifo_do_not_deadlock` 9× (`E_OUTOFMEMORY` at `list_x.rs:6256`) | | same, this PR with `--skip a_put_off_dispatch_runs_at_the_submit`, 100 runs | 13 failed runs, only the two `main` ones | | same, this PR with #2333's `s.types.insert(raw, ty)` in `alloc_pool::created_on` (scratch), 100 runs | 13 failed runs: the two `main` ones, `cross_queue_cycle_…` once (`E_OUTOFMEMORY`) and `cross_queue_wait64_…` once; no `mid_list_…` | So the runtime change looks fine: without the new test, the PR's `list_x` runs fail like `main`'s. The new test seems to leave a stale allocator type in `alloc_pool`, the cause @ivall found in #2333, and `mid_list_…` then resets a compute list on a direct backing allocator. Paired with only the new test, neither older test fails (40 runs each, 2 threads); it takes the whole module running alongside. Once #2333 is merged that part should go away. The `cross_queue_…` out-of-memory failures look like several GPU tests at once. **Not tested:** a world run with `XCL_PSO_WAIT_MS`, a release build, AMD (covered above). **AI use:** Claude Code (Claude Opus 5.5) ran the suite, the repeats and the scratch change, and wrote this report.
SlopTart commented 2026-11-26 00:05:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-25T23:33:30Z.


Tested: current PR head merged onto current origin/main (clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo target x86_64-pc-windows-gnu run under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29).

gpu_ suite (cold cache): 165 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR.
Targeted run of the four new deferred-dispatch tests (a_submit_builds_a_late_pipeline_no_worker_has_started, a_submit_waits_for_a_build_on_a_worker_no_longer_than_its_bound, a_put_off_dispatch_runs_at_the_submit_when_its_build_outlasts_the_wait_budget, a_build_that_panics_on_a_worker_ends_as_failed): 4 passed, including the timing-sensitive wait-bound ones.

Not tested: retail titles (no title data on this lane, counts only).

AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7177729012 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2547#issuecomment-7177729012). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-25T23:33:30Z. --- **Tested**: current PR head merged onto current `origin/main` (clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo target `x86_64-pc-windows-gnu` run under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29). `gpu_` suite (cold cache): 165 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR. Targeted run of the four new deferred-dispatch tests (`a_submit_builds_a_late_pipeline_no_worker_has_started`, `a_submit_waits_for_a_build_on_a_worker_no_longer_than_its_bound`, `a_put_off_dispatch_runs_at_the_submit_when_its_build_outlasts_the_wait_budget`, `a_build_that_panics_on_a_worker_ends_as_failed`): 4 passed, including the timing-sensitive wait-bound ones. **Not tested**: retail titles (no title data on this lane, counts only). **AI use**: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.
grahamster2 commented 2026-11-26 03:06:34 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by grahamster2 on 2026-11-26T02:39:22Z.


Thanks for the runs. I reproduced it: on ec538f1 mid_list_... failed 12 times in 100 here. Forgetting the new test's own allocator did not change that (12 in 100 again). A debug print showed why: the stale DIRECT type at the address the new compute allocator got was left by cpu_cycle_break_..., another test in the module, so the new test mostly changes which addresses get reused. The test side fix is in 60349e5: the put-off dispatch test now calls alloc_pool::forget on its allocator, and mid_list_write64_wait64_split_... and cross_queue_cycle_... forget theirs before use. The runtime code is unchanged, so this does not depend on #2333.

list_x::tests::, --test-threads=4, 3 sets of 100 runs on 60349e5: 7, 2 and 6 failed runs, mid_list_... and cross_queue_cycle_... 0 times in 300. main e1d84b7, 2 sets: 2 and 3 failed runs, mid_list_... 1 time and cross_queue_cycle_... 2 times. The remaining failures are the module's flaky ones (a_dispatch_with_a_pipeline_still_building_waits_at_the_submit and a cpu_watchdog / cpu_cycle_break / a_reset_while cluster), not looked into. Full cargo test -p xcl --lib passes on the head (1302 passed).

AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7181001002 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2547#issuecomment-7181001002). Originally posted by [grahamster2](https://github.com/grahamster2) on 2026-11-26T02:39:22Z. --- Thanks for the runs. I reproduced it: on `ec538f1` `mid_list_...` failed 12 times in 100 here. Forgetting the new test's own allocator did not change that (12 in 100 again). A debug print showed why: the stale DIRECT type at the address the new compute allocator got was left by `cpu_cycle_break_...`, another test in the module, so the new test mostly changes which addresses get reused. The test side fix is in `60349e5`: the put-off dispatch test now calls `alloc_pool::forget` on its allocator, and `mid_list_write64_wait64_split_...` and `cross_queue_cycle_...` forget theirs before use. The runtime code is unchanged, so this does not depend on #2333. `list_x::tests::`, `--test-threads=4`, 3 sets of 100 runs on `60349e5`: 7, 2 and 6 failed runs, `mid_list_...` and `cross_queue_cycle_...` 0 times in 300. `main` `e1d84b7`, 2 sets: 2 and 3 failed runs, `mid_list_...` 1 time and `cross_queue_cycle_...` 2 times. The remaining failures are the module's flaky ones (`a_dispatch_with_a_pipeline_still_building_waits_at_the_submit` and a cpu_watchdog / cpu_cycle_break / a_reset_while cluster), not looked into. Full `cargo test -p xcl --lib` passes on the head (1302 passed). AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this.
luckyteagirl commented 2026-11-26 07:00:20 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T07:00:20Z.

Review: COMMENTED


wait_for_submit can take an unstarted job after the wait budget and call complete(&p, job()) on the submitting thread. A build closure that panics there bypasses the new catch_unwind in the worker's build() path, so the submit unwinds before complete publishes the failed result. This path is new when XCL_PSO_WAIT_MS is set and workers are busy; the existing panic regression runs only on a worker.

Could this submit-owned job use the same panic-to-failure handling as build()? Combining the saturated-worker fixture with a panicking target would verify that wait_for_submit returns and the pending entry becomes failed. This is an exact-head source review of 60349e51011d8fd4295c00776b2617b229b32d27; I did not run that interleaving on a GPU. AI-assisted review with Codex.

<!-- greyfinch-sync:ivall/xcl:review:6069777954 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2547#pullrequestreview-6069777954). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-26T07:00:20Z. **Review:** COMMENTED --- `wait_for_submit` can take an unstarted job after the wait budget and call `complete(&p, job())` on the submitting thread. A build closure that panics there bypasses the new `catch_unwind` in the worker's `build()` path, so the submit unwinds before `complete` publishes the failed result. This path is new when `XCL_PSO_WAIT_MS` is set and workers are busy; the existing panic regression runs only on a worker. Could this submit-owned job use the same panic-to-failure handling as `build()`? Combining the saturated-worker fixture with a panicking target would verify that `wait_for_submit` returns and the pending entry becomes failed. This is an exact-head source review of `60349e51011d8fd4295c00776b2617b229b32d27`; I did not run that interleaving on a GPU. AI-assisted review with Codex.
Aniseto commented 2026-11-26 08:04:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-26T07:07:43Z.


Ran the deferred-dispatch submit tests at 60349e51:

Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC 14.44.35207, DXC 1.9.2609.5, debug build.

Results

  • cargo test -p xcl --lib pso_async -- --test-threads=4: 17 passed, 0 failed (exit 0)
  • cargo test -p xcl --lib list_x -- --test-threads=4: 41 passed, 0 failed (exit 0)

The author's four new tests pass here: a_submit_builds_a_late_pipeline_no_worker_has_started, a_submit_waits_for_a_build_on_a_worker_no_longer_than_its_bound, a_build_that_panics_on_a_worker_ends_as_failed, and the GPU test a_put_off_dispatch_runs_at_the_submit_when_its_build_outlasts_the_wait_budget (the log confirms the real adapter and the deferred dispatch being executed at submit). The author notes some flaky tests in list_x; this run was clean at 4 threads.

What this adds: the author tested on an Ampere RTX 3080; this is a Blackwell wave32 part with a different driver and DXC version. The thread has no report from another machine.

Not tested: a retail world run (the author's still stalls), a paired 60 s smoke run, the whole workspace suite, AMD and Intel GPUs, native wave64, Wine, release profile, title data.

AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.

<!-- greyfinch-sync:ivall/xcl:comment:7185125635 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2547#issuecomment-7185125635). Originally posted by [Aniseto](https://github.com/Aniseto) on 2026-11-26T07:07:43Z. --- Ran the deferred-dispatch submit tests at `60349e51`: Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC 14.44.35207, DXC 1.9.2609.5, debug build. **Results** - `cargo test -p xcl --lib pso_async -- --test-threads=4`: 17 passed, 0 failed (exit 0) - `cargo test -p xcl --lib list_x -- --test-threads=4`: 41 passed, 0 failed (exit 0) The author's four new tests pass here: `a_submit_builds_a_late_pipeline_no_worker_has_started`, `a_submit_waits_for_a_build_on_a_worker_no_longer_than_its_bound`, `a_build_that_panics_on_a_worker_ends_as_failed`, and the GPU test `a_put_off_dispatch_runs_at_the_submit_when_its_build_outlasts_the_wait_budget` (the log confirms the real adapter and the deferred dispatch being executed at submit). The author notes some flaky tests in `list_x`; this run was clean at 4 threads. What this adds: the author tested on an Ampere RTX 3080; this is a Blackwell wave32 part with a different driver and DXC version. The thread has no report from another machine. Not tested: a retail world run (the author's still stalls), a paired 60 s smoke run, the whole workspace suite, AMD and Intel GPUs, native wave64, Wine, release profile, title data. AI-assisted (OpenCode), model: **DeepSeek V4.1 Flash Free** - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
Prime1997 commented 2026-11-26 12:28:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Prime1997 on 2026-11-26T12:28:42Z.

Review: COMMENTED


Needs changes — keep the useful work. Checked head 60349e51011d8fd4295c00776b2617b229b32d27.

When the worker pool is saturated and a submit takes ownership of a queued pipeline build, the direct job() call bypasses the worker's panic handling. A panic escapes before complete(0) marks that pipeline failed. The local repair catches the panic on this ownership path and completes the entry as failed. The added fixture forces submit ownership using synthetic blocked workers and a panicking job; it does not call a driver.

Local validation: head plus an uncommitted repair and regression fixtures: 4 passed, 0 failed, 0 ignored, 0 skipped. These are CPU checks of the local repair, not a claim that the unmodified PR passed them. Separate negative-control checks produced 3 passes and 1 expected failures.

Build command: cargo test --locked --offline -p xcl --lib --no-run --message-format=json --target-dir <isolated target> (only the private absolute target path is replaced here). Each selected test executable was then run separately as <test-exe> <exact-name> --exact --test-threads=1 --nocapture.

Selected exact tests
  • hle::d3d12x::pso_async::used_tests::a_build_that_panics_on_the_submitting_thread_ends_as_failed
  • hle::d3d12x::pso_async::used_tests::a_build_that_panics_on_a_worker_ends_as_failed
  • hle::d3d12x::pso_async::used_tests::a_submit_builds_a_late_pipeline_no_worker_has_started
  • hle::d3d12x::pso_async::used_tests::a_submit_waits_for_a_build_on_a_worker_no_longer_than_its_bound

Latest-main source comparison: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7; full-head merge-tree result: clean. This is a source compatibility check, not a tested integration build. Local repair patch SHA-256: 04db079e12cde4f0834b68cf5a06d8b8bdd7fe48c84b438a17a67516e3562980.

Windows 11 Pro build 26200, i5-10400, 32 GiB RAM, Rust 1.100.0 MSVC debug tests. RTX 3060 Ti / driver 32.0.16.1714 is present but was not exercised. No full-suite, GPU or title result is claimed; installed builds and game data were untouched.

AI use: Codex (GPT-6) reviewed the source, prepared the local repair/fixtures, ran the checks and drafted this report.

Optional temporary Discord for coordinating this contributor work, helping test and comparing results.

<!-- greyfinch-sync:ivall/xcl:review:6074127954 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2547#pullrequestreview-6074127954). Originally posted by [Prime1997](https://github.com/Prime1997) on 2026-11-26T12:28:42Z. **Review:** COMMENTED --- **Needs changes — keep the useful work.** Checked head `60349e51011d8fd4295c00776b2617b229b32d27`. When the worker pool is saturated and a submit takes ownership of a queued pipeline build, the direct `job()` call bypasses the worker's panic handling. A panic escapes before `complete(0)` marks that pipeline failed. The local repair catches the panic on this ownership path and completes the entry as failed. The added fixture forces submit ownership using synthetic blocked workers and a panicking job; it does not call a driver. **Local validation:** head plus an uncommitted repair and regression fixtures: **4 passed, 0 failed, 0 ignored, 0 skipped**. These are CPU checks of the local repair, not a claim that the unmodified PR passed them. Separate negative-control checks produced 3 passes and 1 expected failures. Build command: `cargo test --locked --offline -p xcl --lib --no-run --message-format=json --target-dir <isolated target>` (only the private absolute target path is replaced here). Each selected test executable was then run separately as `<test-exe> <exact-name> --exact --test-threads=1 --nocapture`. <details><summary>Selected exact tests</summary> - `hle::d3d12x::pso_async::used_tests::a_build_that_panics_on_the_submitting_thread_ends_as_failed` - `hle::d3d12x::pso_async::used_tests::a_build_that_panics_on_a_worker_ends_as_failed` - `hle::d3d12x::pso_async::used_tests::a_submit_builds_a_late_pipeline_no_worker_has_started` - `hle::d3d12x::pso_async::used_tests::a_submit_waits_for_a_build_on_a_worker_no_longer_than_its_bound` </details> Latest-main source comparison: `b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`; full-head merge-tree result: clean. This is a source compatibility check, not a tested integration build. Local repair patch SHA-256: `04db079e12cde4f0834b68cf5a06d8b8bdd7fe48c84b438a17a67516e3562980`. Windows 11 Pro build 26200, i5-10400, 32 GiB RAM, Rust 1.100.0 MSVC debug tests. RTX 3060 Ti / driver 32.0.16.1714 is present but was not exercised. No full-suite, GPU or title result is claimed; installed builds and game data were untouched. AI use: Codex (GPT-6) reviewed the source, prepared the local repair/fixtures, ran the checks and drafted this report. Optional temporary [Discord](https://discord.gg/gK3y7WRRY) for coordinating this contributor work, helping test and comparing results.
throny commented 2026-11-26 18:00:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-26T18:00:51Z.


Two contributors checked independently and found that #2581 solves the same problem in a different way: #1607, group D131. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.

This is a hint from the community triage in #1607, not a maintainer decision.

AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.

<!-- greyfinch-sync:ivall/xcl:comment:7199953383 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2547#issuecomment-7199953383). Originally posted by [throny](https://github.com/throny) on 2026-11-26T18:00:51Z. --- <!-- xcl-1607-hint:D131 --> Two contributors checked independently and found that #2581 solves the same problem in a different way: #1607, group D131. You may want to compare them with the other author and agree on one, or say in the PR why both are needed. This is a hint from the community triage in #1607, not a maintainer decision. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
ClosetPie107 commented 2026-11-26 19:37:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-11-26T19:37:02Z.


Update: on top of #2849

Same machine, flags and warm cache as below. These runs are on top of #2849 (head 4e931734), which stops the ucrtbase crash that ended most runs below. That crash is #2841: 0 of 6 runs with #2849, against 6 of 9 without it.

tree runs end presents before 100 s / after put off to the submit dispatches (skipped) draws (skipped)
main + #2849 (3a077ec6) 1–6 6 of 6: 300 s, exit 0 1,596–1,688 / 396–520 256–512+ 686k–1,117k (0–30) 131k–237k (256–618)
main + #2849 + this PR (77e8aa90) 1–3 3 of 3: 300 s, exit 0 1,502–1,639 / 351–381 256–512+ 740k–924k (0) 163k–188k (512–584)
main + #2849 + #2581 (2ceeef0a) 1–3 2 of 3: 300 s; 1 title watchdog (null write at game+0x23cf683, #662) at 257 s 1,653–1,679 / 274–474 0 525k–974k (1–256) 101k–207k (106–1,414)
  • With this PR, no dispatch was skipped in any of the 3 runs, and no submit reached the 30 s bound (deferred dispatch skipped after waiting 30 s: 0). No device removal, no Close failure.
  • The stall after the world start stays: from about 100 s, presents fall to 1–4 per 2 s on all three trees. Presents after 100 s with this PR (351–381) are at the low end of the other trees, but within main's range below (339–407). Three runs per tree are too few to call that a difference.
  • Across all 21 warm runs today, every tree (main included) has "GPU queue.Wait … did not complete within 5000 ms" timeouts in some runs: 11 of the 21 runs had 4 to 73 of them. Usually the queues recover.

Independent test report under Wine/Proton (not native Windows) for head 60349e51, merged cleanly onto main 8b957bec (test commit 01e09d7f), compared with main and with #2581. Part of the D131 check in #1607.

Tested

  • AMD Radeon RX 9070 (RDNA4, RADV GFX1201, Mesa 26.3.1), Ryzen 5 9600X, 30 GiB RAM, CachyOS Linux 7.3.5

  • Proton Experimental experimental-11.0-20261112, vkd3d-proton master ec207194 (dxil-spirv b540c8a2) with a local patch that drops the lpVtbl identity checks in d3d12_command_allocator_from_iface / d3d12_command_list_from_iface, DXVK v3.1.1-209, DXC 1.9.2609.5, Rust 1.96.0, target x86_64-pc-windows-gnu (debug for tests, release for the title)

  • cargo test -p xcl --lib hle::d3d12x::pso_async:: -- --test-threads=4: 17 passed, 0 failed, including a_submit_builds_a_late_pipeline_no_worker_has_started, a_submit_waits_for_a_build_on_a_worker_no_longer_than_its_bound and a_build_that_panics_on_a_worker_ends_as_failed.

  • a_put_off_dispatch_runs_at_the_submit_when_its_build_outlasts_the_wait_budget alone (--exact --test-threads=1): passed 4/4, not skipped.

  • cargo test -p xcl --lib hle::d3d12x::list_x:: -- --test-threads=4, 3 times per tree: main 39 passed, 1 failed every time; #2581 the same; #2547 39 passed, 2 failed every time. On all three, a_dispatch_with_a_pipeline_still_building_waits_at_the_submit fails with device removed (0x887A0005).

  • With --test-threads=1: main 40 passed, 0 failed (2 runs); #2547 41 passed, 0 failed (2 runs). That failing test passes alone on main (2/2). So the device loss comes from the GPU list tests running in parallel under vkd3d-proton, and it already happens on main.

  • The new test runs into the same problem: with --test-threads=4 it failed with device removed in 4 of 4 module runs, also with the main test above skipped. Alone or with one thread it always passed. This is probably the same parallel-test problem as on main, not a fault in the change, but the new test is not robust to it.

Retail title, release builds, 300 s per run (XCL_RUN_SECONDS), A pressed every 10 s from 20 s. All 9 runs started from one copy of the same warm cache (DXIL, driver pipeline blobs, Mesa, vkd3d), seeded by two main runs; shader preparation took 30 s in each. Run in rounds of main → #2581 → #2547. Flags: XCL_PSO_WAIT_MS=50, XCL_DIRECT_DXIL=1, XCL_TEXTURE_LEVEL_PAGES=1, XCL_SPLIT_MIDLIST_WAIT=0, XCL_COHERENT_MB=1024, XCL_PSO_PRELOAD=1, XCL_NETWORK=0, VKD3D_CONFIG=ignore_shared_fence.

tree run end presents before 100 s / after put off to the submit dispatches (skipped)
main 8b957bec 1 crash at 293 s 1,672 / 356 256+ 779,672 (1)
2 300 s, exit 0 1,625 / 407 512+ 927,998 (3)
3 300 s, exit 0 1,426 / 339 512+ 675,433 (2)
main + #2581 (967bba96) 1 300 s, exit 0 1,496 / 360 0 863,527 (128)
2 crash at 166 s 1,636 / 242 0 291,599 (35)
3 crash at 225 s 1,675 / 252 0 524,288 (16)
main + #2547 (01e09d7f) 1 crash at 172 s 1,690 / 299 128+ 524,288 (0)
2 crash at 241 s 1,453 / 244 256+ 332,594 (0)
3 crash at 281 s 1,642 / 377 512+ 655,949 (0)

(Put-off counts are the last power of two the log reported; dispatch counts are the last console code so far line.)

  • No run lost the device, logged a Close failure (E_OUTOFMEMORY), or logged deferred dispatch skipped after waiting 30 s.
  • On all three trees, presents drop at the world start (about 100 s): from about 30 per 2 s to 1–4 per 2 s, with 100k+ dispatches per 20 s. I see no difference between the trees in presents after 100 s.
  • All 6 crashes are the same: 0xc0000005 reading in ucrtbase.dll+0x1720b / +0x1724d, a memcpy of 4 KiB called from XCL. It happened on all three trees (main 1/3, #2581 2/3, #2547 3/3). The same crash shows up in my runs of main from yesterday, so neither PR causes it. Three runs per tree are too few to say whether a PR changes how often it happens. It may be the XG copy_from crash of #662 (on Windows it faults in VCRUNTIME140), but I have not checked the symbols.

What the change does in the title: with it, no dispatch was skipped in any of the 3 runs (main 1–3, #2581 16–128), and no submit hit the 30 s bound. It did not change the stall after the world start on this setup.

Not tested

  • Native Windows, NVIDIA/Intel, XCL_PSO_WAIT_MS unset or other than 50, cold caches
  • Whether this PR changes how often the ucrtbase crash happens: 3 runs are too few
  • The full workspace suite on this merge

AI use

  • Claude Code (Claude Opus 5.5) merged the PRs, wrote the test scripts, ran the tests and the title on this machine, and wrote this report.
<!-- greyfinch-sync:ivall/xcl:comment:7201782211 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2547#issuecomment-7201782211). Originally posted by [ClosetPie107](https://github.com/ClosetPie107) on 2026-11-26T19:37:02Z. --- **Update: on top of #2849** Same machine, flags and warm cache as below. These runs are on top of #2849 (head `4e931734`), which stops the `ucrtbase` crash that ended most runs below. That crash is #2841: 0 of 6 runs with #2849, against 6 of 9 without it. | tree | runs | end | presents before 100 s / after | put off to the submit | dispatches (skipped) | draws (skipped) | |---|---|---|---|---|---|---| | `main` + #2849 (`3a077ec6`) | 1–6 | 6 of 6: 300 s, exit 0 | 1,596–1,688 / 396–520 | 256–512+ | 686k–1,117k (0–30) | 131k–237k (256–618) | | `main` + #2849 + this PR (`77e8aa90`) | 1–3 | **3 of 3: 300 s, exit 0** | 1,502–1,639 / 351–381 | 256–512+ | 740k–924k (**0**) | 163k–188k (512–584) | | `main` + #2849 + #2581 (`2ceeef0a`) | 1–3 | 2 of 3: 300 s; 1 title watchdog (null write at `game+0x23cf683`, #662) at 257 s | 1,653–1,679 / 274–474 | 0 | 525k–974k (1–256) | 101k–207k (106–1,414) | - With this PR, no dispatch was skipped in any of the 3 runs, and no submit reached the 30 s bound (`deferred dispatch skipped after waiting 30 s`: 0). No device removal, no `Close` failure. - The stall after the world start stays: from about 100 s, presents fall to 1–4 per 2 s on all three trees. Presents after 100 s with this PR (351–381) are at the low end of the other trees, but within `main`'s range below (339–407). Three runs per tree are too few to call that a difference. - Across all 21 warm runs today, every tree (`main` included) has "GPU queue.Wait … did not complete within 5000 ms" timeouts in some runs: 11 of the 21 runs had 4 to 73 of them. Usually the queues recover. --- Independent test report under Wine/Proton (not native Windows) for head `60349e51`, merged cleanly onto `main` `8b957bec` (test commit `01e09d7f`), compared with `main` and with #2581. Part of the D131 check in #1607. **Tested** - AMD Radeon RX 9070 (RDNA4, RADV GFX1201, Mesa 26.3.1), Ryzen 5 9600X, 30 GiB RAM, CachyOS Linux 7.3.5 - Proton Experimental `experimental-11.0-20261112`, `vkd3d-proton` master `ec207194` (dxil-spirv `b540c8a2`) with a local patch that drops the `lpVtbl` identity checks in `d3d12_command_allocator_from_iface` / `d3d12_command_list_from_iface`, DXVK `v3.1.1-209`, DXC `1.9.2609.5`, Rust 1.96.0, target `x86_64-pc-windows-gnu` (debug for tests, release for the title) - `cargo test -p xcl --lib hle::d3d12x::pso_async:: -- --test-threads=4`: **17 passed, 0 failed**, including `a_submit_builds_a_late_pipeline_no_worker_has_started`, `a_submit_waits_for_a_build_on_a_worker_no_longer_than_its_bound` and `a_build_that_panics_on_a_worker_ends_as_failed`. - `a_put_off_dispatch_runs_at_the_submit_when_its_build_outlasts_the_wait_budget` alone (`--exact --test-threads=1`): **passed 4/4**, not skipped. - `cargo test -p xcl --lib hle::d3d12x::list_x:: -- --test-threads=4`, 3 times per tree: `main` 39 passed, 1 failed every time; #2581 the same; #2547 39 passed, 2 failed every time. On all three, `a_dispatch_with_a_pipeline_still_building_waits_at_the_submit` fails with device removed (`0x887A0005`). - With `--test-threads=1`: `main` **40 passed, 0 failed** (2 runs); #2547 **41 passed, 0 failed** (2 runs). That failing test passes alone on `main` (2/2). So the device loss comes from the GPU list tests running in parallel under vkd3d-proton, and it already happens on `main`. - The new test runs into the same problem: with `--test-threads=4` it failed with device removed in 4 of 4 module runs, also with the `main` test above skipped. Alone or with one thread it always passed. This is probably the same parallel-test problem as on `main`, not a fault in the change, but the new test is not robust to it. Retail title, release builds, 300 s per run (`XCL_RUN_SECONDS`), A pressed every 10 s from 20 s. All 9 runs started from one copy of the same warm cache (DXIL, driver pipeline blobs, Mesa, vkd3d), seeded by two `main` runs; shader preparation took 30 s in each. Run in rounds of `main` → #2581 → #2547. Flags: `XCL_PSO_WAIT_MS=50`, `XCL_DIRECT_DXIL=1`, `XCL_TEXTURE_LEVEL_PAGES=1`, `XCL_SPLIT_MIDLIST_WAIT=0`, `XCL_COHERENT_MB=1024`, `XCL_PSO_PRELOAD=1`, `XCL_NETWORK=0`, `VKD3D_CONFIG=ignore_shared_fence`. | tree | run | end | presents before 100 s / after | put off to the submit | dispatches (skipped) | |---|---|---|---|---|---| | `main` `8b957bec` | 1 | crash at 293 s | 1,672 / 356 | 256+ | 779,672 (1) | | | 2 | 300 s, exit 0 | 1,625 / 407 | 512+ | 927,998 (3) | | | 3 | 300 s, exit 0 | 1,426 / 339 | 512+ | 675,433 (2) | | `main` + #2581 (`967bba96`) | 1 | 300 s, exit 0 | 1,496 / 360 | **0** | 863,527 (128) | | | 2 | crash at 166 s | 1,636 / 242 | **0** | 291,599 (35) | | | 3 | crash at 225 s | 1,675 / 252 | **0** | 524,288 (16) | | `main` + #2547 (`01e09d7f`) | 1 | crash at 172 s | 1,690 / 299 | 128+ | 524,288 (**0**) | | | 2 | crash at 241 s | 1,453 / 244 | 256+ | 332,594 (**0**) | | | 3 | crash at 281 s | 1,642 / 377 | 512+ | 655,949 (**0**) | (Put-off counts are the last power of two the log reported; dispatch counts are the last `console code so far` line.) - No run lost the device, logged a `Close` failure (`E_OUTOFMEMORY`), or logged `deferred dispatch skipped after waiting 30 s`. - On all three trees, presents drop at the world start (about 100 s): from about 30 per 2 s to 1–4 per 2 s, with 100k+ dispatches per 20 s. I see no difference between the trees in presents after 100 s. - All 6 crashes are the same: `0xc0000005` reading in `ucrtbase.dll+0x1720b` / `+0x1724d`, a `memcpy` of 4 KiB called from XCL. It happened on all three trees (`main` 1/3, #2581 2/3, #2547 3/3). The same crash shows up in my runs of `main` from yesterday, so neither PR causes it. Three runs per tree are too few to say whether a PR changes how often it happens. It may be the XG `copy_from` crash of #662 (on Windows it faults in `VCRUNTIME140`), but I have not checked the symbols. What the change does in the title: with it, **no dispatch was skipped** in any of the 3 runs (`main` 1–3, #2581 16–128), and no submit hit the 30 s bound. It did not change the stall after the world start on this setup. **Not tested** - Native Windows, NVIDIA/Intel, `XCL_PSO_WAIT_MS` unset or other than 50, cold caches - Whether this PR changes how often the `ucrtbase` crash happens: 3 runs are too few - The full workspace suite on this merge **AI use** - Claude Code (Claude Opus 5.5) merged the PRs, wrote the test scripts, ran the tests and the title on this machine, and wrote this report.
Decodere commented 2026-11-27 01:06:53 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T01:06:53Z.


Independent desktop NVIDIA verification of PR #2547 at head 60349e51011d8fd4295c00776b2617b229b32d27 (2 commits ec538f11 -> 60349e51; exact merge-base: e1d84b7d9153f86a97d2ec5d209d196046fc0bea, pre-#2555 ancestor of main).

Environment

  • 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 (6C / 12T), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200 (Developer Mode off)
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC, DXC 1.9.2609.5, --release

Targeted release tests & build (60349e51)

Command Result
cargo test --release -p xcl --lib a_put_off_dispatch_runs_at_the_submit_when_its_build_outlasts_the_wait_budget -- --nocapture (3 consecutive runs) 1 passed; 0 failed; 0 ignored; 1327 filtered out × 3 (0.89s, 0.84s, 0.84s, 0 skipped; live on RTX 4060)
cargo test --release -p xcl --lib a_submit_builds_a_late_pipeline_no_worker_has_started -- --nocapture (3 consecutive runs) 1 passed; 0 failed; 0 ignored; 1327 filtered out × 3 (0.06s, 0.07s, 0.06s, 0 skipped)
cargo test --release -p xcl --lib a_submit_waits_for_a_build_on_a_worker_no_longer_than_its_bound -- --nocapture (3 consecutive runs) 1 passed; 0 failed; 0 ignored; 1327 filtered out × 3 (0.32s × 3, 0 skipped)
cargo test --release -p xcl --lib a_build_that_panics_on_a_worker_ends_as_failed -- --nocapture (3 consecutive runs) 1 passed; 0 failed; 0 ignored; 1327 filtered out × 3 (0.00s × 3, 0 skipped)
cargo test --release -p xcl --lib hle::d3d12x::pso_async:: -- --test-threads=1 (3 consecutive runs) 17 passed; 0 failed; 0 ignored; 1311 filtered out × 3 (1.57s, 1.58s, 1.58s, 0 skipped)
cargo test --release -p xcl --lib hle::d3d12x::list_x:: -- --test-threads=1 (3 consecutive runs) 41 passed; 0 failed; 0 ignored; 1287 filtered out × 3 (1.83s, 1.78s, 1.82s, 0 skipped)
cargo build --release -p xcl Clean build (1m 08s, exit 0, 0 new warnings)

Paired quiet 60 s retail smokes (title: 29640639)

Exact merge-base (e1d84b7d9153f86a97d2ec5d209d196046fc0bea, cached baseline on the same machine, default environment):

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

PR #2547 (60349e51011d8fd4295c00776b2617b229b32d27, default — XCL_PSO_WAIT_MS unset):

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

PR #2547 (60349e51011d8fd4295c00776b2617b229b32d27, XCL_PSO_WAIT_MS=1):

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

Runtime log observations (xcl.log)

  • Default smoke (XCL_PSO_WAIT_MS unset): 9222 log lines, 0 [ERROR] / device-removal / panic lines; final telemetry 19628 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample 14007 MB committed by the process; video memory 6115 MB local, 4683 MB non-local.
  • XCL_PSO_WAIT_MS=1 smoke: 9220 log lines, 0 [ERROR] / device-removal / panic lines, 0 deferred dispatch skipped after waiting warnings; final telemetry 19597 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample 14006 MB committed by the process; video memory 6115 MB local, 4682 MB non-local.

Limits of coverage

  • Live submit-time wait for a put-off dispatch outlasting XCL_PSO_WAIT_MS, submit-thread fallback build when no worker has started, bounded worker wait, and worker-panic failure handling were directly verified on desktop RTX 4060 via all 4 new tests (3/3 each, 0 skipped), hle::d3d12x::pso_async:: (17/17 × 3), and hle::d3d12x::list_x:: (41/41 × 3).
  • Both 60 s retail smokes (default and XCL_PSO_WAIT_MS=1) ran with warm shader/driver caches on title: 29640639 (0 multi-second cold PSO stalls at submit), so they confirm zero runtime regression under both configurations rather than reproducing a cold multi-second pipeline build stall in retail play (frame-count delta vs. cached merge-base reflects single-run startup variance, not this PR).

AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).

<!-- greyfinch-sync:ivall/xcl:comment:7207022508 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2547#issuecomment-7207022508). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T01:06:53Z. --- Independent desktop NVIDIA verification of **PR #2547** at head `60349e51011d8fd4295c00776b2617b229b32d27` (`2` commits `ec538f11 -> 60349e51`; exact merge-base: `e1d84b7d9153f86a97d2ec5d209d196046fc0bea`, pre-`#2555` ancestor of `main`). ### Environment - **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 (6C / 12T), 32 GB RAM (`31.9 GiB` usable), Windows 11 Home `26200` (Developer Mode off) - **Toolchain:** `rustc 1.100.0 (0ef1bc386 2026-11-09)` MSVC, DXC `1.9.2609.5`, `--release` ### Targeted release tests & build (`60349e51`) | Command | Result | | --- | --- | | `cargo test --release -p xcl --lib a_put_off_dispatch_runs_at_the_submit_when_its_build_outlasts_the_wait_budget -- --nocapture` (3 consecutive runs) | `1 passed; 0 failed; 0 ignored; 1327 filtered out` × 3 (`0.89s`, `0.84s`, `0.84s`, `0` skipped; live on RTX 4060) | | `cargo test --release -p xcl --lib a_submit_builds_a_late_pipeline_no_worker_has_started -- --nocapture` (3 consecutive runs) | `1 passed; 0 failed; 0 ignored; 1327 filtered out` × 3 (`0.06s`, `0.07s`, `0.06s`, `0` skipped) | | `cargo test --release -p xcl --lib a_submit_waits_for_a_build_on_a_worker_no_longer_than_its_bound -- --nocapture` (3 consecutive runs) | `1 passed; 0 failed; 0 ignored; 1327 filtered out` × 3 (`0.32s` × 3, `0` skipped) | | `cargo test --release -p xcl --lib a_build_that_panics_on_a_worker_ends_as_failed -- --nocapture` (3 consecutive runs) | `1 passed; 0 failed; 0 ignored; 1327 filtered out` × 3 (`0.00s` × 3, `0` skipped) | | `cargo test --release -p xcl --lib hle::d3d12x::pso_async:: -- --test-threads=1` (3 consecutive runs) | `17 passed; 0 failed; 0 ignored; 1311 filtered out` × 3 (`1.57s`, `1.58s`, `1.58s`, `0` skipped) | | `cargo test --release -p xcl --lib hle::d3d12x::list_x:: -- --test-threads=1` (3 consecutive runs) | `41 passed; 0 failed; 0 ignored; 1287 filtered out` × 3 (`1.83s`, `1.78s`, `1.82s`, `0` skipped) | | `cargo build --release -p xcl` | Clean build (`1m 08s`, exit `0`, `0` new warnings) | ### Paired quiet 60 s retail smokes (`title: 29640639`) Exact merge-base (`e1d84b7d9153f86a97d2ec5d209d196046fc0bea`, cached baseline on the same machine, default environment): ``` xcl-smoke v1 commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1531 (PresentX 1531) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13982 MB ``` PR #2547 (`60349e51011d8fd4295c00776b2617b229b32d27`, default — `XCL_PSO_WAIT_MS` unset): ``` xcl-smoke v1 commit: 60349e51011d8fd4295c00776b2617b229b32d27 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1634 (PresentX 1634) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14007 MB ``` PR #2547 (`60349e51011d8fd4295c00776b2617b229b32d27`, `XCL_PSO_WAIT_MS=1`): ``` xcl-smoke v1 commit: 60349e51011d8fd4295c00776b2617b229b32d27 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1630 (PresentX 1630) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14006 MB ``` ### Runtime log observations (`xcl.log`) - Default smoke (`XCL_PSO_WAIT_MS` unset): `9222` log lines, `0` `[ERROR]` / device-removal / panic lines; final telemetry `19628 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped)`; last memory sample `14007 MB committed by the process; video memory 6115 MB local, 4683 MB non-local`. - `XCL_PSO_WAIT_MS=1` smoke: `9220` log lines, `0` `[ERROR]` / device-removal / panic lines, `0` `deferred dispatch skipped after waiting` warnings; final telemetry `19597 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped)`; last memory sample `14006 MB committed by the process; video memory 6115 MB local, 4682 MB non-local`. ### Limits of coverage - Live submit-time wait for a put-off dispatch outlasting `XCL_PSO_WAIT_MS`, submit-thread fallback build when no worker has started, bounded worker wait, and worker-panic failure handling were directly verified on desktop RTX 4060 via all 4 new tests (`3/3` each, `0` skipped), `hle::d3d12x::pso_async::` (`17/17` × 3), and `hle::d3d12x::list_x::` (`41/41` × 3). - Both 60 s retail smokes (default and `XCL_PSO_WAIT_MS=1`) ran with warm shader/driver caches on `title: 29640639` (`0` multi-second cold PSO stalls at submit), so they confirm zero runtime regression under both configurations rather than reproducing a cold multi-second pipeline build stall in retail play (frame-count delta vs. cached merge-base reflects single-run startup variance, not this PR). *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
throny commented 2026-11-27 20:01:20 +00:00 (Migrated from github.com)

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


merge-check claim
head: 60349e5101

<!-- greyfinch-sync:ivall/xcl:comment:7227096888 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2547#issuecomment-7227096888). Originally posted by [throny](https://github.com/throny) on 2026-11-27T20:01:20Z. --- merge-check claim head: 60349e51011d8fd4295c00776b2617b229b32d27
throny commented 2026-11-27 20:17:16 +00:00 (Migrated from github.com)

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


merge-check
base: 6089122a
head: 60349e5101
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1469 passed, 0 failed, 47 ignored (26 SKIPPED lines); base alone: 1465 passed, 0 failed, 47 ignored
review: none blocking. With XCL_PSO_WAIT_MS set, wait_for_submit can run the build itself without a catch_unwind: a panic there unwinds into an extern "system" hook and aborts; main's resolve_wait_for has the same pattern, so not new, but a catch is recommended (also raised in two earlier reviews, head unchanged since). The submit can be held for the budget plus 30 s, which is at the title's watchdog limit; a build the submit runs itself has no bound. The alloc_pool::forget calls added to two existing tests are test hygiene outside the stated purpose.
performance: none with the variable unset: one lookup per put-off dispatch (reasoned).
verdict: safe to merge (opt-in)
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:7227356473 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2547#issuecomment-7227356473). Originally posted by [throny](https://github.com/throny) on 2026-11-27T20:17:16Z. --- merge-check base: 6089122a head: 60349e51011d8fd4295c00776b2617b229b32d27 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1469 passed, 0 failed, 47 ignored (26 SKIPPED lines); base alone: 1465 passed, 0 failed, 47 ignored review: none blocking. With XCL_PSO_WAIT_MS set, wait_for_submit can run the build itself without a catch_unwind: a panic there unwinds into an extern "system" hook and aborts; main's resolve_wait_for has the same pattern, so not new, but a catch is recommended (also raised in two earlier reviews, head unchanged since). The submit can be held for the budget plus 30 s, which is at the title's watchdog limit; a build the submit runs itself has no bound. The alloc_pool::forget calls added to two existing tests are test hygiene outside the stated purpose. performance: none with the variable unset: one lookup per put-off dispatch (reasoned). verdict: safe to merge (opt-in) 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).
thehollowedone commented 2026-11-28 02:02:07 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-28T02:02:07Z.


merge-check claim
head: 60349e5101

<!-- greyfinch-sync:ivall/xcl:comment:7232083732 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2547#issuecomment-7232083732). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-28T02:02:07Z. --- merge-check claim head: 60349e51011d8fd4295c00776b2617b229b32d27
thehollowedone commented 2026-11-28 02:08:11 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-28T02:08:11Z.


merge-check
base: 753e8b1a (main)
head: 60349e51
merge: Clean trial merge into current main, no commit.
build: cargo build --workspace --locked passed.
tests: cargo test --workspace --locked --no-fail-fast -- --test-threads=4 on the unmodified merge: 1,515 passed, 1 failed, 47 ignored; 25 GPU skip notices. The new GPU deferred-dispatch fixture and all three new pipeline-wait tests passed. The sole failure, console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk (DXIL not compiled yet), also failed with the same message on untouched main 753e8b1a in my exact-base control: 0 passed, 1 failed under the filtered cargo test -p xcl --lib command.
review: One submit-side failure path needs the same panic handling already added for worker builds. With XCL_PSO_WAIT_MS set and every worker occupied, wait_for_submit takes the pending job and calls job() on the submitting thread. If that build panics, complete is never called and the panic escapes through record_deferred, which runs inside the extern "system" ExecuteCommandLists / KickoffX hooks. The worker path in this PR catches the same job panic. I adapted the PR's saturated-worker test locally to make this target job panic, catch only the outer test invocation, release the worker gate, and assert that the wait returns and the target is no longer pending. On the unmodified merge it failed 0/1 (a submit-side build panic escaped the wait); with the one-line candidate below it passed 1/1, with no skip. Keep the original successful-build test and add this as a separate regression. The original resolve_wait_for direct-build path has a related older risk; it is outside this PR's change.
integration: #3028 already adds run(job) for the worker, bind-side direct build, and piece-builder paths. It does not cover wait_for_submit, which this PR adds. If #3028 merges first, call run(job) at this PR's submit-side site instead of adding a second panic wrapper; retain the separate submit-side regression. This keeps one failure policy and one rate-limited diagnostic.
performance: No title timing or frame-rate comparison was run here. The candidate changes only exceptional panic handling; the normal submit path retains the same build and completion sequence.
verdict: not yet: catch a submit-side build panic, complete the pending job as failed, and retain a regression for that path. The PR's green CI and normal-path tests do not cover it.
hardware / tool and model: Windows 11 build 26300, RTX 3080 Ti 12 GiB / NVIDIA 621.35, rustc 1.99.1 MSVC, Windows SDK DXC 1.8.2502.11. OpenAI Codex (GPT-6.2 Sol) performed the merge, source review, native suite, negative control, and candidate check.

Tested candidate change
diff --git a/crates/xcl/src/hle/d3d12x/pso_async.rs b/crates/xcl/src/hle/d3d12x/pso_async.rs
@@
     let job = p.job.lock().unwrap().take();
     if let Some(job) = job {
-        return complete(&p, job());
+        return complete(&p, std::panic::catch_unwind(std::panic::AssertUnwindSafe(job)).unwrap_or(0));
     }
<!-- greyfinch-sync:ivall/xcl:comment:7232155286 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2547#issuecomment-7232155286). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-28T02:08:11Z. --- merge-check base: [753e8b1a](https://github.com/xcl-dev/xcl/commit/753e8b1a2568c37248133880328f5fe1d5220193) (`main`) head: [60349e51](https://github.com/xcl-dev/xcl/commit/60349e51011d8fd4295c00776b2617b229b32d27) merge: Clean trial merge into current `main`, no commit. build: `cargo build --workspace --locked` passed. tests: `cargo test --workspace --locked --no-fail-fast -- --test-threads=4` on the unmodified merge: **1,515 passed, 1 failed, 47 ignored; 25 GPU skip notices**. The new GPU deferred-dispatch fixture and all three new pipeline-wait tests passed. The sole failure, `console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk` (`DXIL not compiled yet`), also failed with the same message on untouched `main` `753e8b1a` in my exact-base control: **0 passed, 1 failed** under the filtered `cargo test -p xcl --lib` command. review: **One submit-side failure path needs the same panic handling already added for worker builds.** With `XCL_PSO_WAIT_MS` set and every worker occupied, `wait_for_submit` takes the pending job and calls `job()` on the submitting thread. If that build panics, `complete` is never called and the panic escapes through `record_deferred`, which runs inside the `extern "system"` `ExecuteCommandLists` / `KickoffX` hooks. The worker path in this PR catches the same job panic. I adapted the PR's saturated-worker test locally to make this target job panic, catch only the outer test invocation, release the worker gate, and assert that the wait returns and the target is no longer pending. On the unmodified merge it failed **0/1** (`a submit-side build panic escaped the wait`); with the one-line candidate below it passed **1/1**, with no skip. Keep the original successful-build test and add this as a separate regression. The original `resolve_wait_for` direct-build path has a related older risk; it is outside this PR's change. integration: [#3028](https://github.com/xcl-dev/xcl/pull/3028) already adds `run(job)` for the worker, bind-side direct build, and piece-builder paths. It does not cover `wait_for_submit`, which this PR adds. If #3028 merges first, call `run(job)` at this PR's submit-side site instead of adding a second panic wrapper; retain the separate submit-side regression. This keeps one failure policy and one rate-limited diagnostic. performance: No title timing or frame-rate comparison was run here. The candidate changes only exceptional panic handling; the normal submit path retains the same build and completion sequence. verdict: not yet: catch a submit-side build panic, complete the pending job as failed, and retain a regression for that path. The PR's green CI and normal-path tests do not cover it. hardware / tool and model: Windows 11 build 26300, RTX 3080 Ti 12 GiB / NVIDIA 621.35, rustc 1.99.1 MSVC, Windows SDK DXC 1.8.2502.11. OpenAI Codex (GPT-6.2 Sol) performed the merge, source review, native suite, negative control, and candidate check. <details><summary>Tested candidate change</summary> ```diff diff --git a/crates/xcl/src/hle/d3d12x/pso_async.rs b/crates/xcl/src/hle/d3d12x/pso_async.rs @@ let job = p.job.lock().unwrap().take(); if let Some(job) = job { - return complete(&p, job()); + return complete(&p, std::panic::catch_unwind(std::panic::AssertUnwindSafe(job)).unwrap_or(0)); } ``` </details>
Foniass commented 2026-12-01 06:08:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:08:28Z.


Review (head 60349e51, diff read, not a merge-check; it conflicts with main, so not built or run):

  • The case no longer happens on main. 79b19941 ("avoid deferred segments for bounded pipeline waits", from #2959, adapted from #2581) records a dispatch at once with the bounded wait when XCL_PSO_WAIT_MS is set instead of putting it off. Calls still put off wait at the submit with no budget (resolve_retained_for_emission with wait_budget() = None; restorations wait on their ticket), and the worker build's catch_unwind is on main as run_job (9663ff32, 4755740b).
  • Rebasing is a trap: ec538f11 is already in main's history (merged on the fork and reverted there, fd984f92 / 76576864, both brought in by #3203), so git rebase would silently drop it and leave only the test commit.
  • As written, the build the submitting thread runs itself (pso_async.rs ~1215, complete(&p, job())) isn't wrapped in catch_unwind, so a panicking build would abort the process through the submit hook.
  • Note for #3318: if resolve_retained_for_emission starts honouring XCL_CS_PSO_WAIT_MS for dispatches, a run with only that variable set would put dispatches off and then cap the submit wait, bringing this case back.

Fine: the per-pipeline 30 s bound with its WARN and counter, waiting only for compute pipelines, and the clear "Not tested" list. Recommendation: close; if the alloc_pool::forget changes still fix flaky list_x tests on main, they'd be a separate test-only PR.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7302527807 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2547#issuecomment-7302527807). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T06:08:28Z. --- Review (head 60349e51, diff read, not a merge-check; it conflicts with main, so not built or run): - **The case no longer happens on main.** 79b19941 ("avoid deferred segments for bounded pipeline waits", from #2959, adapted from #2581) records a dispatch at once with the bounded wait when `XCL_PSO_WAIT_MS` is set instead of putting it off. Calls still put off wait at the submit with no budget (`resolve_retained_for_emission` with `wait_budget()` = None; restorations wait on their ticket), and the worker build's `catch_unwind` is on main as `run_job` (9663ff32, 4755740b). - **Rebasing is a trap:** ec538f11 is already in main's history (merged on the fork and reverted there, fd984f92 / 76576864, both brought in by #3203), so `git rebase` would silently drop it and leave only the test commit. - As written, the build the submitting thread runs itself (`pso_async.rs` ~1215, `complete(&p, job())`) isn't wrapped in `catch_unwind`, so a panicking build would abort the process through the submit hook. - Note for #3318: if `resolve_retained_for_emission` starts honouring `XCL_CS_PSO_WAIT_MS` for dispatches, a run with only that variable set would put dispatches off and then cap the submit wait, bringing this case back. Fine: the per-pipeline 30 s bound with its WARN and counter, waiting only for compute pipelines, and the clear "Not tested" list. Recommendation: close; if the `alloc_pool::forget` changes still fix flaky `list_x` tests on main, they'd be a separate test-only PR. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2547:upstream-pr/2547'
git switch 'upstream-pr/2547'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2547'
git switch 'upstream-pr/2547'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2547'
git switch 'upstream-pr/2547'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2547'
git switch 'main'
git merge --squash 'upstream-pr/2547'
git switch 'main'
git merge --ff-only 'upstream-pr/2547'
git switch 'main'
git merge 'upstream-pr/2547'
git push origin 'main'
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!2537
No description provided.