diff options
author | Zephyron <zephyron@citron-emu.orgq> | 2025-02-22 19:08:42 +1000 |
---|---|---|
committer | Zephyron <zephyron@citron-emu.orgq> | 2025-02-22 19:08:42 +1000 |
commit | d9619b7eed13adc4bac329bf4b46ee254fe7a5a6 (patch) | |
tree | 4c78c4a9f0eea18b4b81fae09f8272da60722fdd /src/shader_recompiler/frontend | |
parent | dbe5bf1d18e28b4bb1bceb5d9e3270a48a1c35cd (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/shader_recompiler/frontend')
0 files changed, 0 insertions, 0 deletions