GPU: limit staged constant-buffer uploads to 64 KiB #104
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!104
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-104"
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?
@avt0m4t48 on GitHub · 2026-11-24 21:30 UTC · original
avt0m4t48:fix/limit-cbv-staging→main· +23 −0 · 2 files · 2 commits · openRefs #72 and #24. A staged constant-buffer view uses at most 64 KiB on desktop D3D12. Limit the scratch allocation and deferred copy to those source bytes, before the existing 256-byte alignment. This also avoids copying the unused tail for the 2,785,536-byte descriptor in #72. The staged copy for that size is 2,720,000 bytes smaller. Measured frame time and title results remain open.
The size regression covers small and unaligned requests, the 64 KiB boundary, the reported size, and
u32::MAX. An isolated Linux run of the exact Rust regression passed and reproduced a boundary failure without the cap. Windows-target Clippy from Linux with diagnostics and the pure Rustblake3feature passed with warnings denied. Asset policy passed. The fork's unrelated non-Windows GPU crate compile errors block running that crate's full suite locally.Separately, a native WARP debug-layer probe reproduced the invalid 2,785,536-byte view and accepted a 64 KiB view of the same allocation. WARP confirmation
AI-assisted using Codex. Source-built inputs only.
@avt0m4t48 on GitHub · 2026-11-25 12:54 UTC · original
Updated this branch through main
0b0074eand reran the staged-prefix regression on Windows Server 2025. It passed atee443cd, including the 64 KiB boundary and oversized input cases. The MSVC-target Rust check and asset policy passed. The change covers staging allocation and copying, alongside the direct descriptor work in #911. Windows runAI-assisted.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.