Recompiler: propagate PSO demand to a shared shader build #2608
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#2608
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?
@KOLESNiii on GitHub · 2026-11-26 01:31 UTC · original
Part of #2508 (Pipeline Rebuild). Verified on
mainatb49be1836844fe0b0cdb3211dce3cb7fb4e21ac7.Two different PSOs can share a translated shader. A background PSO can take the
ShaderKeymutex first and hold it through its DXC call. An urgent PSO requesting the same shader then waits on the mutex. DXC captured a callback to the original PSO's demand, and the waiting PSO registers no demand with the shared shader work. Its arrival therefore cannot change whether that DXC job is considered wanted. This also matters with #2423's priority queue because that queue reads the job's existing demand callback. Translation flight · Demand callback · DXC jobAn extracted-code CPU probe used two simulated pending PSOs, one wanted and one background. Both received the single cached result and the owner's demand callback remained false. For a fix, let foreground waiters register demand on the shared shader work and make DXC query that aggregate while the job is queued or waiting for headroom. Add a deterministic test with a blocked background owner, an urgent joiner and one compile. Check the DXC source-key flight too because distinct shader keys can converge there. Windows timing and title frequency remain unmeasured.
Related to #2088, #2423, #2424 and #2579. AI use was OpenAI Codex (GPT-6, exact serving variant unavailable) for static review, the Linux probe and drafting.
@oni-swr on GitHub · 2026-11-26 02:22 UTC · original
Claiming #2608 to prepare a local fix that registers foreground waiter demand on shared shader compilation, with a CPU regression test. The branch will be available for maintainer or contributor review before submission.
AI use: Claude Code (Claude Opus 5.5), coordinated by Codex (gpt-6.2-sol).