diff options
| author | Gabriele <gabrieledilauro99@gmail.com> | 2026-11-25 05:40:47 +0100 |
|---|---|---|
| committer | ImLele69 <gabrieledilauro99@gmail.com> | 2026-11-25 08:57:49 +0100 |
| commit | 798077b7cbf71bc2869301c394f3d467d1360e52 (patch) | |
| tree | a70bb0b7c7d11bdbcf9a2db9adc6080069e8cce2 /runtime/test/tiny_game_exit_code_test.cpp | |
| parent | 3f81d46ac01021bd7517f0cce153f4283bc8dd17 (diff) | |
d3d12_vulkan: leave the BAR window to host-visible VRAM allocations and stop retrying it when full
Without Resizable BAR the DEVICE_LOCAL | HOST_VISIBLE type sits in a heap of about 256 MiB.
memory_type_order put it second for every texture and default-heap buffer that prefers VRAM,
so once VRAM filled up each such allocation failed there too, and the NVIDIA driver's
VK_ERROR_OUT_OF_HOST_MEMORY answer was retried six times with sleeps under memory_mutex
before falling back to system memory. Only allocations that ask for both DEVICE_LOCAL and
HOST_VISIBLE now try the window in its place; the others try it last, and an
out-of-host-memory answer from the window is believed the first time. Failures past the
first 16 are counted at powers of two.
Diffstat (limited to 'runtime/test/tiny_game_exit_code_test.cpp')
0 files changed, 0 insertions, 0 deletions