D3D12.X: record first use of synchronous compute PSOs #3181
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3181"
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:31:50Z.
Part of #2088. A translated compute PSO created synchronously has no pending entry, so its first bind was absent from the ordered manifest. This keeps a trace-only ready-compute registration until first bind or final release and protects cleanup from driver address reuse.
Stacked on #3175; only commit
61fdf424belongs here. Supersedes #2409 on currentmain; credit to @ettehn for the original implementation and regression.What is in it
pso_manifest.rs: register ready compute PSOs with generation-safe release cleanupbind.rs,pso_async.rs, andreal.rs: record first use through current retained binds and preserve coalesced-build identitygpu_compute_e2e.rs: create a synchronous translated compute PSO, bind it twice, and require exactly one ordered ready-use eventTested
cargo test -p xcl --lib pso_manifest -- --test-threads=1: 4 passed, 0 failedcargo test -p xcl --test gpu_compute_e2e synchronous_compute_manifest_records_first_bind -- --exact --nocapture --test-threads=1: 1 passed, 0 failedcargo test --workspace -- --test-threads=4: 2147 passed, 0 failed, 48 ignored; 26 runtime GPU skips (wave64 unavailable, unsupported instruction cases, missingdxil.dll, and heap windows unavailable)Regression run
Main (
db3921dcc69a32be381a17b6a81c944617338c9f):This PR (
61fdf424e09d701163f90de03ec7f5a3b12c234b):Not tested
XCL_PSO_MANIFEST=1; the isolated GPU regression covers the synchronous translated-compute eventAI use
Codex with GPT-5 adapted #2409 to the current retained-bind and coalesced-build paths, resolved conflicts, reviewed the address-reuse cleanup, ran the reported tests and smoke, and prepared this PR.