D3D12.X: a recorded draw's pipeline wait honours XCL_GFX_PSO_WAIT_MS again #3318

Open
Prime1997 wants to merge 5 commits from upstream-pr/3318 into main
Prime1997 commented 2026-11-29 07:55:34 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Prime1997 on 2026-11-29T07:55:34Z.


Requested by Prime

Since the pinned one-shot pipelines for draws (ed5e9e47), a recorded draw resolves its pipeline through resolve_retained_for_emission, which waited by XCL_PSO_WAIT_MS alone. The graphics budget (XCL_GFX_PSO_WAIT_MS, a thread's share of each second) and the compute budget (XCL_CS_PSO_WAIT_MS) were read only by resolve_wait, which no draw reaches any more: with only XCL_GFX_PSO_WAIT_MS set, draws again waited until their pipeline was built.

Both paths now choose their budget in resolve_pending_budgets. With no budget set nothing changes: a draw still waits until its pipeline is built.

The second commit does the same for the binds and indirect draws that pin their pipeline, which still waited by XCL_PSO_WAIT_MS alone (unset by default: until the pipeline was built): resolve_and_pin_pending (in Wait mode, and in ForBind mode for a compute pipeline), resolve_wait_bound_and_pin and resolve_for_indirect. In a a retail title session on the PC below with XCL_GFX_PSO_WAIT_MS=100 and the first commit, threads still waited up to 103 s for graphics pipelines (161 waits of 1 s or more).

The fourth commit keeps a pinned dispatch on XCL_PSO_WAIT_MS alone, as before (pinned_wait_budgets): bounding it by XCL_CS_PSO_WAIT_MS too, as the second commit first did, skipped 300-315 compute passes a session in a retail world on that PC (2-12 before), and one of two runs ended in a GPU hang (0x887A0005, no page fault, no breadcrumbs). The native compute bind (select_for_native_bind) is unchanged. The third and fifth commits change the budget test only. The third to fifth commits correct the second and are to be squashed into it before review.

What is in it

  • crates/xcl/src/hle/d3d12x/pso_async.rs (first commit): resolve_pending_budgets (the budget choice of resolve_wait_budgets for a Pending already in hand), called by resolve_wait_budgets and by resolve_retained_for_emission; the budget test in used_tests also checks a retained draw (not waited for past the graphics budget) and a retained dispatch (waited for)
  • crates/xcl/src/hle/d3d12x/pso_async.rs (second and fourth commits): WaitBudgets and pinned_wait_budgets (a graphics pipeline: the XCL_GFX_PSO_WAIT_MS share; a compute one: XCL_PSO_WAIT_MS only), used by resolve_and_pin_pending_budgets (called by resolve_and_pin_pending), resolve_wait_bound_and_pin and resolve_for_indirect; the budget test also checks a pinned bind (not waited for past the graphics budget) and that a pinned dispatch gets no compute budget
  • crates/xcl/src/hle/d3d12x/pso_async.rs (third and fifth commits, test only): the budget test no longer pins a fake compute result, and waits (at most 10 s) for each fake build to end before releasing it: either had crashed the library test process

Tested

  • RTX 3060 Ti 8 GB (driver 32.0.16.1714), Intel Core i5-10400, 32 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0; the suite in debug, the smoke on a release build of the head commit
  • cargo test --workspace --no-fail-fast -- --test-threads=4 with the three uma_driver tests below skipped, on f54964792b: 2605 passed, 0 failed, 49 ignored (SKIPPED GPU tests: 28 lines: 21 no wave64 (this card runs wave32), 3 a wave32 per-lane form refused by the translator (#1426), 2 no heap windows (opt-in XCL_HEAP_WINDOWS=1), 1 no dxc.exe, 1 cannot disable the driver cache (needs Windows Developer Mode))
  • the three skipped tests on their own (cargo test -p xcl --lib -- --test-threads=1 uma_driver::tests::a_refused_gpu_upload_segment_becomes_custom uma_driver::tests::mixed_window_keeps_its_bytes_and_the_gpu_sees_every_segment uma_driver::tests::failed_restore_stops_before_importing_an_unbacked_window): 3 passed, 0 failed. They are left out of the whole run because on this PC's driver they can end the library test process (exit 0x7c10003, "coherent window could not be restored"), on main too
  • the library harness twice more (cargo test -p xcl --lib -- --test-threads=4, same skips): 2466 passed, 0 failed; 2466 passed, 0 failed
  • the same whole run on main fa204595a4: 2605 passed, 0 failed, 49 ignored, 28 SKIPPED lines (own-prs-20261129 run, same command)
  • retail title (60 s scripts/smoke.ps1, no input, copied profile and shader cache): blocks below
  • world-load runs of a retail title (420 s on a hidden desktop, copied profile and shader cache, no input; XCL_GFX_PSO_WAIT_MS=100 XCL_CS_PSO_WAIT_MS=100) of a batch of this branch with ten other changes: with the second commit (batch 49f78cb0) 300 "its dispatches are skipped" lines and a GPU hang at 362 s; with the fourth commit (batch e6863626) 3-13 such lines and no device removal in 3 of 3 runs, but no drawn world, because a pinned dispatch still waits until its pipeline is built (16-141 s at a time) when XCL_PSO_WAIT_MS is unset; with XCL_PSO_WAIT_MS=2000 the world ran (69 frames, 0 device removals, 72 such lines)

Regression run

xcl-smoke v1
commit: fa204595a488c60c6c5f905244f0172072c9c2a9
gpu: NVIDIA GeForce RTX 3060 Ti
title: 419239bf
seconds: 60
exit: 0x0
frames shown: 1334 (PresentX 1334)
presents per 2 s (last 3): 60 60 61
device removals: 0
crashes: 0
peak commit: 15272 MB
xcl-smoke v1
commit: f54964792b965e2de7ba002753a70ddd52bddeda
gpu: NVIDIA GeForce RTX 3060 Ti
title: 419239bf
seconds: 60
exit: 0x0
frames shown: 1354 (PresentX 1354)
presents per 2 s (last 3): 60 61 60
device removals: 0
crashes: 0
peak commit: 15297 MB

Not tested

  • AMD GPUs (this is an NVIDIA wave32 card)
  • the retail title's world: the 60 s runs end on the title's start-up screens
  • The 60 s smoke runs use the defaults (no XCL_GFX_PSO_WAIT_MS), so they do not reach the changed budget path. The world-load runs under Tested set the budgets but are of a batch with ten other changes, not of this branch alone.

AI use

  • Claude Code wrote the change and the test lines, wrote this description, and ran the tests and the smoke runs on this PC. The model is not named here: this session cannot tell which model served each turn.

Optional temporary Discord for coordinating contributor work, testing and comparing results.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5548803241 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3318). Originally posted by [Prime1997](https://github.com/Prime1997) on 2026-11-29T07:55:34Z. --- <!-- claude-projects-attribution: {"github_login":"Prime1997"} --> _Requested by **Prime**_ Since the pinned one-shot pipelines for draws (ed5e9e47), a recorded draw resolves its pipeline through `resolve_retained_for_emission`, which waited by `XCL_PSO_WAIT_MS` alone. The graphics budget (`XCL_GFX_PSO_WAIT_MS`, a thread's share of each second) and the compute budget (`XCL_CS_PSO_WAIT_MS`) were read only by `resolve_wait`, which no draw reaches any more: with only `XCL_GFX_PSO_WAIT_MS` set, draws again waited until their pipeline was built. Both paths now choose their budget in `resolve_pending_budgets`. With no budget set nothing changes: a draw still waits until its pipeline is built. The second commit does the same for the binds and indirect draws that pin their pipeline, which still waited by `XCL_PSO_WAIT_MS` alone (unset by default: until the pipeline was built): `resolve_and_pin_pending` (in `Wait` mode, and in `ForBind` mode for a compute pipeline), `resolve_wait_bound_and_pin` and `resolve_for_indirect`. In a a retail title session on the PC below with `XCL_GFX_PSO_WAIT_MS=100` and the first commit, threads still waited up to 103 s for graphics pipelines (161 waits of 1 s or more). The fourth commit keeps a pinned dispatch on `XCL_PSO_WAIT_MS` alone, as before (`pinned_wait_budgets`): bounding it by `XCL_CS_PSO_WAIT_MS` too, as the second commit first did, skipped 300-315 compute passes a session in a retail world on that PC (2-12 before), and one of two runs ended in a GPU hang (0x887A0005, no page fault, no breadcrumbs). The native compute bind (`select_for_native_bind`) is unchanged. The third and fifth commits change the budget test only. The third to fifth commits correct the second and are to be squashed into it before review. **What is in it** - `crates/xcl/src/hle/d3d12x/pso_async.rs` (first commit): `resolve_pending_budgets` (the budget choice of `resolve_wait_budgets` for a `Pending` already in hand), called by `resolve_wait_budgets` and by `resolve_retained_for_emission`; the budget test in `used_tests` also checks a retained draw (not waited for past the graphics budget) and a retained dispatch (waited for) - `crates/xcl/src/hle/d3d12x/pso_async.rs` (second and fourth commits): `WaitBudgets` and `pinned_wait_budgets` (a graphics pipeline: the `XCL_GFX_PSO_WAIT_MS` share; a compute one: `XCL_PSO_WAIT_MS` only), used by `resolve_and_pin_pending_budgets` (called by `resolve_and_pin_pending`), `resolve_wait_bound_and_pin` and `resolve_for_indirect`; the budget test also checks a pinned bind (not waited for past the graphics budget) and that a pinned dispatch gets no compute budget - `crates/xcl/src/hle/d3d12x/pso_async.rs` (third and fifth commits, test only): the budget test no longer pins a fake compute result, and waits (at most 10 s) for each fake build to end before releasing it: either had crashed the library test process **Tested** - RTX 3060 Ti 8 GB (driver 32.0.16.1714), Intel Core i5-10400, 32 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0; the suite in debug, the smoke on a release build of the head commit - `cargo test --workspace --no-fail-fast -- --test-threads=4` with the three `uma_driver` tests below skipped, on f54964792b96: 2605 passed, 0 failed, 49 ignored (SKIPPED GPU tests: 28 lines: 21 `no wave64` (this card runs wave32), 3 a wave32 per-lane form refused by the translator (#1426), 2 `no heap windows` (opt-in `XCL_HEAP_WINDOWS=1`), 1 `no dxc.exe`, 1 `cannot disable the driver cache` (needs Windows Developer Mode)) - the three skipped tests on their own (`cargo test -p xcl --lib -- --test-threads=1 uma_driver::tests::a_refused_gpu_upload_segment_becomes_custom uma_driver::tests::mixed_window_keeps_its_bytes_and_the_gpu_sees_every_segment uma_driver::tests::failed_restore_stops_before_importing_an_unbacked_window`): 3 passed, 0 failed. They are left out of the whole run because on this PC's driver they can end the library test process (exit 0x7c10003, "coherent window could not be restored"), on `main` too - the library harness twice more (`cargo test -p xcl --lib -- --test-threads=4`, same skips): 2466 passed, 0 failed; 2466 passed, 0 failed - the same whole run on `main` fa204595a488: 2605 passed, 0 failed, 49 ignored, 28 `SKIPPED` lines (own-prs-20261129 run, same command) - retail title (60 s `scripts/smoke.ps1`, no input, copied profile and shader cache): blocks below - world-load runs of a retail title (420 s on a hidden desktop, copied profile and shader cache, no input; `XCL_GFX_PSO_WAIT_MS=100 XCL_CS_PSO_WAIT_MS=100`) of a batch of this branch with ten other changes: with the second commit (batch 49f78cb0) 300 "its dispatches are skipped" lines and a GPU hang at 362 s; with the fourth commit (batch e6863626) 3-13 such lines and no device removal in 3 of 3 runs, but no drawn world, because a pinned dispatch still waits until its pipeline is built (16-141 s at a time) when `XCL_PSO_WAIT_MS` is unset; with `XCL_PSO_WAIT_MS=2000` the world ran (69 frames, 0 device removals, 72 such lines) **Regression run** ``` xcl-smoke v1 commit: fa204595a488c60c6c5f905244f0172072c9c2a9 gpu: NVIDIA GeForce RTX 3060 Ti title: 419239bf seconds: 60 exit: 0x0 frames shown: 1334 (PresentX 1334) presents per 2 s (last 3): 60 60 61 device removals: 0 crashes: 0 peak commit: 15272 MB ``` ``` xcl-smoke v1 commit: f54964792b965e2de7ba002753a70ddd52bddeda gpu: NVIDIA GeForce RTX 3060 Ti title: 419239bf seconds: 60 exit: 0x0 frames shown: 1354 (PresentX 1354) presents per 2 s (last 3): 60 61 60 device removals: 0 crashes: 0 peak commit: 15297 MB ``` **Not tested** - AMD GPUs (this is an NVIDIA wave32 card) - the retail title's world: the 60 s runs end on the title's start-up screens - The 60 s smoke runs use the defaults (no `XCL_GFX_PSO_WAIT_MS`), so they do not reach the changed budget path. The world-load runs under **Tested** set the budgets but are of a batch with ten other changes, not of this branch alone. **AI use** - Claude Code wrote the change and the test lines, wrote this description, and ran the tests and the smoke runs on this PC. The model is not named here: this session cannot tell which model served each turn. Optional temporary [Discord](https://discord.gg/6B4TykyC4W) for coordinating contributor work, testing and comparing results. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
andrewDoing commented 2026-11-29 08:06:07 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by andrewDoing on 2026-11-29T08:06:07Z.


One useful bound to document for the restored graphics path: XCL_GFX_PSO_WAIT_MS is a per-thread refill rate with an initial full bucket. It is not a rolling-window cap, and time spent blocked itself refills the bucket. With 500 ms configured, one newly started recording thread can spend almost the entire first second waiting on distinct cold draws, even without any other work between them.

I exercised the exact resolve_pending_budgets, gfx_wait_left/spent and budget_for logic from ca7fa013 with a deterministic monotonic clock and a wait backend that either returned ready immediately or consumed precisely the offered timeout. Eight consecutive distinct graphics timeouts received 500, 250, 125, 62.5, 31.25, 15.625, 7.812, 3.906 ms: 996.093 ms total, versus 4,000 ms for eight independent full allowances. Eight ready graphics pipelines consumed zero simulated time. With the same graphics setting, a 30 ms compute override and a 700 ms general fallback, eight distinct compute timeouts consumed 240 ms, confirming the separate per-dispatch bound. A fresh recording thread starts its own bucket.

This is consistent with restoring the existing token bucket; it matters for interpreting first-frame or per-present wait totals. I'd spell out initial burst plus refill when documenting the switch. These are offered-budget controls, not native driver timings, and worker/admission priority in #3307/#3284 is separate. OpenAI Codex prepared and ran the CPU control and drafted this note.

<!-- greyfinch-sync:ivall/xcl:comment:7252886964 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3318#issuecomment-7252886964). Originally posted by [andrewDoing](https://github.com/andrewDoing) on 2026-11-29T08:06:07Z. --- One useful bound to document for the restored graphics path: XCL_GFX_PSO_WAIT_MS is a per-thread refill rate **with an initial full bucket**. It is not a rolling-window cap, and time spent blocked itself refills the bucket. With 500 ms configured, one newly started recording thread can spend almost the entire first second waiting on distinct cold draws, even without any other work between them. I exercised the exact resolve_pending_budgets, gfx_wait_left/spent and budget_for logic from ca7fa013 with a deterministic monotonic clock and a wait backend that either returned ready immediately or consumed precisely the offered timeout. Eight consecutive distinct graphics timeouts received 500, 250, 125, 62.5, 31.25, 15.625, 7.812, 3.906 ms: **996.093 ms** total, versus 4,000 ms for eight independent full allowances. Eight ready graphics pipelines consumed zero simulated time. With the same graphics setting, a 30 ms compute override and a 700 ms general fallback, eight distinct compute timeouts consumed 240 ms, confirming the separate per-dispatch bound. A fresh recording thread starts its own bucket. This is consistent with restoring the existing token bucket; it matters for interpreting first-frame or per-present wait totals. I'd spell out initial burst plus refill when documenting the switch. These are offered-budget controls, not native driver timings, and worker/admission priority in #3307/#3284 is separate. OpenAI Codex prepared and ran the CPU control and drafted this note.
Aniseto commented 2026-11-29 08:41:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-29T08:41:51Z.


Ran the graphics-budget selection test at ca7fa013 on an NVIDIA Blackwell desktop part:

Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2140 (621.40), 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.

XCL_ADAPTER=NVIDIA cargo test -p xcl --lib the_graphics_budget_is_a_threads_for_a_second -- --test-threads=1
1 passed; 0 failed; 0 ignored; 0 measured; 2497 filtered out      (exit 0)

The test passes: a retained draw is not waited for past the graphics budget while a retained dispatch still uses the compute budget. The PR is a draft and its thread has only a note about the budget's initial refill; this adds a Blackwell datapoint on driver 32.0.16.2140. It is a CPU-side budget-selection test, not a title wait measurement.

Not tested: a retail title, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game 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:7253272672 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3318#issuecomment-7253272672). Originally posted by [Aniseto](https://github.com/Aniseto) on 2026-11-29T08:41:51Z. --- Ran the graphics-budget selection test at `ca7fa013` on an NVIDIA Blackwell desktop part: Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2140 (621.40), 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. ``` XCL_ADAPTER=NVIDIA cargo test -p xcl --lib the_graphics_budget_is_a_threads_for_a_second -- --test-threads=1 1 passed; 0 failed; 0 ignored; 0 measured; 2497 filtered out (exit 0) ``` The test passes: a retained draw is not waited for past the graphics budget while a retained dispatch still uses the compute budget. The PR is a draft and its thread has only a note about the budget's initial refill; this adds a Blackwell datapoint on driver 32.0.16.2140. It is a CPU-side budget-selection test, not a title wait measurement. Not tested: a retail title, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game 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.
Aniseto commented 2026-11-29 13:18:40 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-29T13:18:40Z.


Re-ran the graphics-budget test at ad569ed5 after the head moved from ca7fa013; this is a new response in the same thread, not an edit of my earlier report: https://github.com/xcl-dev/xcl/pull/3318#issuecomment-7253272672

Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2140 (621.40), 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.

XCL_ADAPTER=NVIDIA cargo test -p xcl --lib the_graphics_budget_is_a_threads_for_a_second -- --test-threads=1
1 passed; 0 failed; 0 ignored; 0 measured; 2497 filtered out      (exit 0)

The test still passes at the new head: a retained draw is not waited for past the graphics budget while a retained dispatch still uses the compute budget. This adds the new head and driver 32.0.16.2140 as dimensions; it is a CPU-side budget test, not a title wait measurement.

Not tested: a retail title, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game 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:7256443373 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3318#issuecomment-7256443373). Originally posted by [Aniseto](https://github.com/Aniseto) on 2026-11-29T13:18:40Z. --- Re-ran the graphics-budget test at `ad569ed5` after the head moved from `ca7fa013`; this is a new response in the same thread, not an edit of my earlier report: https://github.com/xcl-dev/xcl/pull/3318#issuecomment-7253272672 Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2140 (621.40), 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. ``` XCL_ADAPTER=NVIDIA cargo test -p xcl --lib the_graphics_budget_is_a_threads_for_a_second -- --test-threads=1 1 passed; 0 failed; 0 ignored; 0 measured; 2497 filtered out (exit 0) ``` The test still passes at the new head: a retained draw is not waited for past the graphics budget while a retained dispatch still uses the compute budget. This adds the new head and driver 32.0.16.2140 as dimensions; it is a CPU-side budget test, not a title wait measurement. Not tested: a retail title, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game 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.
Aniseto commented 2026-11-29 14:20:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-29T14:20:31Z.


Re-ran the graphics-budget test at 665d4e25 after the head moved from ad569ed5; this is a new response in the same thread, not an edit of my earlier report: https://github.com/xcl-dev/xcl/pull/3318#issuecomment-7256443373

Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2140 (621.40), 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.

XCL_ADAPTER=NVIDIA cargo test -p xcl --lib the_graphics_budget_is_a_threads_for_a_second -- --test-threads=1
1 passed; 0 failed; 0 ignored; 0 measured; 2497 filtered out      (exit 0)

The test still passes at the new head, which only changes a test fixture so it never pins a fake pipeline. This adds the new head and driver 32.0.16.2140 as dimensions. CPU-side budget test, not a title wait measurement.

Not tested: a retail title, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game 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:7257227563 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3318#issuecomment-7257227563). Originally posted by [Aniseto](https://github.com/Aniseto) on 2026-11-29T14:20:31Z. --- Re-ran the graphics-budget test at `665d4e25` after the head moved from `ad569ed5`; this is a new response in the same thread, not an edit of my earlier report: https://github.com/xcl-dev/xcl/pull/3318#issuecomment-7256443373 Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2140 (621.40), 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. ``` XCL_ADAPTER=NVIDIA cargo test -p xcl --lib the_graphics_budget_is_a_threads_for_a_second -- --test-threads=1 1 passed; 0 failed; 0 ignored; 0 measured; 2497 filtered out (exit 0) ``` The test still passes at the new head, which only changes a test fixture so it never pins a fake pipeline. This adds the new head and driver 32.0.16.2140 as dimensions. CPU-side budget test, not a title wait measurement. Not tested: a retail title, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game 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.
Aniseto commented 2026-11-29 14:39:56 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-29T14:39:56Z.


Re-ran the graphics-budget test at 559ff553 after the head moved from 665d4e25; this is a new response in the same thread, not an edit of my earlier report: https://github.com/xcl-dev/xcl/pull/3318#issuecomment-7257227563

Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2140 (621.40), 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.

XCL_ADAPTER=NVIDIA cargo test -p xcl --lib the_graphics_budget_is_a_threads_for_a_second -- --test-threads=1
1 passed; 0 failed; 0 ignored; 0 measured; 2497 filtered out      (exit 0)

The test still passes at the new head, whose commit restores the previous behaviour for a pinned dispatch. The test also asserts that a retained draw stays within the graphics budget and a retained dispatch uses the compute budget. This adds the new head and driver 32.0.16.2140 as dimensions. CPU-side test, not a title wait measurement.

Not tested: a retail title, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game 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:7257480066 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3318#issuecomment-7257480066). Originally posted by [Aniseto](https://github.com/Aniseto) on 2026-11-29T14:39:56Z. --- Re-ran the graphics-budget test at `559ff553` after the head moved from `665d4e25`; this is a new response in the same thread, not an edit of my earlier report: https://github.com/xcl-dev/xcl/pull/3318#issuecomment-7257227563 Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2140 (621.40), 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. ``` XCL_ADAPTER=NVIDIA cargo test -p xcl --lib the_graphics_budget_is_a_threads_for_a_second -- --test-threads=1 1 passed; 0 failed; 0 ignored; 0 measured; 2497 filtered out (exit 0) ``` The test still passes at the new head, whose commit restores the previous behaviour for a pinned dispatch. The test also asserts that a retained draw stays within the graphics budget and a retained dispatch uses the compute budget. This adds the new head and driver 32.0.16.2140 as dimensions. CPU-side test, not a title wait measurement. Not tested: a retail title, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game 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.
Aniseto commented 2026-11-29 15:24:11 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-29T15:24:11Z.


Re-ran the graphics-budget test at f5496479 after the head moved from 559ff553; this is a new response in the same thread, not an edit of my earlier report: https://github.com/xcl-dev/xcl/pull/3318#issuecomment-7257480066

Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2140 (621.40), 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.

XCL_ADAPTER=NVIDIA cargo test -p xcl --lib the_graphics_budget_is_a_threads_for_a_second -- --test-threads=1
1 passed; 0 failed; 0 ignored; 0 measured; 2497 filtered out      (exit 0)

The test still passes at the new head, which only changes how the test waits for its fake builds before releasing them. This adds the new head and driver 32.0.16.2140 as dimensions. CPU-side budget test, not a title wait measurement.

Not tested: a retail title, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game 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:7258060936 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3318#issuecomment-7258060936). Originally posted by [Aniseto](https://github.com/Aniseto) on 2026-11-29T15:24:11Z. --- Re-ran the graphics-budget test at `f5496479` after the head moved from `559ff553`; this is a new response in the same thread, not an edit of my earlier report: https://github.com/xcl-dev/xcl/pull/3318#issuecomment-7257480066 Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2140 (621.40), 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. ``` XCL_ADAPTER=NVIDIA cargo test -p xcl --lib the_graphics_budget_is_a_threads_for_a_second -- --test-threads=1 1 passed; 0 failed; 0 ignored; 0 measured; 2497 filtered out (exit 0) ``` The test still passes at the new head, which only changes how the test waits for its fake builds before releasing them. This adds the new head and driver 32.0.16.2140 as dimensions. CPU-side budget test, not a title wait measurement. Not tested: a retail title, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game 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.
minimalhipster990 commented 2026-11-29 15:52:20 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by minimalhipster990 on 2026-11-29T15:52:20Z.


Retail run with XCL_GFX_PSO_WAIT_MS=50 on RTX 4090: at the current head f5496479 the title reaches its world in 2 of 2 runs. On main it reached it in 0 of 8. This covers the case the description lists as not measured.

Setup

  • RTX 4090, NVIDIA 621.40, Windows 11 build 26300, Rust 1.99.1. Release builds with --locked:
    • main 7a649b0e7341c1daf1bcf2f3101e9518a8a8c16f.
    • The current head f54964792b965e2de7ba002753a70ddd52bddeda merged onto that main (clean merge, git diff --check clean), giving local merge commit 27853b44.
    • The earlier head ad569ed57e8b2bec41817a53dae312a49105887b merged the same way (ce8c60cf), run before the head moved.
  • cargo test --release --locked -p xcl --lib -- the_graphics_budget_is_a_threads_for_a_second --test-threads=1: 1 passed, 0 failed on each merged tree.
  • Retail title (Series X profile), the same save and inputs, 600 s per run, XCL_GFX_PSO_WAIT_MS=50 XCL_CS_PSO_WAIT_MS=200 XCL_HEAP_WINDOWS=1 XCL_UMA_WINDOWS=16 XCL_COHERENT_HEAPS=sparse XCL_TEXTURE_LEVEL_PAGES=1 XCL_COHERENT_MB=3990 XCL_TWO_PASS_MB=3072. XCL_PSO_WAIT_MS and XCL_DIRECT_DXIL were unset.
  • Every run below started from a verified copy of the same warm XCL cache (from an earlier main run). The NVIDIA driver cache was left to the driver. The main and ad569ed5 runs were run in ABBA order. The two f5496479 runs came after them, back to back.

Results

"World" means the first 2 s XCL_ACTIVITY interval with 10,000 or more draws. The budget line (still being built after … ms) is logged for the first 16 events and then at powers of two, so the line count is a sample. The last counter value is in brackets.

run world at after it budget lines graphics waits over 1 s compute programs skipped end
main A – (last present 134.6 s) – 0 23 (51.4 s in all) 0 device removed at 143.7 s
ad569ed5 A 209.5 s 2.9 presents/s, ~4,800 draws per present 21 (257) 0 193 device removed at 566.2 s
ad569ed5 B 168.7 s 0.8 presents/s, ~3,300 draws per present 22 (513) 0 102 device removed at 189.7 s
main B – (last present 126.5 s) – 0 8 (31.1 s in all) 0 device removed at 133.4 s
f5496479 A 320.5 s 0.9 presents/s, ~5,000 draws per present 21 (257) 0 15 device removed at 417.0 s (the process then hung and was stopped by the harness)
f5496479 B 239.6 s 1.2 presents/s, ~5,100 draws per present 20 (129) 0 2 device removed at 256.8 s

"Compute programs skipped" counts the compute pipeline of record … not built after 200 ms: its dispatches are skipped lines (one per program).

  • At ad569ed5 a pinned dispatch also stopped waiting after XCL_CS_PSO_WAIT_MS. So those two runs skipped 102–193 compute programs, against 0 on main, and do not isolate the graphics budget.
  • At f5496479 pinned dispatches wait as before: 15 and 2 programs skipped. Those runs logged 17 and 15 compute pipeline waits (214 s and 65 s in all) and reached the world later, but still with no graphics wait over 1 s.

With the same budget, six earlier main runs never reached the world either, whether XCL_DIRECT_DXIL was unset or 1. Each had 0 budget lines and 3–197 graphics waits over 1 s. The captured frames show an interior (a figure at a window) with the PR, and loading artwork on main.

Device removals. These are not caused by this PR, as far as I can tell. All 6 removals in this table, and 3 of the 6 earlier main runs, ended with system commit almost exhausted: 1.2–5.4 GB left at removal (53.8–58.3 GB in use). DRED had no breadcrumbs. Process commit was 42–46 GB at the last memory report, 33–36 GB of it in other. The PR runs last longer, so they reach the same memory limit later in the world.

Not tested: the full workspace suite (only the budget test above), AMD, the XCL_PSO_REBUILD_RECIPES / pressure-policy paths this PR also changes, and runs without XCL_GFX_PSO_WAIT_MS. With that variable unset the PR's description says nothing changes, and I did not check it. Two runs per tree, so the arrival times are rough: they vary a lot from run to run.

AI use: Claude Code (Claude Opus 5.5) built the trees, ran the tests and the replays, and wrote this report. The person running these tests asked for it.

<!-- greyfinch-sync:ivall/xcl:comment:7258433777 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3318#issuecomment-7258433777). Originally posted by [minimalhipster990](https://github.com/minimalhipster990) on 2026-11-29T15:52:20Z. --- **Retail run with `XCL_GFX_PSO_WAIT_MS=50` on RTX 4090: at the current head `f5496479` the title reaches its world in 2 of 2 runs. On `main` it reached it in 0 of 8.** This covers the case the description lists as not measured. **Setup** - RTX 4090, NVIDIA 621.40, Windows 11 build 26300, Rust 1.99.1. Release builds with `--locked`: - `main` `7a649b0e7341c1daf1bcf2f3101e9518a8a8c16f`. - The current head `f54964792b965e2de7ba002753a70ddd52bddeda` merged onto that `main` (clean merge, `git diff --check` clean), giving local merge commit `27853b44`. - The earlier head `ad569ed57e8b2bec41817a53dae312a49105887b` merged the same way (`ce8c60cf`), run before the head moved. - `cargo test --release --locked -p xcl --lib -- the_graphics_budget_is_a_threads_for_a_second --test-threads=1`: 1 passed, 0 failed on each merged tree. - Retail title (Series X profile), the same save and inputs, 600 s per run, `XCL_GFX_PSO_WAIT_MS=50 XCL_CS_PSO_WAIT_MS=200 XCL_HEAP_WINDOWS=1 XCL_UMA_WINDOWS=16 XCL_COHERENT_HEAPS=sparse XCL_TEXTURE_LEVEL_PAGES=1 XCL_COHERENT_MB=3990 XCL_TWO_PASS_MB=3072`. `XCL_PSO_WAIT_MS` and `XCL_DIRECT_DXIL` were unset. - Every run below started from a verified copy of the same warm XCL cache (from an earlier `main` run). The NVIDIA driver cache was left to the driver. The `main` and `ad569ed5` runs were run in ABBA order. The two `f5496479` runs came after them, back to back. **Results** "World" means the first 2 s `XCL_ACTIVITY` interval with 10,000 or more draws. The budget line (`still being built after … ms`) is logged for the first 16 events and then at powers of two, so the line count is a sample. The last counter value is in brackets. | run | world at | after it | budget lines | graphics waits over 1 s | compute programs skipped | end | |---|---|---|---|---|---|---| | `main` A | – (last present 134.6 s) | – | 0 | 23 (51.4 s in all) | 0 | device removed at 143.7 s | | `ad569ed5` A | 209.5 s | 2.9 presents/s, ~4,800 draws per present | 21 (257) | 0 | 193 | device removed at 566.2 s | | `ad569ed5` B | 168.7 s | 0.8 presents/s, ~3,300 draws per present | 22 (513) | 0 | 102 | device removed at 189.7 s | | `main` B | – (last present 126.5 s) | – | 0 | 8 (31.1 s in all) | 0 | device removed at 133.4 s | | `f5496479` A | 320.5 s | 0.9 presents/s, ~5,000 draws per present | 21 (257) | 0 | 15 | device removed at 417.0 s (the process then hung and was stopped by the harness) | | `f5496479` B | 239.6 s | 1.2 presents/s, ~5,100 draws per present | 20 (129) | 0 | 2 | device removed at 256.8 s | "Compute programs skipped" counts the `compute pipeline of record … not built after 200 ms: its dispatches are skipped` lines (one per program). - At `ad569ed5` a pinned dispatch also stopped waiting after `XCL_CS_PSO_WAIT_MS`. So those two runs skipped 102–193 compute programs, against 0 on `main`, and do not isolate the graphics budget. - At `f5496479` pinned dispatches wait as before: 15 and 2 programs skipped. Those runs logged 17 and 15 compute pipeline waits (214 s and 65 s in all) and reached the world later, but still with no graphics wait over 1 s. With the same budget, six earlier `main` runs never reached the world either, whether `XCL_DIRECT_DXIL` was unset or `1`. Each had 0 budget lines and 3–197 graphics waits over 1 s. The captured frames show an interior (a figure at a window) with the PR, and loading artwork on `main`. **Device removals.** These are not caused by this PR, as far as I can tell. All 6 removals in this table, and 3 of the 6 earlier `main` runs, ended with system commit almost exhausted: 1.2–5.4 GB left at removal (53.8–58.3 GB in use). DRED had no breadcrumbs. Process commit was 42–46 GB at the last memory report, 33–36 GB of it in `other`. The PR runs last longer, so they reach the same memory limit later in the world. **Not tested:** the full workspace suite (only the budget test above), AMD, the `XCL_PSO_REBUILD_RECIPES` / pressure-policy paths this PR also changes, and runs without `XCL_GFX_PSO_WAIT_MS`. With that variable unset the PR's description says nothing changes, and I did not check it. Two runs per tree, so the arrival times are rough: they vary a lot from run to run. AI use: Claude Code (Claude Opus 5.5) built the trees, ran the tests and the replays, and wrote this report. The person running these tests asked for it.
KOLESNiii commented 2026-11-29 22:39:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-29T22:39:27Z.

Review: COMMENTED


Static review of 665d4e25 for the stack in the #3041 comparison.

A compute-only wait budget can bring back command-list splitting in the measured revision. With only XCL_CS_PSO_WAIT_MS set, native compute bind can time out and leave an initial pipeline pending. The retained deferral guard still checks only XCL_PSO_WAIT_MS. With allocator pooling enabled, repeated dispatches can split the recording while that build remains pending. The guard's comment records prior command-list memory exhaustion from repeated splitting under short budgets. This concerns 665d4e25, before the later pinned-dispatch fixes described in the PR. Native bind ?? Deferral guard

Review assisted by Codex (GPT-6, exact variant unavailable). No new build or GPU run for this review.

<!-- greyfinch-sync:ivall/xcl:review:6105175424 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3318#pullrequestreview-6105175424). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-29T22:39:27Z. **Review:** COMMENTED --- Static review of `665d4e25` for the stack in the [#3041 comparison](https://github.com/xcl-dev/xcl/issues/3041#issuecomment-7263214809). **A compute-only wait budget can bring back command-list splitting in the measured revision.** With only `XCL_CS_PSO_WAIT_MS` set, native compute bind can time out and leave an initial pipeline pending. The retained deferral guard still checks only `XCL_PSO_WAIT_MS`. With allocator pooling enabled, repeated dispatches can split the recording while that build remains pending. The guard's comment records prior command-list memory exhaustion from repeated splitting under short budgets. This concerns `665d4e25`, before the later pinned-dispatch fixes described in the PR. [Native bind](https://github.com/xcl-dev/xcl/blob/665d4e25/crates/xcl/src/hle/d3d12x/pso_async.rs#L11453-L11457) ?? [Deferral guard](https://github.com/xcl-dev/xcl/blob/665d4e25/crates/xcl/src/hle/d3d12x/list_x.rs#L4348-L4377) Review assisted by Codex (GPT-6, exact variant unavailable). No new build or GPU run for this review.
bmjask commented 2026-11-29 22:43:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-11-29T22:43:32Z.

Review: COMMENTED


Critical review of current head f5496479. The latest changes preserve unbounded waiting for pinned compute while applying the graphics budget to retained draws and indirect graphics binds; that addresses the prior missing-dispatch regression. I found no current-head code blocker in the budget routing. Please keep the GPU-world regression as a merge gate: with XCL_GFX_PSO_WAIT_MS=50, count skipped graphics draws, pinned-compute omissions, device removals, and frame time over the same scripted scene. The RTX 4090 result is encouraging but covers two runs. No local Windows run.

<!-- greyfinch-sync:ivall/xcl:review:6105191243 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3318#pullrequestreview-6105191243). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-29T22:43:32Z. **Review:** COMMENTED --- Critical review of current head `f5496479`. The latest changes preserve unbounded waiting for *pinned compute* while applying the graphics budget to retained draws and indirect graphics binds; that addresses the prior missing-dispatch regression. I found no current-head code blocker in the budget routing. Please keep the GPU-world regression as a merge gate: with `XCL_GFX_PSO_WAIT_MS=50`, count skipped graphics draws, pinned-compute omissions, device removals, and frame time over the same scripted scene. The [RTX 4090 result](https://github.com/xcl-dev/xcl/pull/3318) is encouraging but covers two runs. No local Windows run.
Foniass commented 2026-12-01 04:07:52 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:07:52Z.


Review (head f5496479, diff read, not a merge-check; draft, so not built or run):

  • Direct and indirect compute now use different budgets. resolve_retained_for_emission now passes cs_wait_budget() (pso_async.rs ~12428), so a direct or submit-replayed Dispatch is skipped once XCL_CS_PSO_WAIT_MS runs out (what dispatches did before 056fc43b, which the description doesn't mention). But pinned_wait_budgets (~12318) keeps ExecuteIndirect and DispatchMesh compute on XCL_PSO_WAIT_MS, and the PR's fourth commit gives the reason: the CS cutoff skipped about 300 compute passes and hung the GPU. Either make the two paths consistent or explain why direct dispatches are safe, and test a dispatch with a compute budget set (the test at ~10528 passes cs = None).
  • With only XCL_CS_PSO_WAIT_MS set, put-off dispatches can be dropped again. On main a dispatch is only put off when XCL_PSO_WAIT_MS is unset (79b19941 records it at once with the bounded wait otherwise), and the submit replay is safe because resolve_retained_for_emission waits with wait_budget(), which is None then. If it now also honours cs_wait_budget(), a run with only XCL_CS_PSO_WAIT_MS set still puts dispatches off but gives the submit wait a limit, so a put-off dispatch can be skipped at the submit, the case #2547 was about. (Added after reviewing #2547.)
  • The test doesn't fail without the fix. It calls resolve_pending_budgets directly, and ~10552 compares pinned_wait_budgets() with its own definition, so it would pass even if resolve_retained_for_emission kept wait_budget().
  • resolve_wait_bound_and_pin (~12409) is #[cfg(test)], but the description lists it among the changed bind paths.
  • CI's build-and-test fails in tests outside pso_async (main's CI at 3b6a91ed failed the same geometry tests that day), so it needs a rebase and rerun. Commits 3-5 are fixups to squash, and AI use names no model.

Fine: with no budget variable set nothing changes. resolve_pending_budgets picks the budget exactly as main's resolve_wait_budgets, and each path counts one use of the pipeline. A recorded draw past its budget is skipped, as on main with XCL_PSO_WAIT_MS. "Again" checks out: ed5e9e47 moved draws off the graphics budget. No overlap with #3306 / #3307 (worker and compile-gate priority).

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

<!-- greyfinch-sync:ivall/xcl:comment:7300409794 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3318#issuecomment-7300409794). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T04:07:52Z. --- Review (head f5496479, diff read, not a merge-check; draft, so not built or run): - **Direct and indirect compute now use different budgets.** `resolve_retained_for_emission` now passes `cs_wait_budget()` (`pso_async.rs` ~12428), so a direct or submit-replayed Dispatch is skipped once `XCL_CS_PSO_WAIT_MS` runs out (what dispatches did before 056fc43b, which the description doesn't mention). But `pinned_wait_budgets` (~12318) keeps ExecuteIndirect and DispatchMesh compute on `XCL_PSO_WAIT_MS`, and the PR's fourth commit gives the reason: the CS cutoff skipped about 300 compute passes and hung the GPU. Either make the two paths consistent or explain why direct dispatches are safe, and test a dispatch with a compute budget set (the test at ~10528 passes `cs = None`). - **With only `XCL_CS_PSO_WAIT_MS` set, put-off dispatches can be dropped again.** On main a dispatch is only put off when `XCL_PSO_WAIT_MS` is unset (79b19941 records it at once with the bounded wait otherwise), and the submit replay is safe because `resolve_retained_for_emission` waits with `wait_budget()`, which is None then. If it now also honours `cs_wait_budget()`, a run with only `XCL_CS_PSO_WAIT_MS` set still puts dispatches off but gives the submit wait a limit, so a put-off dispatch can be skipped at the submit, the case #2547 was about. (Added after reviewing #2547.) - **The test doesn't fail without the fix.** It calls `resolve_pending_budgets` directly, and ~10552 compares `pinned_wait_budgets()` with its own definition, so it would pass even if `resolve_retained_for_emission` kept `wait_budget()`. - `resolve_wait_bound_and_pin` (~12409) is `#[cfg(test)]`, but the description lists it among the changed bind paths. - CI's build-and-test fails in tests outside pso_async (main's CI at 3b6a91ed failed the same geometry tests that day), so it needs a rebase and rerun. Commits 3-5 are fixups to squash, and AI use names no model. Fine: with no budget variable set nothing changes. `resolve_pending_budgets` picks the budget exactly as main's `resolve_wait_budgets`, and each path counts one use of the pipeline. A recorded draw past its budget is skipped, as on main with `XCL_PSO_WAIT_MS`. "Again" checks out: ed5e9e47 moved draws off the graphics budget. No overlap with #3306 / #3307 (worker and compile-gate priority). AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
Foniass commented 2026-12-01 17:39:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T17:39:59Z.


Test report (not a merge-check: draft)
base: b2b1f109d2
head: f54964792b
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2901 passed, 1 failed, 51 ignored; SKIPPED: 28 (20 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 no heap windows, 1 cannot disable the driver cache, 3 others; the same set as on main); failing: hle::d3d12x::uma_driver::tests::mixed_window_keeps_its_bytes_and_the_gpu_sees_every_segment
review: not repeated here; my review of this same head is at https://github.com/xcl-dev/xcl/pull/3318#issuecomment-7300409794, and its findings stand. This run adds what reading couldn't: whether the change merges, builds and passes the whole suite on current main.
performance: no smoke run. The first run of this merge lost the lib test binary to the known uma_driver coherent-window abort; this is the rerun.
assessment: 1 test failed in this run: uma_driver::tests::mixed_window_keeps_its_bytes_and_the_gpu_sees_every_segment ("remake_mixed: segment 0 (64 MB CUSTOM): Map gave

, wanted "). This PR doesn't touch heaps or the mixed window, and the same intermittent failure hit other PR runs on this machine today while two full runs of main passed, so it is most likely not this PR. The rest of the suite passes, and the findings in my review stand
hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5

AI-written and posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7319657908 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3318#issuecomment-7319657908). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T17:39:59Z. --- Test report (not a merge-check: draft) base: b2b1f109d27e746a62ec95b04dd1f9924452e682 head: f54964792b965e2de7ba002753a70ddd52bddeda merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2901 passed, 1 failed, 51 ignored; SKIPPED: 28 (20 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 no heap windows, 1 cannot disable the driver cache, 3 others; the same set as on main); failing: hle::d3d12x::uma_driver::tests::mixed_window_keeps_its_bytes_and_the_gpu_sees_every_segment review: not repeated here; my review of this same head is at https://github.com/xcl-dev/xcl/pull/3318#issuecomment-7300409794, and its findings stand. This run adds what reading couldn't: whether the change merges, builds and passes the whole suite on current main. performance: no smoke run. The first run of this merge lost the lib test binary to the known `uma_driver` coherent-window abort; this is the rerun. assessment: 1 test failed in this run: `uma_driver::tests::mixed_window_keeps_its_bytes_and_the_gpu_sees_every_segment` ("remake_mixed: segment 0 (64 MB CUSTOM): Map gave <address>, wanted <other address>"). This PR doesn't touch heaps or the mixed window, and the same intermittent failure hit other PR runs on this machine today while two full runs of main passed, so it is most likely not this PR. The rest of the suite passes, and the findings in my review stand hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5 AI-written and 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/3318:upstream-pr/3318'
git switch 'upstream-pr/3318'

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