mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-17 07:09:57 -04:00
An RX 580 (8 GiB, AMD 23.10) shows its memory as a 6 GiB device-local heap and a 2 GiB device-local, host-visible one. Asked for device-local memory without a budget, VMA chose the first heap every time: a save load put 5.6 GiB there against a budget of 5.1 GiB while the second heap held 69 MiB, and the next submit failed with VK_ERROR_OUT_OF_DEVICE_MEMORY. create_tex now allocates with VMA_ALLOCATION_CREATE_WITHIN_BUDGET_BIT: device-local memory of any heap first, then any memory type the image allows, and only then past the budget as before. The log names images placed outside the first device-local heap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
316 KiB
316 KiB