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

Closed
opened 2026-11-24 09:44:11 +00:00 by nova-aryan · 1 comment
nova-aryan commented 2026-11-24 09:44:11 +00:00 (Migrated from github.com)
Contributor

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 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.

<!-- greyfinch-sync:ivall/xcl:issue:6578969542 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/972). Originally posted by [nova-aryan](https://github.com/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 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.
O5-7 commented 2026-11-25 08:08:12 +00:00 (Migrated from github.com)
Author
Contributor

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 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).
<!-- greyfinch-sync:ivall/xcl:comment:7155761223 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/972#issuecomment-7155761223). Originally posted by [O5-7](https://github.com/O5-7) on 2026-11-25T07:20:58Z. --- 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).
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl#966
No description provided.