d3d12x: cap cumulative PSO bind waits per PresentX frame #2104

Open
rdj415 wants to merge 9 commits from upstream-pr/2114 into main
rdj415 commented 2026-11-25 04:55:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by rdj415 on 2026-11-25T04:55:47Z.


Split a4cb014c (XCL_HLSL_CS) out into #3060 (shaders-hlsl-cs-override) per the D95 triage review, leaving this PR cleanly merged with upstream/main (6089122a) and scoped strictly to per-frame PSO bind wait caps, graphics/mesh/compute lane isolation, and XCL_SKIP_DXIL.

World capture

cap59_frame_16250 cap43_target1_19282

What is in it

  • crates/xcl/src/hle/d3d12x/present.rs: increment and expose frame_generation() on PresentX.
  • crates/xcl/src/hle/d3d12x/pso_async.rs: cumulative per-frame FrameBudget + timed_waiters/unbounded_wanted in Demand, isolated gfx_queue / ms_queue / queue lanes preserving NEEDED (need_by_submit), drop_unstarted_job, and p.stand(pso) on exhausted frame budget, plus unit tests (removing a duplicate WORKER_SATURATION_LOCK lock in a_released_queued_pipeline_is_not_built_by_normal_workers).
  • crates/xcl/src/hle/d3d12x/real.rs: XCL_SKIP_DXIL compute hash filtering before warm dispatch_chain lookup, OwnedDesc::has_mesh(), and lane-routed submit_lane / submit_lazy_lane.

