gpu: recover a missing shader on later draws after cache publication #1409
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1416"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T11:01:49Z.
Refs #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.Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T11:14:25Z.
Review: COMMENTED
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).