Avoid rounding oversized GPU uploads past the pool limit #3078

Open
EternalAtake1 wants to merge 1 commit from upstream-pr/3078 into main
EternalAtake1 commented 2026-11-29 19:54:03 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by EternalAtake1 on 2026-11-29T19:54:03Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5554495432 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3078). Originally posted by [EternalAtake1](https://github.com/EternalAtake1) on 2026-11-29T19:54:03Z. --- 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.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3078:upstream-pr/3078'
git switch 'upstream-pr/3078'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3078'
git switch 'upstream-pr/3078'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3078'
git switch 'upstream-pr/3078'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3078'
git switch 'main'
git merge --squash 'upstream-pr/3078'
git switch 'main'
git merge --ff-only 'upstream-pr/3078'
git switch 'main'
git merge 'upstream-pr/3078'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

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