Skip to content

Shaders: legacy geometry PSOs retranslate the same ES+GS pair for every pixel shader (verification help wanted) #2876

Backlog

Description

@KOLESNiii

Could someone verify whether legacy geometry PSOs spend measurable CPU time retranslating the same ES+GS pair when only the pixel shader or fixed-function state changes?

On main at 8b957bec, translated_gs_pso calls console_geometry before either native driver-cache lookup. console_geometry reparses and combines the ES and GS and runs direct DXIL lowering or generates HLSL before looking up the DXC result. By comparison, the NGG mesh path caches its compute pass before making the pixel-signature-specific mesh passthrough. GS caller · ES+GS translation · HLSL cache lookup · NGG compute-pass cache

A Windows check could create two valid PSOs with identical console VS/GS bytes and different PS or fixed-function state, after warming DXC and the driver blobs. Count and time the ES+GS lowering calls separately from passthrough generation and native PSO creation. Please verify whether the repeat work also shows up in a representative title before deciding if it warrants a cache.

This was a static source review on Linux. PR #2103 covers deferring direct geometry lowering during a cached-only probe. This report asks about repeated lowering across builds that proceed to translation.

AI use: Codex (GPT-6, exact serving variant unavailable) for the Graphify-assisted review and issue draft.

Activity

  1. changed the title [-]Verify whether legacy geometry PSOs repeat ES+GS translation on warm caches[/-] [+]Shaders: legacy geometry PSOs retranslate the same ES+GS pair for every pixel shader (verification help wanted)[/+] on Nov 27, 2026
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