Tested

  • Cross-compiled (cargo xwin build --release --workspace + cargo xwin test --no-run --workspace, rustc 1.100.0 (0ef1bc386 2026-11-09)) on a9b17bf0: clean build, 0 errors.
  • Targeted suites on a9b17bf0 (Linux Proton / NVIDIA RTX 5060 Ti 620.70.06): pso_async (22 passed, 0 failed), hle::d3d12x::present (13 passed, 0 failed), shader_cache_tests (23 passed, 0 failed), owned_desc_mesh_tests (1 passed, 0 failed), big_compile_tests (11 passed, 0 failed), python3 scripts/test_pr_check.py (13 passed, 0 failed).
  • Native Windows 11 / NVIDIA GeForce RTX 5060 Ti (a9b17bf01ffe3f1ae1ce55c0877cf1c2e1d5e003, cargo 1.98.0-nightly): .\scripts\test.ps1 -- --skip test_title_runs_and_game_folder_is_untouched --skip fuzz_validate_and_gpu -> 1470 passed, 0 failed, 47 ignored, 5 filtered out (27 GPU tests skipped on this adapter: 23 no wave64, 3 #1426 f16/f32 semantics, 1 Windows Developer Mode driver cache check).

Regression run
Both runs executed with XCL_NETWORK=0 and XCL_PREPARE=0.

main:

xcl-smoke v1
commit: 83b008188efbf954b846667f48d75e3fa9310a01
gpu: NVIDIA GeForce RTX 5060 Ti
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 810 (PresentX 810)
presents per 2 s (last 3): 61 60 61
device removals: 0
crashes: 0
peak commit: 8427 MB

PR:

xcl-smoke v1
commit: a9b17bf01ffe3f1ae1ce55c0877cf1c2e1d5e003
gpu: NVIDIA GeForce RTX 5060 Ti
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1525 (PresentX 1525)
presents per 2 s (last 3): 51 60 60
device removals: 0
crashes: 0
peak commit: 10260 MB

Not tested

  • fuzz_validate_and_gpu_0..3 and test_title_runs_and_game_folder_is_untouched (skipped in test.ps1).
  • 27 GPU tests skipped on this Windows 11 / RTX 5060 Ti adapter (no wave64, #1426 f16/f32 semantics, and Windows Developer Mode driver cache check).

AI use

  • Gemini 4 Hydrogen: resolved upstream/main merge conflicts in pso_async.rs and real.rs, split XCL_HLSL_CS out to shaders-hlsl-cs-override, merged upstream/main (6089122a), and ran Linux Proton targeted checks plus native Windows 11 test.ps1 and smoke.ps1 on a9b17bf01ffe3f1ae1ce55c0877cf1c2e1d5e003.
<!-- greyfinch-sync:ivall/xcl:issue:5485429503 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2114). Originally posted by [rdj415](https://github.com/rdj415) on 2026-11-25T04:55:47Z. --- Split `a4cb014c` (`XCL_HLSL_CS`) out into #3060 (`shaders-hlsl-cs-override`) per the D95 triage review, leaving this PR cleanly merged with `upstream/main` (`6089122a`) and scoped strictly to per-frame PSO bind wait caps, graphics/mesh/compute lane isolation, and `XCL_SKIP_DXIL`. ### World capture <img width="960" height="540" alt="cap59_frame_16250" src="https://github.com/user-attachments/assets/2b2675a6-44e2-44e2-992a-f32762d78694" /> <img width="640" height="360" alt="cap43_target1_19282" src="https://github.com/user-attachments/assets/fe4036ce-ba4a-4418-afa9-a9acda79bf98" /> **What is in it** - `crates/xcl/src/hle/d3d12x/present.rs`: increment and expose `frame_generation()` on `PresentX`. - `crates/xcl/src/hle/d3d12x/pso_async.rs`: cumulative per-frame `FrameBudget` + `timed_waiters`/`unbounded_wanted` in `Demand`, isolated `gfx_queue` / `ms_queue` / `queue` lanes preserving `NEEDED` (`need_by_submit`), `drop_unstarted_job`, and `p.stand(pso)` on exhausted frame budget, plus unit tests (removing a duplicate `WORKER_SATURATION_LOCK` lock in `a_released_queued_pipeline_is_not_built_by_normal_workers`). - `crates/xcl/src/hle/d3d12x/real.rs`: `XCL_SKIP_DXIL` compute hash filtering before `warm` `dispatch_chain` lookup, `OwnedDesc::has_mesh()`, and lane-routed `submit_lane` / `submit_lazy_lane`. **Tested** - Cross-compiled (`cargo xwin build --release --workspace` + `cargo xwin test --no-run --workspace`, `rustc 1.100.0 (0ef1bc386 2026-11-09)`) on `a9b17bf0`: clean build, 0 errors. - Targeted suites on `a9b17bf0` (Linux Proton / NVIDIA RTX 5060 Ti `620.70.06`): `pso_async` (22 passed, 0 failed), `hle::d3d12x::present` (13 passed, 0 failed), `shader_cache_tests` (23 passed, 0 failed), `owned_desc_mesh_tests` (1 passed, 0 failed), `big_compile_tests` (11 passed, 0 failed), `python3 scripts/test_pr_check.py` (13 passed, 0 failed). - Native Windows 11 / NVIDIA GeForce RTX 5060 Ti (`a9b17bf01ffe3f1ae1ce55c0877cf1c2e1d5e003`, `cargo 1.98.0-nightly`): `.\scripts\test.ps1 -- --skip test_title_runs_and_game_folder_is_untouched --skip fuzz_validate_and_gpu` -> 1470 passed, 0 failed, 47 ignored, 5 filtered out (27 GPU tests skipped on this adapter: 23 `no wave64`, 3 `#1426` f16/f32 semantics, 1 `Windows Developer Mode` driver cache check). **Regression run** Both runs executed with `XCL_NETWORK=0` and `XCL_PREPARE=0`. main: ``` xcl-smoke v1 commit: 83b008188efbf954b846667f48d75e3fa9310a01 gpu: NVIDIA GeForce RTX 5060 Ti title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 810 (PresentX 810) presents per 2 s (last 3): 61 60 61 device removals: 0 crashes: 0 peak commit: 8427 MB ``` PR: ``` xcl-smoke v1 commit: a9b17bf01ffe3f1ae1ce55c0877cf1c2e1d5e003 gpu: NVIDIA GeForce RTX 5060 Ti title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1525 (PresentX 1525) presents per 2 s (last 3): 51 60 60 device removals: 0 crashes: 0 peak commit: 10260 MB ``` **Not tested** - `fuzz_validate_and_gpu_0..3` and `test_title_runs_and_game_folder_is_untouched` (skipped in `test.ps1`). - 27 GPU tests skipped on this Windows 11 / RTX 5060 Ti adapter (`no wave64`, `#1426` f16/f32 semantics, and `Windows Developer Mode` driver cache check). **AI use** - Gemini 4 Hydrogen: resolved `upstream/main` merge conflicts in `pso_async.rs` and `real.rs`, split `XCL_HLSL_CS` out to `shaders-hlsl-cs-override`, merged `upstream/main` (`6089122a`), and ran Linux Proton targeted checks plus native Windows 11 `test.ps1` and `smoke.ps1` on `a9b17bf01ffe3f1ae1ce55c0877cf1c2e1d5e003`.
milesah3ad commented 2026-11-25 06:05:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by milesah3ad on 2026-11-25T05:14:40Z.


Test report and three review notes for 8044bed. The split came out well: 249 lines in two files, and the tests reset per frame as described.

Tested

  • RTX 5080 16 GB, driver 621.24; Ryzen 7 9800X3D, 64 GB; Windows 11 Pro 26300; rustc 1.100.0 MSVC; DXC 1.9.2609.5; debug.
  • cargo test -p xcl --lib pso_async: 9 passed, 0 failed.
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 1,093 passed, 4 failed, 46 ignored. The 4 are gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3 (0x8007000E), the same as on main here, so not this PR. SKIPPED: the wave64-only tests.
  • The two new timing tests (frame_budget) 20 times in a row with 14 busy threads loading the 16-thread CPU: 20 / 20 passed. The < 20 ms and < 250 ms bounds held under load.

Review notes

  1. This changes the default, not only the knobs. On main, with XCL_PSO_WAIT_MS unset, a bind waits until its pipeline is built. The module's own doc says why for compute: "a skipped dispatch would corrupt what it computes". With this PR, while a title runs, the unset default becomes 250 ms per pipeline and 2,000 ms per frame. So compute dispatches are skipped during compile bursts by default (your run: 46,227 skipped). That is what gets the title past its watchdog, and it is also a candidate for wrong output in those frames (cf. the flat grey intro shots on #505). Worth stating plainly in the description and README. It may also be worth asking @ivall whether the first step should be opt-in, as heap windows were.
  2. The cap is per thread. FRAME_BUDGET is thread_local! and the WaitCaps doc says "per thread within one PresentX frame", but the description and the wait_caps doc say "cumulative per frame". With several recording threads, the waits of one frame can add up to N × 2,000 ms if they happen one after another (they overlap when the threads wait at the same time). Either the docs could say per thread, or a process-wide atomic keyed on frame_generation would make it per frame.
  3. Minor, resolve_caps: XCL_PSO_WAIT_MS=0 ("wait until built") together with XCL_PSO_FRAME_WAIT_MS=N gives per_pso = per_frame = N, so the 0 no longer means "until built". That may be intended (the frame cap wins), but the doc of wait_caps doesn't say so.

Not tested: any title (no smoke pair here), AMD / Intel, release builds.

AI use: Claude Code (Claude Opus 5.5) ran the tests on the machine above, read the diff and wrote this. I checked the results.

<!-- greyfinch-sync:ivall/xcl:comment:7153583624 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2114#issuecomment-7153583624). Originally posted by [milesah3ad](https://github.com/milesah3ad) on 2026-11-25T05:14:40Z. --- Test report and three review notes for `8044bed`. The split came out well: 249 lines in two files, and the tests reset per frame as described. **Tested** - RTX 5080 16 GB, driver 621.24; Ryzen 7 9800X3D, 64 GB; Windows 11 Pro 26300; rustc 1.100.0 MSVC; DXC 1.9.2609.5; debug. - `cargo test -p xcl --lib pso_async`: 9 passed, 0 failed. - `cargo test --workspace --no-fail-fast -- --test-threads=4`: 1,093 passed, 4 failed, 46 ignored. The 4 are `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3` (`0x8007000E`), the same as on `main` here, so not this PR. SKIPPED: the wave64-only tests. - The two new timing tests (`frame_budget`) 20 times in a row with 14 busy threads loading the 16-thread CPU: **20 / 20 passed**. The `< 20 ms` and `< 250 ms` bounds held under load. **Review notes** 1. **This changes the default, not only the knobs.** On `main`, with `XCL_PSO_WAIT_MS` unset, a bind waits until its pipeline is built. The module's own doc says why for compute: "a skipped dispatch would corrupt what it computes". With this PR, while a title runs, the unset default becomes 250 ms per pipeline and 2,000 ms per frame. So compute dispatches are skipped during compile bursts by default (your run: 46,227 skipped). That is what gets the title past its watchdog, and it is also a candidate for wrong output in those frames (cf. the flat grey intro shots on #505). Worth stating plainly in the description and README. It may also be worth asking @ivall whether the first step should be opt-in, as heap windows were. 2. **The cap is per thread.** `FRAME_BUDGET` is `thread_local!` and the `WaitCaps` doc says "per thread within one `PresentX` frame", but the description and the `wait_caps` doc say "cumulative per frame". With several recording threads, the waits of one frame can add up to N × 2,000 ms if they happen one after another (they overlap when the threads wait at the same time). Either the docs could say per thread, or a process-wide atomic keyed on `frame_generation` would make it per frame. 3. **Minor, `resolve_caps`:** `XCL_PSO_WAIT_MS=0` ("wait until built") together with `XCL_PSO_FRAME_WAIT_MS=N` gives `per_pso = per_frame = N`, so the 0 no longer means "until built". That may be intended (the frame cap wins), but the doc of `wait_caps` doesn't say so. **Not tested:** any title (no smoke pair here), AMD / Intel, release builds. AI use: Claude Code (Claude Opus 5.5) ran the tests on the machine above, read the diff and wrote this. I checked the results.
throny commented 2026-11-25 06:05:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-25T05:22:50Z.


Test of 8044bed merged onto main 6020a33, on the retail title, XCL_DIRECT_DXIL=1, otherwise defaults. Caches were warm: every compute pipeline had been precompiled and the graphics pipelines built in earlier runs. No input after the menus.

run last presents presents after 82 s budget exhausted skipped draws / dispatches queue waits released device removed end
15-minute run 134 s 78 27 times 10 111 / 1 889 14, from 111 s no stopped by my memory guard at 137 s (process commit 34.3 GB)
two earlier runs 96 s, 102 s 6, 66 – ~4 400 / ~800 – 1 000 0 no memory guard at 98 s, 108 s (33 GB)

For comparison, main 177cd40 with the same warm caches ends in a device removal (0x887a0005) at 92 – 100 s, in 4 of 4 runs (#1452). With this PR none of the three runs removed the device, and the longest kept presenting to 134 s. Whether it gets past the watchdog, as in your 694 s run, I can't tell here: this machine gives the process about 34 GB before my guard stops it, and the title passes that at 137 s.

Tested: RTX 4080 16 GB (driver 610.88), i9-12900K, 64 GB RAM (commit limit 68 GB), Windows 11 26300, release.
Not tested: the suite on this head, runs past 137 s, AMD.

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

<!-- greyfinch-sync:ivall/xcl:comment:7153714347 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2114#issuecomment-7153714347). Originally posted by [throny](https://github.com/throny) on 2026-11-25T05:22:50Z. --- Test of `8044bed` merged onto `main` `6020a33`, on the retail title, `XCL_DIRECT_DXIL=1`, otherwise defaults. Caches were warm: every compute pipeline had been precompiled and the graphics pipelines built in earlier runs. No input after the menus. | run | last presents | presents after 82 s | budget exhausted | skipped draws / dispatches | queue waits released | device removed | end | |---|---|---|---|---|---|---|---| | 15-minute run | **134 s** | 78 | 27 times | 10 111 / 1 889 | 14, from 111 s | no | stopped by my memory guard at 137 s (process commit 34.3 GB) | | two earlier runs | 96 s, 102 s | 6, 66 | – | ~4 400 / ~800 – 1 000 | 0 | no | memory guard at 98 s, 108 s (33 GB) | For comparison, `main` `177cd40` with the same warm caches ends in a device removal (`0x887a0005`) at 92 – 100 s, in 4 of 4 runs ([#1452](https://github.com/xcl-dev/xcl/issues/1452#issuecomment-7153396090)). With this PR none of the three runs removed the device, and the longest kept presenting to 134 s. Whether it gets past the watchdog, as in your 694 s run, I can't tell here: this machine gives the process about 34 GB before my guard stops it, and the title passes that at 137 s. **Tested:** RTX 4080 16 GB (driver 610.88), i9-12900K, 64 GB RAM (commit limit 68 GB), Windows 11 26300, release. **Not tested:** the suite on this head, runs past 137 s, AMD. AI use: Claude Code (Claude Opus 5.5): ran the tests and wrote this.
futurepro62 commented 2026-11-25 06:05:56 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-25T05:42:26Z.


NVIDIA and AMD full-suite run, to go with the RTX 5080 and RTX 4080 reports above, since neither covers AMD. Tested exact head 8044bed (on its base bf9eebd).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 1086 passed, 0 failed, 44 ignored. SKIPPED (no wave64): a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu, a_per_lane_2d_or_3d_group_runs_on_the_gpu, coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu, cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu, gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware, the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.
  • The new tests ran and passed: wait_caps_respect_env_and_title_boot_state, frame_budget_caps_cumulative_wait_and_resets_on_new_frame, a_frame_budget_caps_a_burst_of_slow_pipelines_and_resets_next_frame.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 1096 passed, 0 failed, 46 ignored. SKIPPED: f16_programs_on_the_gpu (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), f32_programs_on_the_gpu (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), f32_programs_on_the_gpu (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • --skip leaves out tests that fail on main 6020a33 too, not because of this PR. On NVIDIA: heap_window_out_of_memory_falls_back_to_the_switch_form (#1651), the four gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu tests, const_and_null_mask_operands_agree_with_hlsl_on_the_gpu and mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu (follow-up on #1651) fail because runner::skip_test turns their skips into failures under XCL_REQUIRE_GPU=mesh, and gpu::dxil::fuzz_tests seeds 70, 545, 1019 and 1507 fail CreateComputePipelineState with E_OUTOFMEMORY on this card (drivers 616.64 and 621.40). On AMD: fuzz_validate_and_gpu_1 fails on seed 540 (res[833] 0x7 vs CPU 0x6). The AMD run does not set XCL_REQUIRE_GPU.

Not tested

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

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7154060880 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2114#issuecomment-7154060880). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-25T05:42:26Z. --- NVIDIA and AMD full-suite run, to go with the RTX 5080 and RTX 4080 reports above, since neither covers AMD. Tested exact head `8044bed` (on its base `bf9eebd`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests`: **1086 passed, 0 failed, 44 ignored**. SKIPPED (no wave64): `a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu`, `a_per_lane_2d_or_3d_group_runs_on_the_gpu`, `coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu`, `cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu`, `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`, `the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu`. - The new tests ran and passed: `wait_caps_respect_env_and_title_boot_state`, `frame_budget_caps_cumulative_wait_and_resets_on_new_frame`, `a_frame_budget_caps_a_burst_of_slow_pipelines_and_resets_next_frame`. - Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1`: **1096 passed, 0 failed, 46 ignored**. SKIPPED: `f16_programs_on_the_gpu` (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), `f32_programs_on_the_gpu` (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), `f32_programs_on_the_gpu` (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - `--skip` leaves out tests that fail on main `6020a33` too, not because of this PR. On NVIDIA: `heap_window_out_of_memory_falls_back_to_the_switch_form` (#1651), the four `gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu` tests, `const_and_null_mask_operands_agree_with_hlsl_on_the_gpu` and `mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu` ([follow-up on #1651](https://github.com/xcl-dev/xcl/issues/1651#issuecomment-7146069648)) fail because `runner::skip_test` turns their skips into failures under `XCL_REQUIRE_GPU=mesh`, and `gpu::dxil::fuzz_tests` seeds 70, 545, 1019 and 1507 fail `CreateComputePipelineState` with `E_OUTOFMEMORY` on this card (drivers 616.64 and 621.40). On AMD: `fuzz_validate_and_gpu_1` fails on seed 540 (`res[833]` 0x7 vs CPU 0x6). The AMD run does not set `XCL_REQUIRE_GPU`. **Not tested** - a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
DavidM1911 commented 2026-11-25 06:06:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T06:02:49Z.


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:7154386312 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2114#issuecomment-7154386312). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T06:02:49Z. --- 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!
JoaoPauluu commented 2026-11-25 07:05:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JoaoPauluu on 2026-11-25T06:12:15Z.


A regression run under Wine on Linux on the retail title: no device removal, no crash, frames level with main (1411 here; 1368 and 1370 on the two main runs). No a pipeline still being built after … ms line appears in the log, so the cap is not seen to act in this run; this is a regression run only.

Tested

  • RTX 3060 12 GB (NVIDIA 620.70.06), i5-10400F, 16 GB, CachyOS (kernel 7.3.3), Proton Experimental 11.0-20261112 with the patched vkd3d-proton 3.1 from #257, DXC 1.9.2609.5. Release, cross-built for x86_64-pc-windows-gnu. 378a077 as it is (based on 6020a33) and main 6e1e2be, no uncommitted changes. Retail title 1.0.2.1, scripts/linux/smoke.sh (#257) for 60 s, no input. Runs in order: main, this PR (with other PRs in between), main.

Regression run

main (first run):

xcl-smoke v1
commit: 6e1e2befc7430126b1e7b98b5c3fe93813c866b6
gpu: NVIDIA GeForce RTX 3060
title: GTA6.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1368 (PresentX 1368)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 0 MB

this PR:

xcl-smoke v1
commit: 378a0775001770ee48f6d820a69f9da4a54017ad
gpu: NVIDIA GeForce RTX 3060
title: GTA6.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1411 (PresentX 1411)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 0 MB

The second main run: 1370 frames, exit: 0x0, no device removal, no crash. Under Wine, peak commit reads 0 MB, so these blocks do not check memory.

Not tested

  • the whole test suite on this head, a run where binds wait on pipelines (XCL_PSO_WAIT_MS or similar), native Windows.

AI use

  • Claude Code (Claude Opus 5.5) built both commits, ran the runs and wrote this report. The account owner asked for test reports to be posted and has not reviewed this one.
<!-- greyfinch-sync:ivall/xcl:comment:7154548773 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2114#issuecomment-7154548773). Originally posted by [JoaoPauluu](https://github.com/JoaoPauluu) on 2026-11-25T06:12:15Z. --- A regression run under Wine on Linux on the retail title: no device removal, no crash, frames level with `main` (1411 here; 1368 and 1370 on the two `main` runs). No `a pipeline still being built after … ms` line appears in the log, so the cap is not seen to act in this run; this is a regression run only. **Tested** - RTX 3060 12 GB (NVIDIA 620.70.06), i5-10400F, 16 GB, CachyOS (kernel 7.3.3), Proton Experimental 11.0-20261112 with the patched vkd3d-proton 3.1 from #257, DXC 1.9.2609.5. Release, cross-built for `x86_64-pc-windows-gnu`. `378a077` as it is (based on `6020a33`) and `main` `6e1e2be`, no uncommitted changes. Retail title 1.0.2.1, `scripts/linux/smoke.sh` (#257) for 60 s, no input. Runs in order: main, this PR (with other PRs in between), main. **Regression run** main (first run): ``` xcl-smoke v1 commit: 6e1e2befc7430126b1e7b98b5c3fe93813c866b6 gpu: NVIDIA GeForce RTX 3060 title: GTA6.Xbox.v1.0.2.1 seconds: 60 exit: 0x0 frames shown: 1368 (PresentX 1368) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 0 MB ``` this PR: ``` xcl-smoke v1 commit: 378a0775001770ee48f6d820a69f9da4a54017ad gpu: NVIDIA GeForce RTX 3060 title: GTA6.Xbox.v1.0.2.1 seconds: 60 exit: 0x0 frames shown: 1411 (PresentX 1411) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 0 MB ``` The second `main` run: 1370 frames, `exit: 0x0`, no device removal, no crash. Under Wine, `peak commit` reads 0 MB, so these blocks do not check memory. **Not tested** - the whole test suite on this head, a run where binds wait on pipelines (`XCL_PSO_WAIT_MS` or similar), native Windows. **AI use** - Claude Code (Claude Opus 5.5) built both commits, ran the runs and wrote this report. The account owner asked for test reports to be posted and has not reviewed this one.
thehollowedone commented 2026-11-25 08:08:11 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-25T07:13:23Z.


Independent Windows verification at 378a077. Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti / 621.35, Rust 1.99.1 MSVC, debug.

Tested

  • Clean head: cargo build --offline --locked --workspace -j 3 passed. cargo test --offline --locked --workspace --no-fail-fast -j 3 -- --nocapture --test-threads=4 reported 1,158 passed, 0 failed, 46 ignored. Separately, 25 runtime skip notices (20 no native wave64, three unsupported per-lane forms, one driver cache disable probe, one no heap windows).

  • Two additional synthetic cases in cargo test --offline --locked -p xcl --lib pso_async -j 3 -- --nocapture --test-threads=1 failed on the PR implementation (10 passed, 2 failed, 0 ignored, 0 runtime skips). Two pending binds started together in the same frame charged 501.7 ms in total against a 250 ms cap. In a separate test, frame 2 spent 40 ms of its 100 ms allowance. Recording a late completion from frame 1 gave frame 2 its full 100 ms back instead of leaving 60 ms.

  • A local candidate reserved each capped wait while holding the budget mutex and settled it only against the frame that granted it. The same focused command then passed all 12 tests with 0 failures, ignores, or runtime skips. I have the patch if useful.

  • Follow-up on the local candidate applied to the same PR head: the workspace build and the full workspace test command above passed on the RTX 3080 Ti. The suite reported 1,160 passed, 0 failed, 46 ignored, and the same 25 runtime skip notices. Both added cases passed with four test threads.

Not tested
Retail load and frame pacing. The description check still asks for a smoke block from the current head.

AI use
Codex (GPT-6.2 Sol) wrote the synthetic cases and local candidate, ran the tests, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7155622504 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2114#issuecomment-7155622504). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-25T07:13:23Z. --- Independent Windows verification at [378a077](https://github.com/xcl-dev/xcl/commit/378a0775001770ee48f6d820a69f9da4a54017ad). Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti / 621.35, Rust 1.99.1 MSVC, debug. **Tested** - Clean head: `cargo build --offline --locked --workspace -j 3` passed. `cargo test --offline --locked --workspace --no-fail-fast -j 3 -- --nocapture --test-threads=4` reported 1,158 passed, 0 failed, 46 ignored. Separately, 25 runtime skip notices (20 no native wave64, three unsupported per-lane forms, one driver cache disable probe, one no heap windows). - Two additional synthetic cases in `cargo test --offline --locked -p xcl --lib pso_async -j 3 -- --nocapture --test-threads=1` failed on the PR implementation (10 passed, 2 failed, 0 ignored, 0 runtime skips). Two pending binds started together in the same frame charged 501.7 ms in total against a 250 ms cap. In a separate test, frame 2 spent 40 ms of its 100 ms allowance. Recording a late completion from frame 1 gave frame 2 its full 100 ms back instead of leaving 60 ms. - A local candidate reserved each capped wait while holding the budget mutex and settled it only against the frame that granted it. The same focused command then passed all 12 tests with 0 failures, ignores, or runtime skips. I have the patch if useful. - Follow-up on the local candidate applied to the same PR head: the workspace build and the full workspace test command above passed on the RTX 3080 Ti. The suite reported 1,160 passed, 0 failed, 46 ignored, and the same 25 runtime skip notices. Both added cases passed with four test threads. **Not tested** Retail load and frame pacing. The [description check](https://github.com/xcl-dev/xcl/actions/runs/45557135935/job/139011808195) still asks for a smoke block from the current head. **AI use** Codex (GPT-6.2 Sol) wrote the synthetic cases and local candidate, ran the tests, and drafted this report.
iggyvilla commented 2026-11-25 09:08:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by iggyvilla on 2026-11-25T09:06:50Z.


Test report on 378a077 merged as 0640e29 onto main 568e7db, vs main 568e7db itself. RX 6650 XT 8 GB / Adrenalin 32.0.21045.29003 / Ryzen 7 5700X /
32 GB (commit limit ~44 GB). Retail walk from a save (-FromSave), PRELOAD=0,
XCL_PSO_WAIT_MS=2000, local commit stop at 37.8 GB.

Tested: main, 2 walks; #2114, 1 walk.

What was measured: main (both walks): 0 submits and 0 presents after 130 s,
13–17 a pipeline still being built after 2000 ms waits. #2114 (1 walk): 25
per-frame pipeline wait budget (2000 ms) exhausted warnings, submits 16/28/6/35
per 2 s at 132–140 s, 1 present at 140 s, 0 device removals, stopped by the
commit stop at ~143 s (world not reached). Note: with only one walk on the PR
this is a positive signal, not a verdict — the frame-budget mechanism fires and
submissions continue past main's 126 s halt, but the wall (commit stop) does not
move.

Review notes (each confirmed in the #2114 diff at 378a077; the rest of the
XCL-130b review I did not re-verify and do not repeat):

  • Frozen frame (B4): the budget is keyed to PresentX (present.rs:145
    frame_generation() reads BOUNDARIES), and budget-exhausted binds return
    the stand-in without late (pso_async.rs:901-912, if !truncated_by_frame
    at :924). Once the title stops presenting, one 2 s window is spent and every
    later compute bind in that frame skips silently — matching this walk (budget
    exhausted 25×, presents 0 after the single 140 s frame).
  • Cross-frame settlement (B1) / no reservation (B2): record(frame, …) at
    :919 settles against the wait-start frame, and record at :834-840
    zeroes spent on a frame mismatch, so a wait ending in a later frame erases
    the new frame's spend; remaining() at :900 releases the mutex before the
    wait, so concurrent binds each get a full window. Both already reported
    upstream at this head (thehollowedone, with reproductions); direction is
    cap-loosening only.
  • XCL_PSO_FRAME_WAIT_MS=0 with XCL_PSO_WAIT_MS unset (B3): resolve_caps
    (None, _) => None (:772-775) gives unbounded waits, contradicting the doc
    at :793-794 ("disables the per-frame cap while keeping XCL_PSO_WAIT_MS").
    Do not use this combination as a frame-cap-off control arm.
  • Smaller confirmed nits: priority restore runs after the demand lock is
    released (bounded by the wait budget, not correctness); the PR body says "3
    deterministic unit tests" but the diff adds four; resolve_caps(Some(p), None, …) raises the frame cap to max(2000, p), so the knobs are not
    independent.

Not tested: suite run on this tree; repeat walks (variance); NVIDIA/other
GPUs; PRELOAD=1; world reached.

AI use: Measured by an omp agent running DeepSeek v4.1 Flash; review
findings first drafted by DeepSeek v4.1 Flash and confirmed in the diff by Muse
Spark 1.3, which wrote this text; checked (including three of the cited lines at 378a077) and posted by Claude Code (Claude Opus
5.5) on my behalf; I did not run the tests or write the text.

<!-- greyfinch-sync:ivall/xcl:comment:7157892452 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2114#issuecomment-7157892452). Originally posted by [iggyvilla](https://github.com/iggyvilla) on 2026-11-25T09:06:50Z. --- Test report on `378a077` merged as `0640e29` onto `main 568e7db`, vs `main 568e7db` itself. RX 6650 XT 8 GB / Adrenalin 32.0.21045.29003 / Ryzen 7 5700X / 32 GB (commit limit ~44 GB). Retail walk from a save (`-FromSave`), `PRELOAD=0`, `XCL_PSO_WAIT_MS=2000`, local commit stop at 37.8 GB. **Tested:** main, 2 walks; #2114, 1 walk. **What was measured:** main (both walks): 0 submits and 0 presents after 130 s, 13–17 `a pipeline still being built after 2000 ms` waits. #2114 (1 walk): 25 `per-frame pipeline wait budget (2000 ms) exhausted` warnings, submits 16/28/6/35 per 2 s at 132–140 s, **1 present at 140 s**, 0 device removals, stopped by the commit stop at ~143 s (world not reached). Note: with only one walk on the PR this is a positive signal, not a verdict — the frame-budget mechanism fires and submissions continue past main's 126 s halt, but the wall (commit stop) does not move. **Review notes** (each confirmed in the #2114 diff at `378a077`; the rest of the XCL-130b review I did not re-verify and do not repeat): - Frozen frame (B4): the budget is keyed to `PresentX` (`present.rs:145` `frame_generation()` reads `BOUNDARIES`), and budget-exhausted binds return the stand-in without `late` (`pso_async.rs:901-912`, `if !truncated_by_frame` at `:924`). Once the title stops presenting, one 2 s window is spent and every later compute bind in that frame skips silently — matching this walk (budget exhausted 25×, presents 0 after the single 140 s frame). - Cross-frame settlement (B1) / no reservation (B2): `record(frame, …)` at `:919` settles against the wait-start frame, and `record` at `:834-840` zeroes `spent` on a frame mismatch, so a wait ending in a later frame erases the new frame's spend; `remaining()` at `:900` releases the mutex before the wait, so concurrent binds each get a full window. Both already reported upstream at this head (thehollowedone, with reproductions); direction is cap-loosening only. - `XCL_PSO_FRAME_WAIT_MS=0` with `XCL_PSO_WAIT_MS` unset (B3): `resolve_caps` `(None, _) => None` (`:772-775`) gives unbounded waits, contradicting the doc at `:793-794` ("disables the per-frame cap while keeping `XCL_PSO_WAIT_MS`"). Do not use this combination as a frame-cap-off control arm. - Smaller confirmed nits: priority restore runs after the demand lock is released (bounded by the wait budget, not correctness); the PR body says "3 deterministic unit tests" but the diff adds four; `resolve_caps(Some(p), None, …)` raises the frame cap to `max(2000, p)`, so the knobs are not independent. **Not tested:** suite run on this tree; repeat walks (variance); NVIDIA/other GPUs; `PRELOAD=1`; world reached. **AI use:** Measured by an omp agent running DeepSeek v4.1 Flash; review findings first drafted by DeepSeek v4.1 Flash and confirmed in the diff by Muse Spark 1.3, which wrote this text; checked (including three of the cited lines at `378a077`) and posted by Claude Code (Claude Opus 5.5) on my behalf; I did not run the tests or write the text.
raylitebull commented 2026-11-25 11:09:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T10:47:32Z.


Code review on 5cb6779:

  • Demand::unbounded_wanted + TimedWantGuard (want_timed) cleanly restore THREAD_PRIORITY_LOWEST when bounded frame waits time out without letting them clear an active unbounded want() wait.
  • Diff audited and CI workflow approved (running).

Remaining before merge: Fix PR description, Build and test green, and dual-vendor verification on 5cb6779.

<!-- greyfinch-sync:ivall/xcl:comment:7160178832 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2114#issuecomment-7160178832). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-11-25T10:47:32Z. --- Code review on `5cb6779`: - `Demand::unbounded_wanted` + `TimedWantGuard` (`want_timed`) cleanly restore `THREAD_PRIORITY_LOWEST` when bounded frame waits time out without letting them clear an active unbounded `want()` wait. - Diff audited and CI workflow approved (running). **Remaining before merge:** Fix `PR description`, `Build and test` green, and dual-vendor verification on `5cb6779`.
Toons29 commented 2026-11-25 12:06:20 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Toons29 on 2026-11-25T11:21:43Z.


Regression run of 5cb67796 on the retail title, for this PR's Regression run section. Both blocks are from scripts/smoke.ps1 as printed, not edited: main on 568e7db7, this PR on its head commit with no uncommitted changes, same title and time.

xcl-smoke v1
commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb
gpu: AMD Radeon RX 9070
title: 34df7c50
seconds: 60
exit: 0x0
frames shown: 1566 (PresentX 1566)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14592 MB
xcl-smoke v1
commit: 5cb67796609ff17f20cd4bd5fbb7e1acdde4ba75
gpu: AMD Radeon RX 9070
title: 34df7c50
seconds: 60
exit: 0x0
frames shown: 1631 (PresentX 1631)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14592 MB

Against the limits in CONTRIBUTING.md: 104 % of main's frames, 100 % of its peak commit, no crash, no device removal.

AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, cargo build --release -p xcl, 60 s, XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.

AI use: Claude Code (Claude Opus 5.5) built both trees and ran scripts/smoke.ps1; a script posted this right after the run, with both blocks exactly as printed.

<!-- greyfinch-sync:ivall/xcl:comment:7160943926 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2114#issuecomment-7160943926). Originally posted by [Toons29](https://github.com/Toons29) on 2026-11-25T11:21:43Z. --- Regression run of `5cb67796` on the retail title, for this PR's **Regression run** section. Both blocks are from `scripts/smoke.ps1` as printed, not edited: `main` on `568e7db7`, this PR on its head commit with no uncommitted changes, same title and time. ``` xcl-smoke v1 commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb gpu: AMD Radeon RX 9070 title: 34df7c50 seconds: 60 exit: 0x0 frames shown: 1566 (PresentX 1566) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14592 MB ``` ``` xcl-smoke v1 commit: 5cb67796609ff17f20cd4bd5fbb7e1acdde4ba75 gpu: AMD Radeon RX 9070 title: 34df7c50 seconds: 60 exit: 0x0 frames shown: 1631 (PresentX 1631) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14592 MB ``` Against the limits in CONTRIBUTING.md: 104 % of `main`'s frames, 100 % of its peak commit, no crash, no device removal. AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, `cargo build --release -p xcl`, 60 s, `XCL_NETWORK=0`. This is a regression check only: it does not show whether the run reaches the code this PR changes. AI use: Claude Code (Claude Opus 5.5) built both trees and ran `scripts/smoke.ps1`; a script posted this right after the run, with both blocks exactly as printed.
iggyvilla commented 2026-11-25 13:05:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by iggyvilla on 2026-11-25T12:56:35Z.


Follow-up to my test report above: the control arm, same box, same protocol (378a077 merged onto main 568e7db, -FromSave walk, PRELOAD=0, XCL_PSO_WAIT_MS=2000, commit stop at 37.8 GB), one walk with XCL_PSO_FRAME_WAIT_MS=0.

arm frame-budget warnings presents after 130 s console counter, last line
main 0 0 16905 draws (0 skipped), 8192 dispatches (0 skipped)
#2114 25 1 (at 140 s) 17252 draws (2048 skipped), 11878 dispatches (277 skipped)
#2114, FRAME_WAIT_MS=0 0 0 16599 draws (0 skipped), 8192 dispatches (0 skipped)

With the per-frame cap off, the PR head behaves like main: submits stop at ~126 s and nothing is presented. So the extra submissions and the one present come from the per-frame cap, not from the build or cache warmth. The cost is the frozen-frame issue from my notes: 24 of the 25 exhaustion warnings are in frame 1907 and 1 is in frame 1909, the title presented 1910 frames in all, and the final "(4097 so far)" is the skip count of the frame it never left. All three walks still end at the commit stop (~141–143 s), so the world is not reached.

These walks are on 378a077. 5cb6779 (reservation across threads, cross-frame settlement, FRAME_WAIT_MS=0 keeping the per-pipeline cap) does not change this part: the budget still resets only when PresentX advances the frame, so I expect the same skips once the title stops presenting. I have not re-run on 5cb6779.

AI use: the walks and log tables were run by an agent on DeepSeek V4.1 Flash (open-weight, measurement only). I checked the counts above against the three xcl.log files with Claude Opus 5.5 (Anthropic), and it wrote this comment.

<!-- greyfinch-sync:ivall/xcl:comment:7163069643 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2114#issuecomment-7163069643). Originally posted by [iggyvilla](https://github.com/iggyvilla) on 2026-11-25T12:56:35Z. --- Follow-up to my test report above: the control arm, same box, same protocol (`378a077` merged onto `main 568e7db`, `-FromSave` walk, `PRELOAD=0`, `XCL_PSO_WAIT_MS=2000`, commit stop at 37.8 GB), one walk with `XCL_PSO_FRAME_WAIT_MS=0`. | arm | frame-budget warnings | presents after 130 s | console counter, last line | |---|---|---|---| | main | 0 | 0 | 16905 draws (0 skipped), 8192 dispatches (0 skipped) | | #2114 | 25 | 1 (at 140 s) | 17252 draws (**2048 skipped**), 11878 dispatches (**277 skipped**) | | #2114, `FRAME_WAIT_MS=0` | 0 | 0 | 16599 draws (0 skipped), 8192 dispatches (0 skipped) | With the per-frame cap off, the PR head behaves like main: submits stop at ~126 s and nothing is presented. So the extra submissions and the one present come from the per-frame cap, not from the build or cache warmth. The cost is the frozen-frame issue from my notes: 24 of the 25 exhaustion warnings are in frame 1907 and 1 is in frame 1909, the title presented 1910 frames in all, and the final "(4097 so far)" is the skip count of the frame it never left. All three walks still end at the commit stop (~141–143 s), so the world is not reached. These walks are on `378a077`. `5cb6779` (reservation across threads, cross-frame settlement, `FRAME_WAIT_MS=0` keeping the per-pipeline cap) does not change this part: the budget still resets only when `PresentX` advances the frame, so I expect the same skips once the title stops presenting. I have not re-run on `5cb6779`. **AI use:** the walks and log tables were run by an agent on DeepSeek V4.1 Flash (open-weight, measurement only). I checked the counts above against the three `xcl.log` files with Claude Opus 5.5 (Anthropic), and it wrote this comment.
rdj415 commented 2026-11-25 15:07:55 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by rdj415 on 2026-11-25T14:43:37Z.


@iggyvilla @thehollowedone @raylitebull Thank you for the reviews and reproduction cases!

Merged upstream/main (06c9f55) into d3d12x-pso-per-frame-wait-cap at e03690d (keeping #2176 spared / image_only, #2178 orphan drain, #1782 pc_call, and #1988 PresentRing), and fixed a 4-vCPU CI test deadlock we hit on 5cb6779:

  1. Cross-frame settlement (B1): FrameBudget::reserve only advances self.frame forward (frame > self.frame; stale frames < self.frame return (ZERO, true)) and FrameBudget::settle only reconciles when self.frame == frame, so late wakeups from an earlier frame never roll back or wipe a newer frame's spent/reserved budget.
  2. Concurrent wait reservation (B2): FrameBudget tracks reserved: Duration under the mutex before cv.wait_timeout_while with RAII FrameWaitGuard::drop calling settle(), so simultaneous binds on multiple threads split the shared frame cap without oversubscribing it.
  3. B3 / B4 & CI test stability (e03690d): updated wait_caps() / resolve_within_in_frame() docs and tests (XCL_PSO_FRAME_WAIT_MS=0 keeps XCL_PSO_WAIT_MS or 250 ms while booted), resolved pso_async.rs cleanly against 06c9f55, and fixed a_frame_budget_caps_a_burst_of_slow_pipelines_and_resets_next_frame so ready builds before p1..p4 (submit_lazy + 30 s safety timeout) — previously, submitting 4 blocking jobs before ready saturated all 3 workers on a 4-vCPU CI runner (compile_threads() == 3), timing out p1 at 5 s before resolve_within_in_frame ran.

Re-verified on e03690d:

  • cargo test -p xcl --lib pso_async -- --nocapture: 15/15 passed (also 15/15 with XCL_DXC_THREADS=3 --test-threads=4 and --test-threads=1).
  • ./scripts/test.ps1 --skip test_title_runs_and_game_folder_is_untouched --skip fuzz_validate_and_gpu: xcl --lib 1197 passed, 0 failed, 26 ignored + all workspace test binaries passed.
  • XCL_ADAPTER=warp cargo test -p xcl --lib -- --test-threads=4: 1201 passed, 0 failed, 26 ignored.
  • Paired 60 s scripts/smoke.ps1 (06c9f55 -> e03690d): 1418 -> 1492 frames, 0 device removals, 0 crashes, 10622 -> 10378 MB peak commit.
<!-- greyfinch-sync:ivall/xcl:comment:7165719277 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2114#issuecomment-7165719277). Originally posted by [rdj415](https://github.com/rdj415) on 2026-11-25T14:43:37Z. --- @iggyvilla @thehollowedone @raylitebull Thank you for the reviews and reproduction cases! Merged `upstream/main` (`06c9f55`) into `d3d12x-pso-per-frame-wait-cap` at `e03690d` (keeping `#2176` `spared` / `image_only`, `#2178` orphan drain, `#1782` `pc_call`, and `#1988` `PresentRing`), and fixed a 4-vCPU CI test deadlock we hit on `5cb6779`: 1. **Cross-frame settlement (B1):** `FrameBudget::reserve` only advances `self.frame` forward (`frame > self.frame`; stale frames `< self.frame` return `(ZERO, true)`) and `FrameBudget::settle` only reconciles when `self.frame == frame`, so late wakeups from an earlier frame never roll back or wipe a newer frame's spent/reserved budget. 2. **Concurrent wait reservation (B2):** `FrameBudget` tracks `reserved: Duration` under the mutex before `cv.wait_timeout_while` with RAII `FrameWaitGuard::drop` calling `settle()`, so simultaneous binds on multiple threads split the shared frame cap without oversubscribing it. 3. **B3 / B4 & CI test stability (`e03690d`):** updated `wait_caps()` / `resolve_within_in_frame()` docs and tests (`XCL_PSO_FRAME_WAIT_MS=0` keeps `XCL_PSO_WAIT_MS` or 250 ms while booted), resolved `pso_async.rs` cleanly against `06c9f55`, and fixed `a_frame_budget_caps_a_burst_of_slow_pipelines_and_resets_next_frame` so `ready` builds before `p1..p4` (`submit_lazy` + 30 s safety timeout) — previously, submitting 4 blocking jobs before `ready` saturated all 3 workers on a 4-vCPU CI runner (`compile_threads() == 3`), timing out `p1` at 5 s before `resolve_within_in_frame` ran. Re-verified on `e03690d`: - `cargo test -p xcl --lib pso_async -- --nocapture`: 15/15 passed (also 15/15 with `XCL_DXC_THREADS=3 --test-threads=4` and `--test-threads=1`). - `./scripts/test.ps1 --skip test_title_runs_and_game_folder_is_untouched --skip fuzz_validate_and_gpu`: `xcl --lib` 1197 passed, 0 failed, 26 ignored + all workspace test binaries passed. - `XCL_ADAPTER=warp cargo test -p xcl --lib -- --test-threads=4`: 1201 passed, 0 failed, 26 ignored. - Paired 60 s `scripts/smoke.ps1` (`06c9f55` -> `e03690d`): `1418 -> 1492` frames, `0` device removals, `0` crashes, `10622 -> 10378 MB` peak commit.
Gevroska commented 2026-11-25 16:12:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Gevroska on 2026-11-25T16:03:11Z.


I found a case on e03690d5 where a pending compute pipeline gets no wait time even though the cumulative frame cap is disabled and the per-pipeline cap is 250 ms.

I reproduced it in a standalone CPU test using the PR’s FrameBudget::reserve implementation. Caller A samples frame generation 1. Before A acquires the budget mutex, caller B advances the budget to generation 2. When A calls reserve with its earlier sample, it gets (0 ns, true). With the cumulative cap disabled, I expected (250 ms, false). In the caller, that zero grant returns the stand-in before entering the wait.

Three control cases passed. The stale-sample case was the only failure. In a separate fixture, returning the per-pipeline allowance before checking the generation when per_frame is None made all four pass, including stale-generation rejection when the cumulative cap is enabled. I’d add this combination to the regression tests. I haven’t measured how often it occurs in a title run.

I used Codex GPT-6.2 Sol for the fixture and a separate GPT-6.2 Sol agent for independent verification.

I reviewed and approved this comment before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7167550470 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2114#issuecomment-7167550470). Originally posted by [Gevroska](https://github.com/Gevroska) on 2026-11-25T16:03:11Z. --- I found a case on `e03690d5` where a pending compute pipeline gets no wait time even though the cumulative frame cap is disabled and the per-pipeline cap is 250 ms. I reproduced it in a standalone CPU test using the PR’s `FrameBudget::reserve` implementation. Caller A samples frame generation 1. Before A acquires the budget mutex, caller B advances the budget to generation 2. When A calls `reserve` with its earlier sample, it gets `(0 ns, true)`. With the cumulative cap disabled, I expected `(250 ms, false)`. In the caller, that zero grant returns the stand-in before entering the wait. Three control cases passed. The stale-sample case was the only failure. In a separate fixture, returning the per-pipeline allowance before checking the generation when `per_frame` is `None` made all four pass, including stale-generation rejection when the cumulative cap **is** enabled. I’d add this combination to the regression tests. I haven’t measured how often it occurs in a title run. I used Codex GPT-6.2 Sol for the fixture and a separate GPT-6.2 Sol agent for independent verification. I reviewed and approved this comment before posting.
rdj415 commented 2026-11-25 17:07:24 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by rdj415 on 2026-11-25T16:34:12Z.


@Gevroska @raylitebull Fixed the stale-sample case on 21c88bc: FrameBudget::reserve now returns (caps.per_pso, false) immediately when per_frame is None before checking self.frame, so a stale frame generation sample no longer zeros out the per-pipeline wait when the cumulative per-frame cap is disabled, while stale-generation rejection is preserved when per_frame is Some(_).

Added regression unit test frame_budget_stale_frame_sample_keeps_full_wait_when_per_frame_disabled and re-verified:

  • cargo test -p xcl --lib pso_async -- --nocapture: 16 passed, 0 failed
  • XCL_ADAPTER=warp cargo test -p xcl --lib -- --test-threads=4: 1202 passed, 0 failed, 26 ignored
  • Paired 60 s scripts/smoke.ps1 (21c88bc vs 06c9f55, 3c290c16): 1455 frames vs 1418, exit: 0x0, 0 device removals, 0 crashes, 10351 MB peak commit vs 10622 MB; pr_check PROBLEMS: [].
<!-- greyfinch-sync:ivall/xcl:comment:7168189789 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2114#issuecomment-7168189789). Originally posted by [rdj415](https://github.com/rdj415) on 2026-11-25T16:34:12Z. --- @Gevroska @raylitebull Fixed the stale-sample case on `21c88bc`: `FrameBudget::reserve` now returns `(caps.per_pso, false)` immediately when `per_frame` is `None` before checking `self.frame`, so a stale frame generation sample no longer zeros out the per-pipeline wait when the cumulative per-frame cap is disabled, while stale-generation rejection is preserved when `per_frame` is `Some(_)`. Added regression unit test `frame_budget_stale_frame_sample_keeps_full_wait_when_per_frame_disabled` and re-verified: - `cargo test -p xcl --lib pso_async -- --nocapture`: 16 passed, 0 failed - `XCL_ADAPTER=warp cargo test -p xcl --lib -- --test-threads=4`: 1202 passed, 0 failed, 26 ignored - Paired 60 s `scripts/smoke.ps1` (`21c88bc` vs `06c9f55`, `3c290c16`): 1455 frames vs 1418, `exit: 0x0`, 0 device removals, 0 crashes, 10351 MB peak commit vs 10622 MB; `pr_check` `PROBLEMS: []`.
milesah3ad commented 2026-11-25 19:09:05 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by milesah3ad on 2026-11-25T18:26:02Z.


Re-check of 21c88bc on the RTX 5080 after the review fixes. The code holds up. The branch now conflicts with main again.

Tested (RTX 5080 16 GB, driver 621.24; Ryzen 7 9800X3D; Windows 11 Pro 26300; rustc 1.100.0; DXC 1.9.2609.5; debug)

  • cargo test -p xcl --lib pso_async: 16 passed, 0 failed (including the new stale-sample and reservation cases).
  • The same 20 times in a row with 14 busy threads loading the 16-thread CPU: 20 / 20 passed.
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 1,267 passed, 4 failed, 46 ignored. The 4 are gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3, the same as on main here.

Conflict: against main 397ea96, git merge-tree reports a content conflict in crates/xcl/src/hle/d3d12x/pso_async.rs only (present.rs auto-merges). Since this branch's merge base, pso_async.rs on main was changed by #2296 (5b97e22 "clamp PcCalls across frame boundaries and drop orphaned PSO jobs immediately") and 625a0f3 ("stand-ins of pipelines not built yet share the driver's pipelines"). The first touches the same frame-boundary bookkeeping as FrameBudget.

Not tested: a title run of 21c88bc, AMD.

AI use: Claude Code (Claude Opus 5.5) ran the tests on the machine above and wrote this. I checked the results.

<!-- greyfinch-sync:ivall/xcl:comment:7170900889 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2114#issuecomment-7170900889). Originally posted by [milesah3ad](https://github.com/milesah3ad) on 2026-11-25T18:26:02Z. --- Re-check of `21c88bc` on the RTX 5080 after the review fixes. The code holds up. The branch now conflicts with `main` again. **Tested** (RTX 5080 16 GB, driver 621.24; Ryzen 7 9800X3D; Windows 11 Pro 26300; rustc 1.100.0; DXC 1.9.2609.5; debug) - `cargo test -p xcl --lib pso_async`: 16 passed, 0 failed (including the new stale-sample and reservation cases). - The same 20 times in a row with 14 busy threads loading the 16-thread CPU: **20 / 20 passed**. - `cargo test --workspace --no-fail-fast -- --test-threads=4`: 1,267 passed, 4 failed, 46 ignored. The 4 are `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3`, the same as on `main` here. **Conflict:** against `main` `397ea96`, `git merge-tree` reports a content conflict in `crates/xcl/src/hle/d3d12x/pso_async.rs` only (`present.rs` auto-merges). Since this branch's merge base, `pso_async.rs` on `main` was changed by #2296 (`5b97e22` "clamp PcCalls across frame boundaries and drop orphaned PSO jobs immediately") and `625a0f3` ("stand-ins of pipelines not built yet share the driver's pipelines"). The first touches the same frame-boundary bookkeeping as `FrameBudget`. **Not tested:** a title run of `21c88bc`, AMD. AI use: Claude Code (Claude Opus 5.5) ran the tests on the machine above and wrote this. I checked the results.
bmjask commented 2026-11-25 21:49:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-11-25T21:49:37Z.

Review: COMMENTED


P1 release blocker: new default 250ms/2000ms caps return unfinished stand-ins for arbitrary compute when budget exhausted; console decoder then skips the dispatch. This makes data-producing/culling/ExecuteIndirect-producer omission default-on, while image_only safety classification is only opt-in. Existing code/tests document skipped producer -> UAV barrier -> ExecuteIndirect can hang GPU. Retain unbounded default or restrict bypass to proven dependency-safe image-only work; add skipped-producer/consumer integration regression.

<!-- greyfinch-sync:ivall/xcl:review:6065450957 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2114#pullrequestreview-6065450957). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-25T21:49:37Z. **Review:** COMMENTED --- P1 release blocker: new default 250ms/2000ms caps return unfinished stand-ins for arbitrary compute when budget exhausted; console decoder then skips the dispatch. This makes data-producing/culling/ExecuteIndirect-producer omission default-on, while image_only safety classification is only opt-in. Existing code/tests document skipped producer -> UAV barrier -> ExecuteIndirect can hang GPU. Retain unbounded default or restrict bypass to proven dependency-safe image-only work; add skipped-producer/consumer integration regression.
tiagonleal commented 2026-11-25 23:09:09 +00:00 (Migrated from github.com)

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


One thing to watch when this is rebased onto current main (e1d84b7d): the budget-exhausted return hands the title's stand-in to the driver.

Since 625a0f36 a lazy pipeline's stand-in is usually a standin::shell, which is never a driver object, and main's resolve_within returns p.stand(pso) everywhere. In a git merge-tree of this head with main, resolve_within merges without a conflict marker and takes main's p.stand(pso) for the built and late returns, but the new early return at pso_async.rs:1285 stays return pso;.

  1. A title thread spends the frame's 2,000 ms.
  2. It calls Reset(alloc, pso) or ClearState with a compute pipeline still being built.
  3. resolve_for_bind gets a zero grant and returns the shell.
  4. list_x::reset_pc passes the shell to the PC Reset as an ID3D12PipelineState.

The new tests use submit without shared, where stand(pso) == pso, so they pass either way.

Suggested change: return p.stand(pso); there, and a test with a shared stand-in and an exhausted budget.

Read-only review of head 21c88bc2 against main e1d84b7d. I did not build or run it, and I have not seen what a shell does in a real Reset.

Read and written with Claude Code (Claude Fable 5.2 and Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7176430655 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2114#issuecomment-7176430655). Originally posted by [tiagonleal](https://github.com/tiagonleal) on 2026-11-25T22:29:40Z. --- One thing to watch when this is rebased onto current main (e1d84b7d): the budget-exhausted return hands the title's stand-in to the driver. Since 625a0f36 a lazy pipeline's stand-in is usually a `standin::shell`, which is never a driver object, and main's `resolve_within` returns `p.stand(pso)` everywhere. In a `git merge-tree` of this head with main, `resolve_within` merges without a conflict marker and takes main's `p.stand(pso)` for the `built` and `late` returns, but the new early return at `pso_async.rs:1285` stays `return pso;`. 1. A title thread spends the frame's 2,000 ms. 2. It calls `Reset(alloc, pso)` or `ClearState` with a compute pipeline still being built. 3. `resolve_for_bind` gets a zero grant and returns the shell. 4. `list_x::reset_pc` passes the shell to the PC `Reset` as an `ID3D12PipelineState`. The new tests use `submit` without `shared`, where `stand(pso) == pso`, so they pass either way. Suggested change: `return p.stand(pso);` there, and a test with a `shared` stand-in and an exhausted budget. Read-only review of head 21c88bc2 against main e1d84b7d. I did not build or run it, and I have not seen what a shell does in a real `Reset`. Read and written with Claude Code (Claude Fable 5.2 and Claude Opus 5.5).
throny commented 2026-11-26 01:05:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-26T00:48:21Z.


Two contributors checked independently and found that #1652 #1931 solves the same problem (for #505) in a different way: #1607, group D95. 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:7179130858 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2114#issuecomment-7179130858). Originally posted by [throny](https://github.com/throny) on 2026-11-26T00:48:21Z. --- <!-- xcl-1607-hint:D95 --> Two contributors checked independently and found that #1652 #1931 solves the same problem (for #505) in a different way: #1607, group D95. 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.
rdj415 commented 2026-11-26 02:08:19 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by rdj415 on 2026-11-26T01:21:30Z.


Quick update for @bmjask and @milesah3ad (thanks for the re-test and the rebase catch).

Still actively working on getting the first in-world 3D frame before pushing the review fixes here. Locally, the compile-pool and pre-caching work already got past the loading screen to rendered intro credits and cleared the 100s+ compile stalls and commit OOMs; currently running the next world capture to verify 3D rendering.

Once this capture finishes, I'll rebase #2114 onto e1d84b7, switch the early budget-exhausted return to p.stand(pso), restrict the stand-in bypass to image_only compute by default, and add the skipped-producer/consumer regression tests.

<!-- greyfinch-sync:ivall/xcl:comment:7179693699 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2114#issuecomment-7179693699). Originally posted by [rdj415](https://github.com/rdj415) on 2026-11-26T01:21:30Z. --- Quick update for @bmjask and @milesah3ad (thanks for the re-test and the rebase catch). Still actively working on getting the first in-world 3D frame before pushing the review fixes here. Locally, the compile-pool and pre-caching work already got past the loading screen to rendered intro credits and cleared the 100s+ compile stalls and commit OOMs; currently running the next world capture to verify 3D rendering. Once this capture finishes, I'll rebase #2114 onto `e1d84b7`, switch the early budget-exhausted return to `p.stand(pso)`, restrict the stand-in bypass to `image_only` compute by default, and add the skipped-producer/consumer regression tests.
DavidM1911 commented 2026-11-26 08:04:40 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T07:28:56Z.


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

<!-- greyfinch-sync:ivall/xcl:comment:7185504339 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2114#issuecomment-7185504339). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T07:28:56Z. --- Re-verification on RTX 3060 Ti (Windows 11): still a **merge conflict with current `main`** on the new head — needs another rebase before it can be tested.
rdj415 commented 2026-11-27 10:32:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by rdj415 on 2026-11-27T10:32:42Z.


Updated the branch (a4cb014c) on top of upstream/main (83b00818) — merge conflicts in pso_async.rs and real.rs are resolved, and the PR description above has been updated with fresh xcl-smoke v1 numbers.

Ping for anyone waiting on the conflict resolution to re-test (@DavidM1911, @milesah3ad, @throny, @iggyvilla, @futurepro62, @Toons29):

  • Fixed in this update: conflicts against 83b00818 (by_submit / drop_unstarted_job / warm dispatch-chain preserved), @tiagonleal's catch (return p.stand(pso); on exhausted frame budget in resolve_within_in_frame), and added opt-in XCL_HLSL_CS=<hash,...> (pso.rs, off by default) alongside XCL_SKIP_DXIL=<hash,...> (real.rs, off by default).
  • Still open from review (@bmjask, @tiagonleal, @raylitebull): the P1 request to restrict default-on dispatch skipping to image_only compute (or keep default unbounded/opt-in) plus the shared-standin exhausted-budget and skipped-producer/consumer regression tests are not implemented yet — planning to address those next.
<!-- greyfinch-sync:ivall/xcl:comment:7216012968 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2114#issuecomment-7216012968). Originally posted by [rdj415](https://github.com/rdj415) on 2026-11-27T10:32:42Z. --- Updated the branch (`a4cb014c`) on top of `upstream/main` (`83b00818`) — merge conflicts in `pso_async.rs` and `real.rs` are resolved, and the PR description above has been updated with fresh `xcl-smoke v1` numbers. Ping for anyone waiting on the conflict resolution to re-test (`@DavidM1911`, `@milesah3ad`, `@throny`, `@iggyvilla`, `@futurepro62`, `@Toons29`): - **Fixed in this update:** conflicts against `83b00818` (`by_submit` / `drop_unstarted_job` / `warm` dispatch-chain preserved), `@tiagonleal`'s catch (`return p.stand(pso);` on exhausted frame budget in `resolve_within_in_frame`), and added opt-in `XCL_HLSL_CS=<hash,...>` (`pso.rs`, off by default) alongside `XCL_SKIP_DXIL=<hash,...>` (`real.rs`, off by default). - **Still open from review (`@bmjask`, `@tiagonleal`, `@raylitebull`):** the P1 request to restrict default-on dispatch skipping to `image_only` compute (or keep default unbounded/opt-in) plus the shared-standin exhausted-budget and skipped-producer/consumer regression tests are not implemented yet — planning to address those next. <!-- Drag & drop cap59_frame_16250.png here -->
rdj415 commented 2026-11-27 18:35:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by rdj415 on 2026-11-27T18:35:28Z.


Split a4cb014c (XCL_HLSL_CS in crates/xcl/src/gpu/recomp/pso.rs) out into #3060 (shaders-hlsl-cs-override) per the D95 triage review.

d3d12x-pso-per-frame-wait-cap is now cleanly merged with upstream/main (6089122a) at a9b17bf0 and scoped strictly to the per-PresentX-frame PSO bind wait cap, graphics/mesh/compute lane isolation, and XCL_SKIP_DXIL (present.rs, pso_async.rs, real.rs). The PR description has been updated with the verified build and targeted unit test results on a9b17bf0 (native Windows scripts/smoke.ps1 and full scripts/test.ps1 will follow when back on Windows).

<!-- greyfinch-sync:ivall/xcl:comment:7225649864 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2114#issuecomment-7225649864). Originally posted by [rdj415](https://github.com/rdj415) on 2026-11-27T18:35:28Z. --- Split `a4cb014c` (`XCL_HLSL_CS` in `crates/xcl/src/gpu/recomp/pso.rs`) out into #3060 (`shaders-hlsl-cs-override`) per the D95 triage review. `d3d12x-pso-per-frame-wait-cap` is now cleanly merged with `upstream/main` (`6089122a`) at `a9b17bf0` and scoped strictly to the per-`PresentX`-frame PSO bind wait cap, graphics/mesh/compute lane isolation, and `XCL_SKIP_DXIL` (`present.rs`, `pso_async.rs`, `real.rs`). The PR description has been updated with the verified build and targeted unit test results on `a9b17bf0` (native Windows `scripts/smoke.ps1` and full `scripts/test.ps1` will follow when back on Windows).
Foniass commented 2026-12-01 07:24:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:24:31Z.


Triage (#1607) – head a9b17bf

#1931 and #1652 also add a per-PresentX budget for PSO bind waits, but differently. #1931 is an opt-in atomic budget (XCL_PSO_FRAME_WAIT_MS). #1652 bundles one into a 2.9k-line watchdog / command-list PR.
This PR changes the default, which its description does not say: in pso_async.rs:resolve_caps, with XCL_PSO_WAIT_MS and XCL_PSO_FRAME_WAIT_MS both unset, a booted title now gets a 250 ms per-pipeline and 2 s per-frame cap, so slow pipelines bind the stand-in and their draws and dispatches are skipped. On main the default still waits until the pipeline is built.
It also carries two unrelated changes: XCL_SKIP_DXIL in real.rs, and separate mesh/graphics worker lanes. It conflicts with main's reworked budget code (budget_for).
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7304019261 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2114#issuecomment-7304019261). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T07:24:31Z. --- **Triage (#1607)** – head a9b17bf #1931 and #1652 also add a per-PresentX budget for PSO bind waits, but differently. #1931 is an opt-in atomic budget (`XCL_PSO_FRAME_WAIT_MS`). #1652 bundles one into a 2.9k-line watchdog / command-list PR. This PR changes the default, which its description does not say: in `pso_async.rs:resolve_caps`, with `XCL_PSO_WAIT_MS` and `XCL_PSO_FRAME_WAIT_MS` both unset, a booted title now gets a 250 ms per-pipeline and 2 s per-frame cap, so slow pipelines bind the stand-in and their draws and dispatches are skipped. On main the default still waits until the pipeline is built. It also carries two unrelated changes: `XCL_SKIP_DXIL` in real.rs, and separate mesh/graphics worker lanes. It conflicts with main's reworked budget code (`budget_for`). Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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/2114:upstream-pr/2114'
git switch 'upstream-pr/2114'

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