D3D12.X: normal PSO workers compile queued pipelines after release #972

Closed
opened 2026-11-26 04:38:43 +00:00 by github-bot · 1 comment
Owner

@⁠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 6bac4b4 with 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.

**@⁠nova-aryan** on GitHub · 2026-11-24 09:44 UTC · [original](https://github.com/xcl-dev/xcl/issues/972) 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 6bac4b4 with 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.
github-bot 2026-11-26 04:38:43 +00:00
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:38:43 +00:00
Author
Owner

@⁠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 in queue() still does not check p.orphan on current main).

Plan (one small PR):

  • Mirror the preload() worker's p.orphan.load(Ordering::Acquire) check in queue() before taking p.job (and drop the job if already orphaned).
  • Add a deterministic Windows regression test blocking normal workers behind a gate, enqueuing a target build, releasing its stand-in, and verifying the job never runs.
  • Run full cargo test --workspace -- --test-threads=4 and a clean-HEAD smoke.ps1 check on native Windows (RTX 5080).
**@⁠O5-7** on GitHub · 2026-11-25 07:20 UTC · [original](https://github.com/xcl-dev/xcl/issues/972#issuecomment-7155761223) Claiming #972 (saw #978 is closed and `pso_async.rs`'s ordinary worker loop in `queue()` still does not check `p.orphan` on current `main`). Plan (one small PR): - Mirror the `preload()` worker's `p.orphan.load(Ordering::Acquire)` check in `queue()` before taking `p.job` (and drop the job if already orphaned). - Add a deterministic Windows regression test blocking normal workers behind a gate, enqueuing a target build, releasing its stand-in, and verifying the job never runs. - Run full `cargo test --workspace -- --test-threads=4` and a clean-HEAD `smoke.ps1` check on native Windows (RTX 5080).
This discussion has been locked. Commenting is limited to contributors.
No description provided.