Repository navigation
tooling: resume startup shader compilation after manifest-only runs - #2008
Conversation
Ran it, broke the publish state machine five ways — all caughtWindows 11 build 26300.9974, device-free: out/pe-env/Scripts/python.exe -B tests/startup_translator_check.py # exit 0
out/pe-env/Scripts/python.exe -B tests/startup_gfx2hlsl_capture_check.py # exit 0
out/pe-env/Scripts/python.exe -B tests/startup_gfx2hlsl_refusals_check.py # exit 0
The fourth is the one I expected to slip, because emptying the loop still leaves a valid manifest and a successful return — and it is caught. That The ordering is the part worth defendingThree separate claims are encoded in the new shape, and each failed on its own above:
That is one invariant — "a manifest on disk always describes bytecode on disk" — split across three call sites, and it would be reasonable to say so A note on
|
Cold -Render runs stay black when pipelines write req_* requests but never get manifests (pipelines translated 0 / missing N). Add gfx2hlsl.py --watch and run.ps1 -Translate so translations publish while the title runs; keep R0Y00#2008 bytecode resume and -TraceCalls. Rebases reviewed R0Y00#1749 onto current main. Refs R0Y00#870. Co-authored-by: SimSalabimse <SimSalabimse@users.noreply.github.com>
Change
An explicit manifest-only pass (
X2W_FXC=) produces a manifest and HLSL without compiled shader stages. A later--pendingrun with FXC enabled now compiles requests missing either nonempty stage, while a manifest-only pass can still skip an existing manifest.The translator stages both FXC outputs before publishing either. When the manifest bindings change, it withdraws the old manifest before publishing bytecode and writes the new manifest last. A successful compile clears an earlier
.failreport. Restart an already-running runtime if it previously read the manifest before bytecode was available.This covers the one-shot path on
main. The pending-candidate selection in #1749 touches the same completion rule and will need the compiled-mode check if the changes are combined.Verification
python3 -B tests/startup_translator_check.pyreproduced the skip on the base and passed with the patch. It covers manifest-only skips, unsuccessful pixel compilation, retry, complete-cache skips, an empty bytecode file, and an interrupted manifest publication.Native Windows FXC and D3D12 execution were outside this run.