GPU tests: verify indirect::bound clamping and budget on the GPU #1813

Closed
github-bot wants to merge 1 commit from gh-pr/1813/head into gh-pr/1813/base
Owner

@⁠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 merging

Adds GPU execution tests in crates/victory-gpu/src/indirect.rs for indirect::bound and indirect::done, verifying alignment rejection, DRAW/DISPATCH/MESH argument clamping, 3D dispatch overflow zeroing, and deterministic per-list BUDGET exhaustion across sequential bound() calls.

AI-assisted; verified with cargo test -p victory-gpu --locked (52 passed, 1 ignored) and cargo clippy -p victory-gpu --all-targets --locked on Windows 11 / RTX 5060 Ti, plus independent subagent review.

**@⁠n-romanovich** on GitHub · 2026-11-24 22:56 UTC · [original](https://github.com/Marvisak/VIctory/pull/1813) `n-romanovich:test/gpu-indirect-clamp` → `main` · +214 −0 · 1 files · 1 commits · closed without merging Adds GPU execution tests in `crates/victory-gpu/src/indirect.rs` for `indirect::bound` and `indirect::done`, verifying alignment rejection, `DRAW`/`DISPATCH`/`MESH` argument clamping, 3D dispatch overflow zeroing, and deterministic per-list `BUDGET` exhaustion across sequential `bound()` calls. AI-assisted; verified with `cargo test -p victory-gpu --locked` (52 passed, 1 ignored) and `cargo clippy -p victory-gpu --all-targets --locked` on Windows 11 / RTX 5060 Ti, plus independent subagent review.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:45:27 +00:00
github-bot closed this pull request 2026-11-26 04:45:27 +00:00
Author
Owner

@⁠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.

**@⁠DesertGamer** on GitHub · 2026-11-24 22:57 UTC · [original](https://github.com/Marvisak/VIctory/pull/1813#issuecomment-7146841252) ### 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). :warning: 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.*
Author
Owner

@⁠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.rs for bound and the argument-clamp shader. bound refuses 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: check passing (CI has no GPU, so these tests return early there).


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 06:27 UTC · [original](https://github.com/Marvisak/VIctory/pull/1813#issuecomment-7154813313) <!-- victory-triage v1 head=29c142781f7433a0bf316a1a3ea828d8e1b5dccf verdict=merge-candidate at=2026-11-25T07:05:30Z --> Automated triage for the maintainers. **Merge candidate.** New host-GPU tests in `crates/victory-gpu/src/indirect.rs` for `bound` and the argument-clamp shader. `bound` refuses 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: `check` passing (CI has no GPU, so these tests return early there). --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠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. bound now takes three arguments, returns the list's own argument buffer and never writes the title's copy, so merged onto main the test build fails with six errors. main already 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.

**@⁠Marvisak** on GitHub · 2026-11-25 22:03 UTC · [original](https://github.com/Marvisak/VIctory/pull/1813#issuecomment-7175871167) 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. `bound` now takes three arguments, returns the list's own argument buffer and never writes the title's copy, so merged onto `main` the test build fails with six errors. `main` already 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

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!1813
No description provided.