GPU tests: verify indirect::bound clamping and budget on the GPU #1813
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1813
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1813/head"
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?
@n-romanovich on GitHub · 2026-11-24 22:56 UTC · original
n-romanovich:test/gpu-indirect-clamp→main· +214 −0 · 1 files · 1 commits · closed without mergingAdds GPU execution tests in
crates/victory-gpu/src/indirect.rsforindirect::boundandindirect::done, verifying alignment rejection,DRAW/DISPATCH/MESHargument clamping, 3D dispatch overflow zeroing, and deterministic per-listBUDGETexhaustion across sequentialbound()calls.AI-assisted; verified with
cargo test -p victory-gpu --locked(52 passed, 1 ignored) andcargo clippy -p victory-gpu --all-targets --lockedon Windows 11 / RTX 5060 Ti, plus independent subagent review.@DesertGamer on GitHub · 2026-11-24 22:57 UTC · original
VIctory V2: community PRs, merged and tested
Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch.
Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1).
⚠️ Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk.
Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help:
https://DesertGamer/VIctory-V2
Unofficial community fork of Marvisak/VIctory, GPL-3.0.
@Marvisak on GitHub · 2026-11-25 06:27 UTC · original
Automated triage for the maintainers.
Merge candidate. New host-GPU tests in
crates/victory-gpu/src/indirect.rsforboundand the argument-clamp shader.boundrefuses an unaligned address or stride. The clamp leaves normal draws and dispatches alone, clamps oversized counts, and zeroes a record once the list's shared budget (BUDGET, 2^27) is spent, as well as dispatches over the group limit. The expectations follow the clamp's own documented contract in the module header and the HLSL source. This is our own code's design rather than console behaviour, so testing against it is the right reference. The tests skip without a host GPU.CI:
checkpassing (CI has no GPU, so these tests return early there).Generated by Claude Code
@Marvisak on GitHub · 2026-11-25 22:03 UTC · original
Automated triage for the maintainers, second look (a review against current
main, with builds and tests where they could change the verdict).Closing because the tests target the clamp as it was before
315cea18.boundnow takes three arguments, returns the list's own argument buffer and never writes the title's copy, so merged ontomainthe test build fails with six errors.mainalready covers the budget's order, rejected records, a spent budget and the per-dimension dispatch clamp. The cases that are new here (alignment rejection, draws keeping their other words, the group overflow, mesh y/z clamped to 1) would be welcome rewritten for the new API.If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution.
Pull request closed