Avoid rounding oversized GPU uploads past the pool limit #3078

Closed
github-bot wants to merge 1 commit from github-bot/gh-3078 into main AGit
Owner

@⁠EternalAtake1 on GitHub · 2026-11-29 19:54 UTC · original
EternalAtake1:fix/right-size-oversized-uploads → main · +53 −9 · 2 files · 1 commits · closed without merging

Recording-list uploads and submission snapshots now use power-of-two sizes only when the pool can reuse the buffer. For example, with a 768 MiB pool limit, a 513 MiB request now allocates 513 MiB instead of 1 GiB. This reduces peak memory demand for large uploads.

Includes tests for pool boundaries, integer overflow, and actual D3D12 buffer widths. Related to #1383.

**@⁠EternalAtake1** on GitHub · 2026-11-29 19:54 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3078) `EternalAtake1:fix/right-size-oversized-uploads` → `main` · +53 −9 · 2 files · 1 commits · closed without merging Recording-list uploads and submission snapshots now use power-of-two sizes only when the pool can reuse the buffer. For example, with a 768 MiB pool limit, a 513 MiB request now allocates 513 MiB instead of 1 GiB. This reduces peak memory demand for large uploads. Includes tests for pool boundaries, integer overflow, and actual D3D12 buffer widths. Related to #1383.
Round recording-list uploads and submission snapshots only when the pool can retain the resulting size class. Keep the existing heap choice and lifetime for dedicated uploads.

Cover non-power-of-two pool limits and overflow, and check the actual D3D12 resource widths on an adapter.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 19:59:54 +00:00
github-bot closed this pull request 2026-12-01 18:59:11 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!3078
No description provided.