Avoid unused VRAM slack for oversized COPY-queue transfers #1414
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1414"
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 NotADonky43 on 2026-11-28T19:23:29Z.
The optional COPY queue accepts up to 512 MiB per transfer, but retains at most 256 MiB of free slots. Above that free-pool limit, power-of-two rounding buys no reuse. Allocate exactly the requested width for these transfers and release the unretainable slot outside the queue mutex after DIRECT completion. No changes to gate thresholds, fence ordering or reusable size classes. This is independent of #1391 (this changes the GPU destination on COPY, not the CPU upload source).
On an RTX 5070 Ti with D3D12 diagnostics enabled, the isolated 257 MiB transfer regression on main
32ecacfafailed on actual resource width: 536870912 vs 269484032 bytes. The patched run passed, including fenced readback at both ends and checking the oversized slot was not retained. Four regular copy-queue tests and the release build also passed. 255 MiB less requested VRAM capacity for this transfer, not measured DXGI residency, a game-wide reduction or an FPS claim. No game assets required.