Shaders: warm the graphics DXIL variants selected at runtime #2600
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#2600
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:18 UTC · original
Part of #2508 (Pipeline Rebuild). Reviewed on
mainatb49be1836844fe0b0cdb3211dce3cb7fb4e21ac7.The folder and pack precompiler emits HLSL for VS/PS and calls DXC directly. Runtime PSO creation uses
console_to_dxil_for, which can lower those stages directly withXCL_DIRECT_DXIL=all. The offline loop therefore never fills those direct-translation entries. In the HLSL path it also uses the default static-sampler base of zero. Runtime VS+PS creation passes the VS static-sampler count as the PS base, so a PS that uses static samplers can emit a different DXC input with its actual VS partner. Offline loop · Runtime VS/PS creation · Backend selectionUse the runtime translation path where the offline input identifies the same shader variant. For a raw PS record without its VS pairing, make the assumed sampler base explicit in coverage reporting. A regression test should cover direct VS/PS caching and an HLSL pair with a nonzero PS base. In a fresh process, verify hits for the warmed variants and measure translation/DXC separately from native PSO creation.
The remaining suspicion is that variant misses contribute to warm loading delays. The code establishes which paths differ. Windows timing and title frequency are unmeasured. Original roadmap comment
AI use was OpenAI Codex (GPT-6, exact serving variant unavailable) for static review and drafting.