Validate shaders loaded from prebuilt caches and pipeline journals #28518

Open
opened 2026-12-01 11:38:39 +00:00 by 1PoPTRoN · 0 comments
1PoPTRoN commented 2026-12-01 11:38:39 +00:00 (Migrated from github.com)
Contributor

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.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6719410572 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/28518). Originally posted by [1PoPTRoN](https://github.com/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.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#28518
No description provided.