tooling: replay revision 28 compute request archives #3733
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!3733
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3731"
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?
@lambirou on GitHub · 2026-12-01 12:39 UTC · original
lambirou:codex/compute-rev28-replay→main· +52 −13 · 2 files · 1 commits · merged 2026-12-02 02:13 UTCThe offline compute translator refuses revision-28 archives with
compute request files do not match the key in their name, whileread_compute_requeststill accepts the revision-28 hash after the currentone. A census of the 1 December cache found that all 600 compute key-mismatch
lines are valid revision-28 requests, so the refusal hides replayable
archives.
compute_keynow takes an explicitrevision(the current revision bydefault), and
load_compute_requesttriesx2w-startup-shader-29csandx2w-startup-shader-28csbefore refusing, matching the runtime reader. Thegraphics path and all other revisions are unchanged. The regression builds a
source-built revision-28 request, translates it in manifest-only mode, and
checks that an altered revision-28 request is still refused with the same
reason.
Validation:
python -B tests/startup_compute_translate_check.py(pass)python -B tests/startup_shader_cache_revision_check.py(pass)python -B tests/startup_shader_cache_rekey_check.py(pass)python -B tests/startup_shader_cache_rekey_cli_check.py(4 tests, pass)python -B tests/startup_compute_request_offline_check.py(pass)python -B tests/startup_tools_lint_check.py tools/startup(pass)Refs #2182
@Leyukaka on GitHub · 2026-12-01 21:57 UTC · original · reviewed
Reviewed
d0e8f9285by reading the diff. The fallback intools/startup/gfx2hlsl.py:13210matches the C++ request reader. The synthetic fixture attests/startup_compute_translate_check.py:65checks that revision 28 produces HLSL and a compute manifest, and that changing a companion's bytes without changing its size is still refused. I found nothing to change. I have not run the tests myself, so this relies on the required checks.One possible follow-up, not for this PR:
tools/startup/shader_cache_revision.py:91could distinguish a live cache revision mismatch from replay support. A cache stamped with compute revision 28 still produces the blanket key-mismatch warning even though the translator can replay its compute requests.