diff options
| author | Zephyron <zephyron@citron-emu.orgq> | 2025-02-22 19:08:42 +1000 |
|---|---|---|
| committer | Mike Lothian <mike@fireburn.co.uk> | 2025-05-12 12:46:19 +0100 |
| commit | a32de97c9166b65225a21ee547a0c51399398860 (patch) | |
| tree | 5a27158cf61fb045c7ce41779f44198d851881fd /src/video_core/buffer_cache/buffer_cache.cpp | |
| parent | d296c3b221cfa60e84dd0d3b570b937fd6ed0d0c (diff) | |
vulkan: Improve memory allocation robustness
Enhances the Vulkan memory allocator with better OOM handling and memory
alignment:
* Add memory recovery by cleaning up empty allocations before failing
* Implement proper fallback to non-device-local memory
* Simplify memory alignment handling for different vendors
* Add better error logging for allocation failures
* Add IsEmpty() helper to track unused allocations
* Fix alignment requirements for Adreno (4KB) vs other vendors
These changes improve the robustness of memory allocation, particularly
in low-memory situations, and streamline vendor-specific alignment
requirements.
Diffstat (limited to 'src/video_core/buffer_cache/buffer_cache.cpp')
0 files changed, 0 insertions, 0 deletions
