startup: re-key slot 57 mesh requests in shader_cache_rekey.py (Part of #2413) #2626
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2634"
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 Leyukaka on 2026-11-25T23:50:29Z.
Part of #2413 (claim).
tools/startup/shader_cache_rekey.py(from #2401) re-keyed graphics, RTV variant and slot 67 compute requests, and only counted slot 57 mesh requests.mesh57_keyhashes the request files under a versioned prefix (x2w-startup-mesh-57-2), so after a revision that changes that prefix a kept cache lost every slot 57 request:--pendingrefuses a file under its old name withslot 57 mesh request key mismatch.This re-keys them:
.ps57,.rootand the.m57ready marker;.ps57is empty without a pixel stage. The new key ismesh57_key(m57, ps57, root).m57:line.mesh86_cache.py, their own key and a.stream86part) are still only counted.docs/startup-runtime.mddescribes the slot 57 parts.#2592 also edits this tool, for the pixel input masks in the graphics key. Whichever lands second will need a small textual rebase in the docstring,
PARTSandcurrent_key.Tests (Windows 11, Python 3.14), on main
66026a3plus this commit:python -B tests/startup_shader_cache_rekey_check.py: all checks passed.gfx2hlsl.pending_keyslists them..rootor.ps57exits with 1 and writes nothing.python -B tests/startup_shader_cache_rekey_cli_check.py: ok (its summary assertion now readsnot re-keyed (own key strings): m86 1).docs_links_check,bidi_controls_check,startup_translator_check.mesh57_keyfails the check (the old name is written instead of the current one).Measured on a local cache (counts only, inputs private) kept from an earlier revision: the tool wrote 497 slot 57 requests under current names, next to 2,689 compute requests and 95 RTV variants.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T23:56:45Z.
Review: COMMENTED
Review of head
bba44089against main (comment only, no code changes).What I checked:
mesh57_key(ms, ps, root)ingfx2hlsl.py:7733takes (m57, ps57, root).current_keypasses the same order. Good.PARTS['m57']has the ready marker last, so the existing write order rule holds..ps57stays a required part, an empty file is fine.Commands run locally on the exact head:
python3 -B tests/startup_shader_cache_rekey_check.py: all checks passedpython3 -B tests/startup_shader_cache_rekey_cli_check.py: OKpython3 tests/docs_links_check.py: 506 links okpython3 tests/bidi_controls_check.py: no controlsgit diff --check origin/main...HEAD: cleanmesh57_key(...)call -> the rekey test fails (6 failed)..ps57fromPARTS['m57']-> the rekey test crashes.No blocking findings. Note: #2592 touches the same file, a small rebase is expected for whichever lands second.
AI-assisted; commands listed were executed locally.