shader: reject base requests with a mismatched source cache key #2595
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!2595
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2595/head"
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?
@chasegrindy on GitHub · 2026-11-25 22:16 UTC · original
chasegrindy:fix/startup-shader-request-key→main· +127 −5 · 5 files · 2 commits · merged 2026-11-25 22:33 UTCA base shader request with the wrong filename key could still generate both shaders and a manifest. I reproduced that on
fb2f86ac53fb91b40fde6a78bd753961610752f1with a synthetic VS/PS pair:translate_requestreturnedokand wrote the outputs under the wrong key.Check the key against the stored
.a,.b,.rootand optional.iabytes before decoding. A mismatched request now writes only the.faildiagnostic. Correct requests produce the same bytes as before. The RTV diagnostic and refusal-only reporting stay unchanged. This does not invalidate entries already on disk.Tested locally on Windows 26300.9974 with MSVC 19.44.35229.0 and SDK 10.0.26100.0. The new regression failed before the fix and passed after. Seven Python CTests and six stream checks passed (including real FXC with RX 7900 XTX driver 32.0.32015.7029 and WARP 10.0.26100.9818). All 12 valid-output comparisons matched byte for byte. The patch also applied and its direct regression passed on
adc2fd95164cfe4361d93b79015babb9e464e3cf. The 13 CTest results above are fromfb2f86ac53fb91b40fde6a78bd753961610752f1.AI-assisted: GPT-6.1-sol, GPT-6.2-sol and Nemotron 3 Ultra. Tests ran locally on synthetic fixtures.