Skip to content

Recompiler: propagate PSO demand to a shared shader build #2608

Backlog

Description

@KOLESNiii

Part of #2508 (Pipeline Rebuild). Verified on main at b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7.

Two different PSOs can share a translated shader. A background PSO can take the ShaderKey mutex 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 job

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

Activity

  1. oni-swr commented on Nov 26, 2026

    @oni-swr
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions