diff options
| author | givethesourceplox <272928635+givethesourceplox@users.noreply.github.com> | 2026-10-30 09:45:53 -0300 |
|---|---|---|
| committer | kraibse <33869366+kraibse@users.noreply.github.com> | 2026-10-30 17:48:04 +0100 |
| commit | ea33ad1865970ee731e5f74dbcc26ca472798afe (patch) | |
| tree | f73345d1d273bcbab8dfbd708a459b8ba6afee0b /src/common/memory_detect.cpp | |
| parent | 6f5e137ec4eb83bbff9ea15f1ad1a8407cfc0cba (diff) | |
vulkan: write the driver pipeline cache atomically; reject truncated ones
The emulator stopped while saving vulkan_pipelines.bin left it empty, and
every later boot terminated: the header read throws ios_base::failure,
and macOS's libc++ throws one the handler's type doesn't match. Write the
cache to a temporary file and rename it over the old one, and treat a
file shorter than its header as invalid without reading it.
Assisted-by: Claude (Anthropic)
Diffstat (limited to 'src/common/memory_detect.cpp')
0 files changed, 0 insertions, 0 deletions
