D3D12.X: skip queued builds of released pipelines #978
No reviewers
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!978
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/978/head"
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:49 UTC · original
nova-aryan:contrib/pso-cancel-released-builds→main· +67 −0 · 2 files · 1 commits · closed without mergingNormal PSO workers still compiled a queued pipeline after its stand-in was released. released() sets Pending::orphan, but only the preload worker checked it. Obsolete jobs can consume DXC/driver time while active jobs wait. Fixes #972.
What is in it
Tested
All runs below happened before the user asked to stop local execution.
6bac4b4plus the regression: 0 passed, 1 failed with "released job reached the compiler".Regression run
Pending main/head retail title smoke runs.
Not tested
Retail title behavior, AMD/Intel GPUs, a completed full workspace test run, and a native MSVC compiler build. Full library GPU tests reported two no-wave64 skips. Cross-build fixture-path adjustments and the /FIstring.h workaround for libudis86 are confined to the local build setup.
This change is not established as a fix for the world-loading watchdog. No retail performance measurement is available. A release racing with a job that has already started can still complete through the existing orphan cleanup.
Local game/build/test execution has been stopped at the user's request. This PR remains a public draft for CI and independent validation.
AI use
Codex with GPT-6.1-sol investigated the issue, wrote the fix and regression, ran the checks above and drafted this description.
@DavidM1911 on GitHub · 2026-11-24 12:21 UTC · original
Independent verification, merged onto current
main384f7f7locally (clean merge).Machine: Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug.
cargo test -p xcl --lib pso_async: 4 passed, 0 failed — includes the newreleased_queued_pipelines_are_not_built, which verifies a queued build is skipped once the title releases the pipeline.AI use: test runs by Devin (Cognition, SWE-2); no code changes.
@thehollowedone on GitHub · 2026-11-24 12:28 UTC · original
Independent Windows check on
da491ee. Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti / 621.35, Rust 1.99.1 MSVC, debug.Tested.
cargo test --offline --locked -p xcl --lib pso_async -- --test-threads=1passed 3/3. In a scratch extension of the queue test, I released a stand-in while every compiler worker was occupied, then queued a replacement at the same synthetic address. The old job was discarded without running. The replacement ran, completed, and remained registered until explicitly released. The same-address case passed 3/3 isolated runs with the same command and the filterscratch_reused_stand_in_keeps_the_new_job_live.Not tested. Native GPU pipeline creation, performance, or retail behavior. Both synthetic jobs returned zero.
AI-assisted. Codex (GPT-6, exact variant unavailable) wrote and ran the scratch test and drafted this report.
@Toons29 on GitHub · 2026-11-25 03:09 UTC · original
Regression run of
da491ee5on the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon4178e888, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 100 % of
main's frames, 100 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; I checked the blocks before posting.@Prime1997 on GitHub · 2026-11-26 00:52 UTC · original
Closing because main already has this behaviour, from
b4d74821("D3D12.X: skip orphaned queued builds in normal PSO workers", Fixes #972). On main, the queue workers callbuild_queued(), which checksp.orphanand drops an unstarted job throughdrop_unstarted_job(). That is the same skip of released stand-ins that this PR adds. Only the one-line README note here is not on main.Compared at head
da491ee5against main08db802. Reviewed with Claude Code (Claude Opus 5.5); I checked the comparison before closing.@DavidM1911 on GitHub · 2026-11-26 03:23 UTC · original
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current
mainon the new head — needs another rebase before it can be tested.Pull request closed