Read warm shader cache entries without a metadata probe #1489

Merged
FIocker merged 2 commits from upstream-pr/1489 into main 2026-11-29 08:16:56 +00:00
FIocker commented 2026-11-28 20:45:06 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by FIocker on 2026-11-28T20:45:06Z.


Reads and decodes a cached shader directly. On a miss, returns the freshly translated shader without rereading the file, including when cache publication fails. Keeps the cache key and format, and preserves the upstream handling of entries published by another process during a write.

Validation on Windows: 8 pipeline-cache tests and 5 shader-cache tests passed on the updated tree. These cover cache reuse, damaged entries, failed publication, and a concurrent publisher holding the cache entry open.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5544407521 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1489). Originally posted by [FIocker](https://github.com/FIocker) on 2026-11-28T20:45:06Z. --- Reads and decodes a cached shader directly. On a miss, returns the freshly translated shader without rereading the file, including when cache publication fails. Keeps the cache key and format, and preserves the upstream handling of entries published by another process during a write. Validation on Windows: 8 pipeline-cache tests and 5 shader-cache tests passed on the updated tree. These cover cache reuse, damaged entries, failed publication, and a concurrent publisher holding the cache entry open.
Sign in to join this conversation.
No reviewers
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
trustno1-coder/VIctory-NVIDIA!1489
No description provided.