GPU: saturate the texture byte accounting against a wild reported size #3933
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3933"
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 Marvisak/VIctory. Originally posted by kotekompotek on 2026-12-01T10:30:14Z.
Summary
GetResourceAllocationInfocan price a description unreasonably high; every sum over those bytes then risks wrapping in debug builds. Clamp the reported size at 1 TiB (and warn once with the dimensions).Observed as two debug runs aborting inside
Meter::frame/presenton overflow panics; the title still ran with the accounting floored.Test plan
cargo test -p victory-gpu resource— 20 tests greenAI-assisted. Tested on GTX 1050 2GB, Windows 11.
Imported from Marvisak/VIctory. Originally posted by passerbyyhx on 2026-12-01T12:32:48Z.
On Windows at
cc71d20d, the diagnostics build hits E0689 on the census accumulator. A controlled driver-quote harness for the PR's arithmetic confirmed the 1 TiB boundary and saturating sums in debug and release. Two oversized quotes emitted two warnings. The candidate explicitly types the accumulator and gates the diagnostic once, then passes all 18 native resource tests. Author-branch fix: https://github.com/kotekompotek/VIctory/pull/2.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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.