Validate shaders loaded from prebuilt caches and pipeline journals #28518
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?
Imported from boykopovar/AnyPS5. Originally posted by 1PoPTRoN on 2026-12-01T11:38:39Z.
What happens
The shader cache checks the format and checksum of persisted records. The default build can still accept an invalid enum or an invalid SPIR-V module from a prebuilt entry or journal. A bad cache record should be discarded so the title can rebuild what it needs.
Title, test or build step
Shader disk-cache and journal codec tests. These use synthetic fixtures and require no title files.
AnyPS5 commit
The original decoder was checked at
bef2f1f77d46b84bdc579078bd856bbdc1cfe7c1.System
Ubuntu 26.04 x86-64, GCC 15.2, Mesa lavapipe 26.0.8, and Khronos validation layer 1.4.341.
What was checked
A regression test confirmed that the original cache decoder accepted an unknown shader stage. The local fix rejected that entry. The original build passed the four shared cache and journal tests. The fix passed those four and the new journal recipe codec test. The validation layer loaded in both Vulkan runs, and neither reported a
VUID-error.Module validation and publisher authentication are separate. This issue tracks rejecting invalid cache data before replay.