GPU: bound conventional table CBV scratch fills and validate host ranges #1403
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!1403
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1403"
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?
@spk-c on GitHub · 2026-11-26 23:29 UTC · original
spk-c:submit/cbv-scratch-bounds→main· +1453 −1419 · 13 files · 4 commits · openAI-assisted, independent adaptation of spk-c/victory-fork#30 onto
4c604661(no UMA dependency).The host already caps a conventional CBV descriptor at 64 KiB, but the table fallback can still reserve and fill the entire title-declared size. Bound the scratch payload to the host-visible limit, initialize alignment padding, use a typed null CBV for invalid ranges or failed scratch allocation, and reject persistent descriptors whose rounded range exceeds the retained host buffer.
Adds a CPU range regression covering unaligned, oversized, null and overflowing inputs. The original fork patch passed explicit RTX 4090 bounds/replay tests; those results are not validation of this adapted upstream commit. git diff --check passed; compile, CI and hardware retest are pending. Draft until the upstream-based checks pass.
CI baseline repair
The upstream 512 KiB asset-policy failure on main (#1342) is addressed in this branch by including the existing maintainer patch #1357 (original commit
450ed9bd, attribution preserved). No policy limit or security check was changed. The identical combined commit7c63f2d5passed the full Windows CI in our fork, including Clippy in both configurations, workspace/asset-policy tests and serial GPU tests: https://github.com/spk-c/victory-fork/actions/runs/45912157568. The direct upstream check is being rerun on this head. The #1357 changes are a shared dependency, not part of this feature; they will disappear from the diff when that commit is merged upstream normally. Hardware/gameplay retesting is not implied by this CI result.@UwUCammie on GitHub · 2026-11-26 23:48 UTC · original
I adapted this to the AMD branch in #32, keeping its held upload buffer, raw twin, and card-steps slot association. Two Windows MSVC tests passed under Wine 11.22. The bounds test exercised descriptor creation on the RX 7900 XT with RADV 26.3.1 and the device stayed alive after the oversized and invalid cases. The staging-size fixture ran separately.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.