D3D12.X: normal PSO workers compile queued pipelines after release #966
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 nova-aryan on 2026-11-24T09:44:11Z.
A regular PSO worker still executes a queued build after the title has released its stand-in. released() marks the Pending orphaned, but queue() takes and runs the job regardless; only the preload worker currently checks orphan.
This can spend DXC/driver time on obsolete pipeline builds while a title is loading and active builds are waiting. Frequency in a retail run has not been measured, and this is not established as the cause of the world-loading watchdog.
I reproduced it on main
6bac4b4with a deterministic Windows unit test: hold all normal workers behind a gate, enqueue a target job, release its stand-in, then open the gate. The target still runs and the test fails with "released job reached the compiler".Plan: mirror the preload worker's orphan check in the ordinary worker before taking the job. Keep in-progress completion/release behavior as it is. Publish a small draft with the regression and native Windows test results.
The Windows-target binaries were cross-built with Rust 1.100.0, cargo-xwin and Clang 21.1.8, then executed natively on Windows. No retail title was run.
AI use: Codex with GPT-6.1-sol investigated this issue and wrote the test and proposed fix.
Imported from ivall/xcl. Originally posted by O5-7 on 2026-11-25T07:20:58Z.
Claiming #972 (saw #978 is closed and
pso_async.rs's ordinary worker loop inqueue()still does not checkp.orphanon currentmain).Plan (one small PR):
preload()worker'sp.orphan.load(Ordering::Acquire)check inqueue()before takingp.job(and drop the job if already orphaned).cargo test --workspace -- --test-threads=4and a clean-HEADsmoke.ps1check on native Windows (RTX 5080).