D3D12.X: only a title's run reads and writes used-pipelines.txt #1113
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1113
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1113"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@einfachama on GitHub · 2026-11-24 11:45 UTC · original
einfachama:overnight/pso-used-list-title-runs→main· +41 −2 · 2 files · 1 commits · openused-pipelines.txt(#690) is kept out of tests withcfg!(test), but only the crate's own unit tests have that cfg. The integration tests incrates/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.What that did here: after full test runs with
XCL_SAMPLE_RPFset, 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.jsontranslated_pipelines). A PR needs both a suite run andsmoke.ps1runs 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 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): withXCL_DXIL_CACHEset 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. It fails without the change (a test binary built a pipeline ahead from the user's list). No GPU needed.Tested
cargo test --workspace -- --test-threads=4at8aef294(onmain6567c5f): 998 passed, 0 failed, 45 ignored, on the first run. SKIPPED: 19 "no wave64" (thelower/lower_dxilwave64 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, andpso_measurement_compiles_an_exact_synthetic_record(no Developer Mode).cargo test -p xcl --test used_pipelines: passes at the head, fails onmain6567c5fwith only the test added.scripts/smoke.ps1 -Seconds 60, each run from the same restored shader caches (used-pipelines.txt1 125 lines) and 50.7 GB of free system commit: the blocks below (main1 534 frames, this change 1 562). A title run still reads and writes the list, so these runs show that title runs are unchanged, not the effect on tests.uma.rs, a WARN in the log), with far fewer frames (#284).Regression run
Not tested
e2e.rsruns the test title as a real title run (boot set), so it can still write the list; withXCL_DXIL_CACHEpointed at an empty folder it wrote no key here.AI use
6567c5fwith new runs; I reviewed it before posting.github-bot referenced this pull request2026-11-26 05:35:22 +00:00
@Aniseto on GitHub · 2026-11-24 12:06 UTC · original
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.
a_test_binary_neither_reads_nor_writes_the_used_pipelines_listpasses. 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 on GitHub · 2026-11-25 01:12 UTC · original
Rebased onto
main6567c5f(it was on47efa2e, 215 commits behind). No conflicts. The commit itself is unchanged:git range-diffshows the olde03852fand the new head8aef294as the same patch, stillpso_async.rs(+5 / −2) and the newtests/used_pipelines.rs. I updated Tested and Regression run in the description with the numbers and blocks below.Tested (head
8aef294, onmain6567c5f)cargo test --workspace -- --test-threads=4: 998 passed, 0 failed, 45 ignored (21 test binaries), on the first run. 24SKIPPEDlines:lower/lower_dxilwave64 cases,gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware);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 onmain6567c5fwith only the test added (a_test_binary_neither_reads_nor_writes_the_used_pipelines_list).scripts/smoke.ps1 -Seconds 60. Each run started from the same restored shader caches (the sameused-pipelines.txt, 1 125 lines), with 50.7 GB of free system commit (the learned coherent window).mainshows 1 534 frames and this change 1 562.title:line is now the hashsmoke.ps1prints since #677, not the folder name the earlier blocks had. It is the same folder.Regression run
Not tested
AI use
@DavidM1911 on GitHub · 2026-11-25 08:16 UTC · original
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 on GitHub · 2026-11-25 16:15 UTC · original
Rebased onto
main06c9f55(it was on6567c5f, 275 commits behind). No conflicts;git range-diffshows the old head8aef294and the new head5dc8f99as the same patch. I updated Tested and Regression run in the description.Tested (head
5dc8f99, onmain06c9f55)cargo test --workspace -- --test-threads=4: 1266 passed, 0 failed, 46 ignored, on the first run. 18 tests printSKIPPED: 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 onmain06c9f55with only the test added.scripts/smoke.ps1 -Seconds 60, each from the same restored shader caches:main1 472 frames, this change 1 503; no device removal, no crash. Both are lower than last time's 1 534 / 1 562, probably becausemain's translation identity is new since #2120, so both runs started with nothing translated for it.Regression run
AI use
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.