D3D12.X: only a title's run reads and writes used-pipelines.txt #1104

Open
einfachama wants to merge 1 commit from upstream-pr/1113 into main
einfachama commented 2026-11-24 11:45:53 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by einfachama on 2026-11-24T11:45:53Z.


used-pipelines.txt (#690) is kept out of tests with cfg!(test), but only the crate's own unit tests have that cfg. The integration tests in crates/xcl/tests/ link the crate without it, so they read the user's list (beside the DXIL cache) and add their own pipelines to it. The same code also keeps used-shaders.txt.

What that did here, measured on Nov 24's main (before #3203): after full test runs with XCL_SAMPLE_RPF set, the user's list held 10 keys. gpu_pso_e2e, run on its own into an empty cache, writes 9 keys, 4 of them among those 10; none of the 27 title runs since then changed the file. Every later run of my retail title then built its pipelines of those shaders ahead: 228 translated pipelines at its first menu instead of 6 (report.json translated_pipelines). That number does not describe today's main. Since #3203, a lazy pipeline no run has used is built ahead anyway (up to XCL_PSO_AHEAD, default 4096). So test keys in the list now decide which pipelines go first, in the ranked preload, rather than whether they are built ahead. used-shaders.txt chooses what a title's shader preparation translates before it starts. I have not measured either effect on today's main. A PR needs both a suite run and smoke.ps1 runs on the same machine, so a tester's smoke runs can start from a list the tests wrote.

The list is now read and written only when a title runs (state::boot() is set; the host sets it at start, before the shader preparation and any pipeline).

What is in it

  • crates/xcl/src/hle/d3d12x/pso_async.rs: used::get() returns the empty, file-less list unless a title runs (cfg!(test) || state::boot().is_none()).
  • crates/xcl/tests/used_pipelines.rs (new): with XCL_DXIL_CACHE set to a temporary folder holding a list, a test binary neither builds the pipeline of a listed key ahead nor adds a used pipeline to the list. Since #3203 (69a48a24), main builds every lazy pipeline that no run has used ahead of its first use, which would hide what the test checks. So the test sets XCL_PSO_AHEAD=0 before its first pipeline, and only a build ahead from the list remains. It fails without the change (a test binary built a pipeline ahead from the user's list). No GPU needed.

Tested

  • NVIDIA GeForce RTX 4060 8 GB (Ada, 32-lane waves), driver 621.24; Ryzen 7 5800X; 32 GB RAM; Windows 11 Pro 26300; Rust 1.100.1 MSVC (the runs at 24c02ab / 4cee988 below: 1.100.0); DXC 1.9.2602.17; debug for the tests, release for the smoke runs.
  • cargo test --workspace -- --test-threads=4 at 9e4ff760 (on main ff0c364): 2890 passed, 0 failed, 51 ignored (44 test binaries). SKIPPED (20 tests, 28 lines):
    • 15 "no wave64": the lower / lower_dxil wave64 cases (7 lower_dxil tests also print the per-lane cases they skip), dispatch_chain_native_wave64_builds_whole, gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware;
    • 2 with no heap windows: heap_window_out_of_memory_falls_back_to_the_switch_form, two_pass_binds_set_the_shared_view_heap;
    • pso_measurement_compiles_an_exact_synthetic_record (no Developer Mode);
    • the two debug-layer tests (Graphics Tools not installed).
  • cargo test -p xcl --test used_pipelines: passes at 9e4ff760, and fails on main ff0c364 with only the test added.
  • The lib test binary sometimes dies with 0xc0000005, on main too. With this branch's source it died in 3 of 15 runs: in 1 of 4 full suite runs (24c02ab, the rebase before the test change, same runtime code; the others, at 24c02ab, 4cee988 and 9e4ff760, passed it with 2741 / 0 / 31) and in 2 of 11 runs of cargo test -p xcl --lib -- --test-threads=4 alone at 9e4ff760. main ff0c364's binary passed 14 such runs alone. Each time, eh::tests::thread_dumps_while_threads_run_and_exit and gpu::bvh::tests::scene_trace_matches_brute_force were running. With only those two and gpu::agility::tests::create_device_sets_dred_first, main's binary died in 1 of 25 runs and this branch's in 0 of 25. The change does not reach the lib tests: there cfg!(test) is true.
  • My retail title at its first menu, scripts/smoke.ps1 -Seconds 60 (release; the same cache snapshot restored before each run): main 1 509 frames, this change 1 492 (99 %); peak commit 16 983 / 19 950 MB. I made two pairs, one in each order. In both, the second run waited about 17 s for driver compiles before its first frame, whichever side it was (main first: 1 509, then this change 1 019; this change first: 1 492, then main 1 028). The blocks below are the first run of each pair. This change's block ends at 38 / 43 / 31 presents per 2 s and has a 3 GB higher peak: that run got further into the title in its 60 s (report.json audio.xapu_frames 1 394 256 against 766 416 in main's block). Both logs show the list being read the same way ("the pipelines of 1127 shader sets an earlier run used are built ahead of their first use"), with 859 and 860 translated pipelines. A title run still reads and writes the list, so these runs show that title runs are unchanged, not the effect on tests.
  • One thing to know when comparing smoke runs: with under 17 GB of system commit free at start, XCL gives the title a 512 MB coherent window instead of the learned one (uma.rs, a WARN in the log), with far fewer frames (#284).

Regression run
main ff0c364:

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

This PR's head 9e4ff760:

xcl-smoke v1
commit: 9e4ff7607ae6c0451cf3756ccca8ac584f424476
gpu: NVIDIA GeForce RTX 4060
title: aaf23206
seconds: 60
exit: 0x0
frames shown: 1492 (PresentX 1492)
presents per 2 s (last 3): 38 43 31
device removals: 0
crashes: 0
peak commit: 19950 MB

Not tested

  • The effect of a list written by tests on a title run on today's main (see above): no numbers.
  • e2e.rs runs the test title as a real title run (boot set), so it can still write the list.
  • main has two newer per-run lists with the same cfg!(test)-only guard, which this PR does not change: used-graphics-pipelines.bin (gfx_records::note) and used-indirect-split.txt (real/dispatch_chain.rs).
  • AMD / Intel GPUs (the change has no GPU path).

AI use

  • Claude Code with Claude Opus 5.5 found this while comparing smoke runs, wrote the change, the test and this description, and ran the tests. It later rebased the branch onto ff0c364, adapted the test to #3203, reran the suite and made the smoke runs. Claude Fable 5.2 (in the Claude app) planned that check and checked the numbers against the logs. I reviewed it before posting.
<!-- greyfinch-sync:ivall/xcl:issue:5471505366 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1113). Originally posted by [einfachama](https://github.com/einfachama) on 2026-11-24T11:45:53Z. --- `used-pipelines.txt` (#690) is kept out of tests with `cfg!(test)`, but only the crate's own unit tests have that cfg. The integration tests in `crates/xcl/tests/` link the crate without it, so they read the user's list (beside the DXIL cache) and add their own pipelines to it. The same code also keeps `used-shaders.txt`. What that did here, measured on Nov 24's `main` (before #3203): after full test runs with `XCL_SAMPLE_RPF` set, the user's list held 10 keys. `gpu_pso_e2e`, run on its own into an empty cache, writes 9 keys, 4 of them among those 10; none of the 27 title runs since then changed the file. Every later run of my retail title then built its pipelines of those shaders ahead: **228 translated pipelines at its first menu instead of 6** (`report.json` `translated_pipelines`). That number does not describe today's `main`. Since #3203, a lazy pipeline no run has used is built ahead anyway (up to `XCL_PSO_AHEAD`, default 4096). So test keys in the list now decide which pipelines go first, in the ranked preload, rather than whether they are built ahead. `used-shaders.txt` chooses what a title's shader preparation translates before it starts. I have not measured either effect on today's `main`. A PR needs both a suite run and `smoke.ps1` runs on the same machine, so a tester's smoke runs can start from a list the tests wrote. The list is now read and written only when a title runs (`state::boot()` is set; the host sets it at start, before the shader preparation and any pipeline). **What is in it** - `crates/xcl/src/hle/d3d12x/pso_async.rs`: `used::get()` returns the empty, file-less list unless a title runs (`cfg!(test) || state::boot().is_none()`). - `crates/xcl/tests/used_pipelines.rs` (new): with `XCL_DXIL_CACHE` set to a temporary folder holding a list, a test binary neither builds the pipeline of a listed key ahead nor adds a used pipeline to the list. Since #3203 (`69a48a24`), `main` builds every lazy pipeline that no run has used ahead of its first use, which would hide what the test checks. So the test sets `XCL_PSO_AHEAD=0` before its first pipeline, and only a build ahead from the list remains. It fails without the change (`a test binary built a pipeline ahead from the user's list`). No GPU needed. **Tested** - NVIDIA GeForce RTX 4060 8 GB (Ada, 32-lane waves), driver 621.24; Ryzen 7 5800X; 32 GB RAM; Windows 11 Pro 26300; Rust 1.100.1 MSVC (the runs at `24c02ab` / `4cee988` below: 1.100.0); DXC 1.9.2602.17; debug for the tests, release for the smoke runs. - `cargo test --workspace -- --test-threads=4` at `9e4ff760` (on `main` `ff0c364`): **2890 passed, 0 failed, 51 ignored** (44 test binaries). SKIPPED (20 tests, 28 lines): - 15 "no wave64": the `lower` / `lower_dxil` wave64 cases (7 `lower_dxil` tests also print the per-lane cases they skip), `dispatch_chain_native_wave64_builds_whole`, `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`; - 2 with no heap windows: `heap_window_out_of_memory_falls_back_to_the_switch_form`, `two_pass_binds_set_the_shared_view_heap`; - `pso_measurement_compiles_an_exact_synthetic_record` (no Developer Mode); - the two debug-layer tests (Graphics Tools not installed). - `cargo test -p xcl --test used_pipelines`: passes at `9e4ff760`, and fails on `main` `ff0c364` with only the test added. - The lib test binary sometimes dies with `0xc0000005`, on `main` too. With this branch's source it died in 3 of 15 runs: in 1 of 4 full suite runs (`24c02ab`, the rebase before the test change, same runtime code; the others, at `24c02ab`, `4cee988` and `9e4ff760`, passed it with 2741 / 0 / 31) and in 2 of 11 runs of `cargo test -p xcl --lib -- --test-threads=4` alone at `9e4ff760`. `main` `ff0c364`'s binary passed 14 such runs alone. Each time, `eh::tests::thread_dumps_while_threads_run_and_exit` and `gpu::bvh::tests::scene_trace_matches_brute_force` were running. With only those two and `gpu::agility::tests::create_device_sets_dred_first`, `main`'s binary died in 1 of 25 runs and this branch's in 0 of 25. The change does not reach the lib tests: there `cfg!(test)` is true. - My retail title at its first menu, `scripts/smoke.ps1 -Seconds 60` (release; the same cache snapshot restored before each run): `main` 1 509 frames, this change 1 492 (99 %); peak commit 16 983 / 19 950 MB. I made two pairs, one in each order. In both, the second run waited about 17 s for driver compiles before its first frame, whichever side it was (`main` first: 1 509, then this change 1 019; this change first: 1 492, then `main` 1 028). The blocks below are the first run of each pair. This change's block ends at 38 / 43 / 31 presents per 2 s and has a 3 GB higher peak: that run got further into the title in its 60 s (`report.json` `audio.xapu_frames` 1 394 256 against 766 416 in `main`'s block). Both logs show the list being read the same way ("the pipelines of 1127 shader sets an earlier run used are built ahead of their first use"), with 859 and 860 translated pipelines. A title run still reads and writes the list, so these runs show that title runs are unchanged, not the effect on tests. - One thing to know when comparing smoke runs: with under 17 GB of system commit free at start, XCL gives the title a 512 MB coherent window instead of the learned one (`uma.rs`, a WARN in the log), with far fewer frames (#284). **Regression run** `main` `ff0c364`: ``` xcl-smoke v1 commit: ff0c364b3de011c13ed45865480c21918a79ec89 gpu: NVIDIA GeForce RTX 4060 title: aaf23206 seconds: 60 exit: 0x0 frames shown: 1509 (PresentX 1509) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16983 MB ``` This PR's head `9e4ff760`: ``` xcl-smoke v1 commit: 9e4ff7607ae6c0451cf3756ccca8ac584f424476 gpu: NVIDIA GeForce RTX 4060 title: aaf23206 seconds: 60 exit: 0x0 frames shown: 1492 (PresentX 1492) presents per 2 s (last 3): 38 43 31 device removals: 0 crashes: 0 peak commit: 19950 MB ``` **Not tested** - The effect of a list written by tests on a title run on today's `main` (see above): no numbers. - `e2e.rs` runs the test title as a real title run (boot set), so it can still write the list. - `main` has two newer per-run lists with the same `cfg!(test)`-only guard, which this PR does not change: `used-graphics-pipelines.bin` (`gfx_records::note`) and `used-indirect-split.txt` (`real/dispatch_chain.rs`). - AMD / Intel GPUs (the change has no GPU path). **AI use** - Claude Code with Claude Opus 5.5 found this while comparing smoke runs, wrote the change, the test and this description, and ran the tests. It later rebased the branch onto `ff0c364`, adapted the test to #3203, reran the suite and made the smoke runs. Claude Fable 5.2 (in the Claude app) planned that check and checked the numbers against the logs. I reviewed it before posting.
Aniseto commented 2026-11-24 13:03:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-24T12:06:17Z.


Ran the new test binary at e03852f:

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

cargo test -p xcl --test used_pipelines
1 passed; 0 failed; 0 ignored      (exit 0)

a_test_binary_neither_reads_nor_writes_the_used_pipelines_list passes. This is a file-level test, so the GPU is not the variable; the datapoint is the Windows 11 build 26200 / MSVC 14.44.35207 toolchain next to the author's run.

Not tested: the retail-title path this PR is about (no unpacked title here), RDNA2/RDNA4 and Intel GPUs, Wine, release profile.

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

<!-- greyfinch-sync:ivall/xcl:comment:7130970657 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1113#issuecomment-7130970657). Originally posted by [Aniseto](https://github.com/Aniseto) on 2026-11-24T12:06:17Z. --- Ran the new test binary at `e03852f`: Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC 14.44.35207, DXC 1.9.2609.5, debug build. ``` cargo test -p xcl --test used_pipelines 1 passed; 0 failed; 0 ignored (exit 0) ``` `a_test_binary_neither_reads_nor_writes_the_used_pipelines_list` passes. This is a file-level test, so the GPU is not the variable; the datapoint is the Windows 11 build 26200 / MSVC 14.44.35207 toolchain next to the author's run. Not tested: the retail-title path this PR is about (no unpacked title here), RDNA2/RDNA4 and Intel GPUs, Wine, release profile. AI-assisted (OpenCode), model: **DeepSeek V4.1 Flash 1017** - checked out the PR's head commit in a detached worktree, built it, ran the test binary, wrote this report; the worktree was not modified.
einfachama commented 2026-11-25 02:08:40 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by einfachama on 2026-11-25T01:12:56Z.


Rebased onto main 6567c5f (it was on 47efa2e, 215 commits behind). No conflicts. The commit itself is unchanged: git range-diff shows the old e03852f and the new head 8aef294 as the same patch, still pso_async.rs (+5 / −2) and the new tests/used_pipelines.rs. I updated Tested and Regression run in the description with the numbers and blocks below.

Tested (head 8aef294, on main 6567c5f)

  • Machine: NVIDIA GeForce RTX 4060 8 GB (Ada, 32-lane waves), driver 621.24; Ryzen 7 5800X; 32 GB RAM; Windows 11 Pro 26300; Rust 1.100.0 MSVC; DXC 1.9.2602.17. Debug for the tests, release for the smoke runs.
  • cargo test --workspace -- --test-threads=4: 998 passed, 0 failed, 45 ignored (21 test binaries), on the first run. 24 SKIPPED lines:
    • 19 "no wave64" (the lower / lower_dxil wave64 cases, gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware);
    • 3 per-lane f16 / f32 conversion cases refused by the per-lane form;
    • heap_window_out_of_memory_falls_back_to_the_switch_form;
    • pso_measurement_compiles_an_exact_synthetic_record (Developer Mode is off here).
  • cargo test -p xcl --test used_pipelines: passes at the head, and fails on main 6567c5f with only the test added (a_test_binary_neither_reads_nor_writes_the_used_pipelines_list).
  • Smoke runs: my retail title at its first menu, scripts/smoke.ps1 -Seconds 60. Each run started from the same restored shader caches (the same used-pipelines.txt, 1 125 lines), with 50.7 GB of free system commit (the learned coherent window). main shows 1 534 frames and this change 1 562.
    • The title: line is now the hash smoke.ps1 prints since #677, not the folder name the earlier blocks had. It is the same folder.

Regression run

xcl-smoke v1
commit: 6567c5ffa38fbc7039b2d6bf520154689cc1f482
gpu: NVIDIA GeForce RTX 4060
title: aaf23206
seconds: 60
exit: 0x0
frames shown: 1534 (PresentX 1534)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16162 MB
xcl-smoke v1
commit: 8aef2946818bf7547a34efae7fc5133773d9b591
gpu: NVIDIA GeForce RTX 4060
title: aaf23206
seconds: 60
exit: 0x0
frames shown: 1562 (PresentX 1562)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16052 MB

Not tested

  • AMD / Intel GPUs (the change has no GPU path).

AI use

  • Claude Code (Claude Opus 5.5) rebased the branch, ran the suite and the smoke runs, and wrote this comment. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7149321673 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1113#issuecomment-7149321673). Originally posted by [einfachama](https://github.com/einfachama) on 2026-11-25T01:12:56Z. --- Rebased onto `main` `6567c5f` (it was on `47efa2e`, 215 commits behind). No conflicts. The commit itself is unchanged: `git range-diff` shows the old `e03852f` and the new head `8aef294` as the same patch, still `pso_async.rs` (+5 / −2) and the new `tests/used_pipelines.rs`. I updated **Tested** and **Regression run** in the description with the numbers and blocks below. **Tested** (head `8aef294`, on `main` `6567c5f`) - **Machine:** NVIDIA GeForce RTX 4060 8 GB (Ada, 32-lane waves), driver 621.24; Ryzen 7 5800X; 32 GB RAM; Windows 11 Pro 26300; Rust 1.100.0 MSVC; DXC 1.9.2602.17. Debug for the tests, release for the smoke runs. - **`cargo test --workspace -- --test-threads=4`:** **998 passed, 0 failed, 45 ignored** (21 test binaries), on the first run. 24 `SKIPPED` lines: - 19 "no wave64" (the `lower` / `lower_dxil` wave64 cases, `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`); - 3 per-lane f16 / f32 conversion cases refused by the per-lane form; - `heap_window_out_of_memory_falls_back_to_the_switch_form`; - `pso_measurement_compiles_an_exact_synthetic_record` (Developer Mode is off here). - **`cargo test -p xcl --test used_pipelines`:** passes at the head, and fails on `main` `6567c5f` with only the test added (`a_test_binary_neither_reads_nor_writes_the_used_pipelines_list`). - **Smoke runs:** my retail title at its first menu, `scripts/smoke.ps1 -Seconds 60`. Each run started from the same restored shader caches (the same `used-pipelines.txt`, 1 125 lines), with 50.7 GB of free system commit (the learned coherent window). `main` shows 1 534 frames and this change 1 562. - The `title:` line is now the hash `smoke.ps1` prints since #677, not the folder name the earlier blocks had. It is the same folder. **Regression run** ``` xcl-smoke v1 commit: 6567c5ffa38fbc7039b2d6bf520154689cc1f482 gpu: NVIDIA GeForce RTX 4060 title: aaf23206 seconds: 60 exit: 0x0 frames shown: 1534 (PresentX 1534) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16162 MB ``` ``` xcl-smoke v1 commit: 8aef2946818bf7547a34efae7fc5133773d9b591 gpu: NVIDIA GeForce RTX 4060 title: aaf23206 seconds: 60 exit: 0x0 frames shown: 1562 (PresentX 1562) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16052 MB ``` **Not tested** - AMD / Intel GPUs (the change has no GPU path). **AI use** - Claude Code (Claude Opus 5.5) rebased the branch, ran the suite and the smoke runs, and wrote this comment. I checked it before posting.
DavidM1911 commented 2026-11-25 09:08:11 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T08:16:05Z.


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:7156816212 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1113#issuecomment-7156816212). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T08:16:05Z. --- 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!
einfachama commented 2026-11-25 17:07:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by einfachama on 2026-11-25T16:15:10Z.


Rebased onto main 06c9f55 (it was on 6567c5f, 275 commits behind). No conflicts; git range-diff shows the old head 8aef294 and the new head 5dc8f99 as the same patch. I updated Tested and Regression run in the description.

Tested (head 5dc8f99, on main 06c9f55)

  • cargo test --workspace -- --test-threads=4: 1266 passed, 0 failed, 46 ignored, on the first run. 18 tests print SKIPPED: 14 "no wave64" (two of them also print per-lane f16 / f32 cases the per-lane form refuses), 2 with no D3D12 debug layer, 1 with no heap windows, 1 with no Developer Mode.
  • cargo test -p xcl --test used_pipelines: passes at the head, and fails on main 06c9f55 with only the test added.
  • Smoke runs, my retail title, scripts/smoke.ps1 -Seconds 60, each from the same restored shader caches: main 1 472 frames, this change 1 503; no device removal, no crash. Both are lower than last time's 1 534 / 1 562, probably because main's translation identity is new since #2120, so both runs started with nothing translated for it.

Regression run

xcl-smoke v1
commit: 06c9f5505f63f10c5ec49ef932d75b2c28177324
gpu: NVIDIA GeForce RTX 4060
title: aaf23206
seconds: 60
exit: 0x0
frames shown: 1472 (PresentX 1472)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16063 MB
xcl-smoke v1
commit: 5dc8f992d926d15883a461538dd6ff328beff128
gpu: NVIDIA GeForce RTX 4060
title: aaf23206
seconds: 60
exit: 0x0
frames shown: 1503 (PresentX 1503)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16223 MB

AI use

  • Claude Code (Claude Opus 5.5) rebased the branch, ran the suite and the smoke runs, and wrote this comment. Claude Fable 5.2 (in the Claude app) reviewed it. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7167725309 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1113#issuecomment-7167725309). Originally posted by [einfachama](https://github.com/einfachama) on 2026-11-25T16:15:10Z. --- Rebased onto `main` `06c9f55` (it was on `6567c5f`, 275 commits behind). No conflicts; `git range-diff` shows the old head `8aef294` and the new head `5dc8f99` as the same patch. I updated **Tested** and **Regression run** in the description. **Tested** (head `5dc8f99`, on `main` `06c9f55`) - `cargo test --workspace -- --test-threads=4`: **1266 passed, 0 failed, 46 ignored**, on the first run. 18 tests print `SKIPPED`: 14 "no wave64" (two of them also print per-lane f16 / f32 cases the per-lane form refuses), 2 with no D3D12 debug layer, 1 with no heap windows, 1 with no Developer Mode. - `cargo test -p xcl --test used_pipelines`: passes at the head, and fails on `main` `06c9f55` with only the test added. - Smoke runs, my retail title, `scripts/smoke.ps1 -Seconds 60`, each from the same restored shader caches: `main` 1 472 frames, this change 1 503; no device removal, no crash. Both are lower than last time's 1 534 / 1 562, probably because `main`'s translation identity is new since #2120, so both runs started with nothing translated for it. **Regression run** ``` xcl-smoke v1 commit: 06c9f5505f63f10c5ec49ef932d75b2c28177324 gpu: NVIDIA GeForce RTX 4060 title: aaf23206 seconds: 60 exit: 0x0 frames shown: 1472 (PresentX 1472) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16063 MB ``` ``` xcl-smoke v1 commit: 5dc8f992d926d15883a461538dd6ff328beff128 gpu: NVIDIA GeForce RTX 4060 title: aaf23206 seconds: 60 exit: 0x0 frames shown: 1503 (PresentX 1503) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16223 MB ``` **AI use** - Claude Code (Claude Opus 5.5) rebased the branch, ran the suite and the smoke runs, and wrote this comment. Claude Fable 5.2 (in the Claude app) reviewed it. I checked it before posting.
github-actions[bot] commented 2026-11-29 07:43:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:43:45Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7252653471 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1113#issuecomment-7252653471). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T07:43:45Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
einfachama commented 2026-12-01 00:46:19 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by einfachama on 2026-12-01T00:46:19Z.


Still needed: on main ff0c364 the list of used pipelines is still kept out of tests only by cfg!(test), so the integration tests in crates/xcl/tests/ still read the user's used-pipelines.txt (and used-shaders.txt) and add their own pipelines to it. Rebased onto main ff0c364, new head 9e4ff760.

The rebase had one conflict: main rewrote pso_async.rs. I took main's file and put the same one-line guard back into used::get(). The test's premise changed on main: since #3203 (69a48a24), every lazy pipeline that no run has used is built ahead of its first use anyway, so "built ahead" no longer shows that the list was read. The test now sets XCL_PSO_AHEAD=0 before its first pipeline. With that, a pipeline is built ahead only if its key is in the list, and the test still fails without the fix.

Tested (head 9e4ff760, on main ff0c364; RTX 4060, driver 621.24, Ryzen 7 5800X, Windows 11 Pro 26300, Rust 1.100.1, debug for the tests, release for the smoke runs)

  • cargo test --workspace -- --test-threads=4: 2890 passed, 0 failed, 51 ignored (44 test binaries). 20 tests print SKIPPED: 15 "no wave64", 2 with no heap windows, 2 with no D3D12 debug layer, 1 with no Developer Mode.
  • cargo test -p xcl --test used_pipelines: passes at 9e4ff760. On main ff0c364 with only the new test added, it fails (a test binary built a pipeline ahead from the user's list).
  • The lib test binary sometimes dies with 0xc0000005 while eh::tests::thread_dumps_while_threads_run_and_exit runs, on main ff0c364 too; the numbers are in the description.
  • scripts/smoke.ps1 -Seconds 60 on my retail title: main 1 509 frames, this head 1 492, no removal or crash; both blocks and the run order are in the description.

AI use

  • Claude Code (Claude Opus 5.5) did the rebase, the checks and the smoke runs, and wrote this comment. Claude Fable 5.2 (in the Claude app) planned the check. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7296719516 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1113#issuecomment-7296719516). Originally posted by [einfachama](https://github.com/einfachama) on 2026-12-01T00:46:19Z. --- Still needed: on `main` `ff0c364` the list of used pipelines is still kept out of tests only by `cfg!(test)`, so the integration tests in `crates/xcl/tests/` still read the user's `used-pipelines.txt` (and `used-shaders.txt`) and add their own pipelines to it. Rebased onto `main` `ff0c364`, new head `9e4ff760`. The rebase had one conflict: `main` rewrote `pso_async.rs`. I took `main`'s file and put the same one-line guard back into `used::get()`. The test's premise changed on `main`: since #3203 (`69a48a24`), every lazy pipeline that no run has used is built ahead of its first use anyway, so "built ahead" no longer shows that the list was read. The test now sets `XCL_PSO_AHEAD=0` before its first pipeline. With that, a pipeline is built ahead only if its key is in the list, and the test still fails without the fix. **Tested** (head `9e4ff760`, on `main` `ff0c364`; RTX 4060, driver 621.24, Ryzen 7 5800X, Windows 11 Pro 26300, Rust 1.100.1, debug for the tests, release for the smoke runs) - `cargo test --workspace -- --test-threads=4`: **2890 passed, 0 failed, 51 ignored** (44 test binaries). 20 tests print `SKIPPED`: 15 "no wave64", 2 with no heap windows, 2 with no D3D12 debug layer, 1 with no Developer Mode. - `cargo test -p xcl --test used_pipelines`: passes at `9e4ff760`. On `main` `ff0c364` with only the new test added, it fails (`a test binary built a pipeline ahead from the user's list`). - The lib test binary sometimes dies with `0xc0000005` while `eh::tests::thread_dumps_while_threads_run_and_exit` runs, on `main` `ff0c364` too; the numbers are in the description. - `scripts/smoke.ps1 -Seconds 60` on my retail title: `main` 1 509 frames, this head 1 492, no removal or crash; both blocks and the run order are in the description. **AI use** - Claude Code (Claude Opus 5.5) did the rebase, the checks and the smoke runs, and wrote this comment. Claude Fable 5.2 (in the Claude app) planned the check. I checked it before posting.
Foniass commented 2026-12-01 04:51:09 +00:00 (Migrated from github.com)

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


Triage (#1607) – head 9e4ff76

No open or merged PR makes this change: main's used::get in pso_async.rs still keys only on cfg!(test). #2635 rewrites the same used module (batching writes off the bind lock) but keeps the cfg!(test)-only guard, so it does not cover integration-test binaries; the two will conflict.
No problems found in the diff: state::boot() is set only by host.rs before a title runs, and the CLI readers of the list (used_pipelines_name users) read the file directly, not through used::get.
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:7301167782 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1113#issuecomment-7301167782). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T04:51:09Z. --- **Triage (#1607)** – head 9e4ff76 No open or merged PR makes this change: main's `used::get` in `pso_async.rs` still keys only on `cfg!(test)`. #2635 rewrites the same `used` module (batching writes off the bind lock) but keeps the `cfg!(test)`-only guard, so it does not cover integration-test binaries; the two will conflict. No problems found in the diff: `state::boot()` is set only by `host.rs` before a title runs, and the CLI readers of the list (`used_pipelines_name` users) read the file directly, not through `used::get`. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
einfachama commented 2026-12-03 03:24:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by einfachama on 2026-12-03T03:24:48Z.


The stale label is still on this PR. The push to 9e4ff76 and my comment of Dec 1 both came after the label was set, and the bot's note says either one takes the mark off. Could a collaborator remove it, so the PR is not closed by the timer?

Head 9e4ff76 is still current. Since the rebase only the triage note above was added, and the merge queue (#3041) lists the PR under "Needs test reports" (0/2).

AI use

  • Claude Fable 5.2 (in the Claude app) drafted this comment. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7366537928 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1113#issuecomment-7366537928). Originally posted by [einfachama](https://github.com/einfachama) on 2026-12-03T03:24:48Z. --- The `stale` label is still on this PR. The push to `9e4ff76` and my comment of Dec 1 both came after the label was set, and the bot's note says either one takes the mark off. Could a collaborator remove it, so the PR is not closed by the timer? Head `9e4ff76` is still current. Since the rebase only the triage note above was added, and the merge queue (#3041) lists the PR under "Needs test reports" (0/2). **AI use** - Claude Fable 5.2 (in the Claude app) drafted this comment. I checked it before posting.
fromthemoonx commented 2026-12-03 08:11:01 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-12-03T08:11:01Z.


merge-check
base: 16c2fd082a
head: 9e4ff7607a
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 3013 passed, 0 failed, 56 ignored (base: 3012 passed, 0 failed, 56 ignored, counted on 395405e4; only docs and scripts changed since); SKIPPED: 25, the same as base (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps); failing: none
review: read the whole diff (2 files, +45 -2). No finding.

  1. The new test fails with main's pso_async.rs on this merge (a test binary built a pipeline ahead from the user's list) and passes with the PR's.
  2. A title run keeps its list. The risk was the one-time load: if something asked for the list before the boot record is set, it would stay empty for the whole run. The host sets the record before the shader preparation and the title's first pipeline. A scratch test that sets a boot record first gave the same result with main's code and with the PR's: the listed pipeline was built ahead, and the newly used one was added to the file.
  3. earlier_used_shaders (the shader preparation and xcl shaders --used-only) reads the file directly, so this change does not affect it.
  4. Without game samples I could not see the pollution itself: gpu_compute_e2e, gpu_pso_e2e and gpu_two_pass_cache_e2e on an empty cache write no list here with main's code either. The description's case needs XCL_SAMPLE_RPF.
  5. A list that tests already wrote into stays as it is. Anyone who ran them with samples may want to delete used-pipelines.txt and used-shaders.txt once.
  6. Not tested: a retail title (none on this machine). XCL's own test title makes no translated pipelines, so it does not use the list.
    performance: none for a title run: one check when the list is first loaded.
    verdict: safe to merge
    hardware / tool and model: RTX 3060 12 GB (610.88), Ryzen 7 5700X, Windows 11 Pro 26300 / Claude Code (Claude Opus 5.5)
<!-- greyfinch-sync:ivall/xcl:comment:7371931527 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1113#issuecomment-7371931527). Originally posted by [fromthemoonx](https://github.com/fromthemoonx) on 2026-12-03T08:11:01Z. --- merge-check base: 16c2fd082ae2e96967a2ab553bc2e1032e491f70 head: 9e4ff7607ae6c0451cf3756ccca8ac584f424476 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 3013 passed, 0 failed, 56 ignored (base: 3012 passed, 0 failed, 56 ignored, counted on 395405e4; only docs and scripts changed since); SKIPPED: 25, the same as base (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps); failing: none review: read the whole diff (2 files, +45 -2). No finding. 1) The new test fails with main's `pso_async.rs` on this merge (`a test binary built a pipeline ahead from the user's list`) and passes with the PR's. 2) A title run keeps its list. The risk was the one-time load: if something asked for the list before the boot record is set, it would stay empty for the whole run. The host sets the record before the shader preparation and the title's first pipeline. A scratch test that sets a boot record first gave the same result with main's code and with the PR's: the listed pipeline was built ahead, and the newly used one was added to the file. 3) `earlier_used_shaders` (the shader preparation and `xcl shaders --used-only`) reads the file directly, so this change does not affect it. 4) Without game samples I could not see the pollution itself: `gpu_compute_e2e`, `gpu_pso_e2e` and `gpu_two_pass_cache_e2e` on an empty cache write no list here with main's code either. The description's case needs `XCL_SAMPLE_RPF`. 5) A list that tests already wrote into stays as it is. Anyone who ran them with samples may want to delete `used-pipelines.txt` and `used-shaders.txt` once. 6) Not tested: a retail title (none on this machine). XCL's own test title makes no translated pipelines, so it does not use the list. performance: none for a title run: one check when the list is first loaded. verdict: safe to merge hardware / tool and model: RTX 3060 12 GB (610.88), Ryzen 7 5700X, Windows 11 Pro 26300 / Claude Code (Claude Opus 5.5)
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/1113:upstream-pr/1113'
git switch 'upstream-pr/1113'

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