compute: name why a compiled program gets no runtime manifest #3270
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#3270
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?
@Not-Saii on GitHub · 2026-11-28 03:04 UTC · original
Refs #3226
Behavior
format_compute_runtime_manifest(src/direct_compute_cache.cpp) returnedstd::nulloptfrom 11 places without saying why. A compute program that compiles to DXIL but gets no manifest can't be dispatched translated, and incompile_dxil --requestsit left no trace. In the 878-request census of #3226, 84 shaders fall in this bucket.std::string *reasonparameter. Exits that tested two or three conditions are split, for example a resource heap view, the sampler heap, and a view above root parameter 15. When a view kind has no manifest line, the reason names the kind, and for images the ISA dimension andarray, for exampleSRV kind root_buffer_srvorUAV kind texture_uav cube. The reasons hold no register numbers, offsets or keys.native_compute_output_revisionis unchanged.compile_dxiluses one line for all routes,unsupported startup runtime manifest bindings: <reason>, which keeps the start of the existing--watchtext:--requestsstill publishes<key>.cs.cso, writes no<key>.txt, counts the request as compiled and removes<key>.fail. The exit status and therequests= compiled= refused=line are unchanged. It prints the reason in that job's report asno_manifest input=req_<key>.c67 <line>. It writes no.fail, because.failis the retry marker of both watchers.--watchwrites the reason where it used to write the bare line.--refusalscounts such a request under its reason. Before, it counted it as no refusal.triage_run.pyreports these lines asruntime manifest: <reason>, matched against an allowlist. Any other text is still reported as "other (text omitted)".format_graphics_runtime_manifestis not changed.Tests
native_compute_manifest_reasons(C++) calls the formatter on 18 source-written programs, one or more per reason, and checks the exact reason. It also checks that the accepted program's manifest text is unchanged.native_compute_manifest_reasons_requestsruns one reachable case end to end. The program reads a root CBV and a root SRV (the program ofnative_compute_raw_root), so it compiles but has no manifest line.--requestsruns in a live cache that also holds a genuinely refused request (an undecodable word) and a table-bound control. The control publishes its manifest. The compiled key gets its.cs.cso, no.txt, and no.fail(a stale one is removed); its reason is on stdout. The refused key keeps its.fail.pending_keys(dir, False)selects the compiled key and the refused key;pending_keys(dir, True)still selects the compiled key and skips the refused one.--watch --oncerefuses the compiled key with the reason in its.fail, a genuine watcher failure:pending_keys(dir, True)skips it andpending_keys(dir, False)selects it.--refusals --jsonandtriage_run.py.tests/startup_triage_run_check.pygets a sample line for the new category and a leak control: a disallowed reason text maps to "other".docs/experiments/native-compile-dxil-refusals.mdis updated.Verification
Commits
3ea1a79f+50740b7conmainc827d8ba. Windows 11 build 26300, MSVC x64, Windows SDK 10.0.26100. No GPU is involved.Negative control: with the formatter no longer recording reasons (one line changed),
native_compute_manifest_reasonsreports18 of 19 manifest reasons wrong. All 18 reason cases fail and only the accepted-program case passes.native_compute_manifest_reasons_requestsfails on the missing reason. With--requestswriting the reason to.failagain (the first revision of this PR), it fails atpending_keys(dir, True), which returns[]: the behavior from the review. With the change restored, both pass.Not in this PR
default: return std::nullopt;that would need a reason after rebase. The test uses a cube UAV, which stays refused under that hunk.AI-assisted.
🤖 Generated with Claude Code
Pull request details or commits were not available from GitHub; kept as an issue.
@Not-Saii on GitHub · 2026-11-28 03:30 UTC · original
Thanks, you're right: a program that compiles without a manifest isn't a failed request, and
.failis the retry marker. Fixed in50740b7c:--requestsno longer writes.failfor these programs. It removes.failas before and prints the reason in the job report asno_manifest input=req_<key>.c67 unsupported startup runtime manifest bindings: <reason>.--watch(which refuses the key) and--refusalsare as before.native_compute_manifest_reasons_requestsnow runs--requestsin a live cache beside a genuine refusal.pending_keys(dir, False)selects both keys.pending_keys(dir, True)still selects the compiled key and skips the refused one. A--watchrefusal of the same key is skipped withTrueand selected withFalse.--requestswriting the.failagain, the check fails atpending_keys(dir, True) == [], which is your reproduction.Retested on Windows 11 build 26300, Debug, Windows SDK 10.0.26100:
native_compute_manifest_reasons,native_compute_manifest_reasons_requests,native_compile_dxil_refusals,native_compile_dxil_watchandnative_startup_request_cache_controlsall pass. The PR body is updated to match.AI-assisted.