D3D12.X: normal PSO workers compile queued pipelines after release #972
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#972
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?
@nova-aryan on GitHub · 2026-11-24 09:44 UTC · original
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.
@O5-7 on GitHub · 2026-11-25 07:20 UTC · original
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).