gpu: recover a missing shader on later draws after cache publication #1416
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!1416
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1416/head"
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?
@R0Y00 on GitHub · 2026-11-24 11:01 UTC · original
R0Y00:codex/startup-reload-published-shader→main· +42 −6 · 5 files · 1 commits · merged 2026-11-24 11:16 UTCRefs #1150.
A missing shader manifest used to remain missing for the lifetime of the process, even after the offline translator finished writing the requested result. A later draw now retries an absent manifest at most once per second for that pipeline. It uses the existing publication order (both shader blobs first, then the manifest). A published manifest that fails parsing or loading remains rejected. The initial request is written once, including when a render-target format needs its own variant.
The source-built checks render with an existing guest PSO before and after publishing the manifest in the same process. Before publication the complete readback matches the clear. After publication the ordinary 32-pixel target matches the warm-cache draw. Unsigned and signed integer MRT variants are checked independently, including the second target, under FXC and DXC.
Windows 11 build 26200.9974, Release, RTX 4060 Laptop driver 32.0.16.1656 and WARP driver 10.0.26100.9818. The MRT fixtures enable the debug layer. The ordinary stream draw uses its default setting. No private inputs are needed.
Result at
4957e609: all six CTests passed, with zero skips. The same WARP consumer linked at runtime to the unmodified base DLL failed the new check because its second readback still contained only the clear. The documentation checker passed for 315 links.@tedin7 on GitHub · 2026-11-24 11:14 UTC · original · reviewed
Reviewed and verified at
4957e609abedf1dc26dbdc268180e030d991cc4e:git diff --check origin/main...HEADis clean.translation_for_targetsruns underAcquireSRWLockExclusive(&draw_lock), protectingretry_manifest_at,state, andload_translationupdates. Only an absent manifest schedulesretry_manifest_at = GetTickCount64() + 1000; once read,retry_manifest_atis cleared to0so a malformed manifest or failed CSO/root-sig load remains rejected (state = 2).translation_missingis incremented once per missing pipeline and decremented on recovery, and request files are written once. Bothstartup_stream_draw_check.pyandstartup_mrt_check.pyverify the pre-publication clear readback before manifest publication and recovery.docs_links_check.py(16 Markdown files, 315 links),bidi_controls_check.py(1176 tracked files), andpython3 -m py_compileontests/startup_mrt_check.pyandtests/startup_stream_draw_check.pypassed.--preset dev):startup_stream_consumer d3d12_xs_shimbuilt in24.54s;ctest --preset dev -R '^startup_(stream_draw|mrt_(fxc|dxc))_warp$'3/3 passed (4.82s)./O2(--preset release): built in36.12s;ctest --preset release -R '^startup_(stream_draw|mrt_(fxc|dxc))_warp$'3/3 passed (4.90s).