GPU: retry texture staging with smaller blocks after out-of-memory #1472
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1472"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by yumaste on 2026-11-28T20:26:31Z.
Replaces #986, rebased onto
923e38cc. Port of Marvisak/VIctory#3259.The staging pool starts with 64 MiB blocks. If D3D12 returns
E_OUTOFMEMORY, retry with smaller blocks down to the request rounded to 64 KiB. Reuse a successful smaller size for 500 ms and account for its actual capacity when suballocating, reclaiming, and reporting memory. Block creation still runs outside the pool lock, and speculative growth keeps the existing budget check.Windows / WARP:
cargo test --locked -p victory-gpu --lib --features diagnostics pool::tests -- --test-threads=1passed 18 tests, with 2 benchmarks ignored. The tests cover allocation refusals, reuse of smaller blocks, recovery to the default size, and concurrent staging.