D3D12.X: record ordered pipeline first use #3175
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3175"
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?
Imported from ivall/xcl. Originally posted by bmjask on 2026-11-28T16:07:13Z.
Part of #2088. This brings the ordered first-use diagnostics from #2096 onto current
main, after the pipeline-library migration in #3100. It records opt-in, append-as-events-happen evidence so pipeline preparation can be selected from measured startup use rather than title-specific guesses. Recording does not build, reorder, or skip pipelines.Supersedes #2096; credit to @ettehn for the original manifest design and implementation.
What is in it
crates/xcl/src/hle/d3d12x/pso_manifest.rs: write ordered first-use, driver-build, and present-milestone events whenXCL_PSO_MANIFEST=1, with concurrency and format testscrates/xcl/src/hle/d3d12x/pso_async.rsandreal.rs: report first use, cache state, driver time, and compile-slot wait timecrates/xcl/src/hle/d3d12x/present.rs: report sparse present milestonesTested
cargo test -p xcl --lib pso_manifest -- --test-threads=1: 3 passed, 0 failedcargo build --workspace: passedcargo test --workspace -- --test-threads=4: 2145 passed, 0 failed, 48 ignored; 26 runtime GPU skips (wave64 unavailable, unsupported instruction cases, missingdxil.dll, and heap windows unavailable)XCL_PREPARE=0so an unrelated full corpus preparation did not gate the 60-second runtime capture.Regression run
Main (
bb9a6b4bfc7632b09f3a633e983c86cd72b0fa8f):This PR (
59cd71e68829f2f3f64dc336e3fbff813682a1e6):Not tested
XCL_PSO_MANIFEST=1; event formatting and first-use ordering are covered by unit tests, while the regression smoke kept the opt-in recorder disabledusekey identifies XCL's shader-set pipeline object, not every canonical fixed-function PSO derivative; canonical identity is a separate follow-upAI use
Codex with GPT-5 adapted the existing #2096 implementation to current
main, resolved conflicts after #3100, wrote/updated tests, ran the reported builds and tests, and prepared this PR.