Recompiler: share translated DXIL across repeated compute PSO builds #2609
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#2609
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:33 UTC · original
Part of #2508 (Pipeline Rebuild). Verified on
mainatb49be1836844fe0b0cdb3211dce3cb7fb4e21ac7. Related to #2454, #2600 and #2608.The translated shader cache returns
Arc<Compiled>, butconsole_to_dxil_inclones the inner object for every caller, including a RAM hit.Compiledstores the whole DXIL and samplers as owned vectors, so they are copied. Chain pieces already share anArc. Runtime compute creation uses the whole bytes as slices for driver lookup/create, and creating a chain makes another owned copy of the whole bytes for fallback. Repeated creates can therefore allocate and copy a large whole shader even when all translation entries hit. Compiled and cache boundary · Runtime caller · Chain fallback ownershipCarry immutable shared DXIL into the ordinary compute builder and its chain fallback. Keep ownership of the bytecode through the native call or delayed build. An allocation or storage-identity test on repeated RAM hits can show what changed while preserving the emitted bytes, static samplers and chain. Windows allocation counts and loading-time impact remain unmeasured.
AI use was OpenAI Codex (GPT-6, exact serving variant unavailable) for static review and drafting.
@oni-swr on GitHub · 2026-11-26 02:09 UTC · original
Claiming #2609: preserve shared translated compute bytecode through ordinary pipeline creation and chain fallback, with synthetic storage-identity and ownership checks.
AI use: Claude Code (Claude Opus 5.5), coordinated by Codex (gpt-6.2-sol).