Skip to content

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

Closed
n-romanovich wants to merge 1 commit into
Marvisak:mainfrom
n-romanovich:test/gpu-indirect-clamp
Closed

n-romanovich wants to merge 1 commit into
Marvisak:mainfrom
n-romanovich:test/gpu-indirect-clamp

Conversation

@n-romanovich

Copy link
Copy Markdown

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.

@DesertGamer

Copy link
Copy Markdown

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.

@catminou4 catminou4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; source review of the diff.

GPU tests: indirect::bound clamping and budget verified on device: test-only addition (8.5K), good — exactly the kind of device-side coverage the indirect-buffer work (#1817) needs.

@Melow-code Melow-code left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indirect clamping and budget tests are solid. The early-return on no GPU host is the standard pattern in this module.

@n-romanovich
n-romanovich force-pushed the test/gpu-indirect-clamp branch from 6511c85 to 4432c58 Compare November 25, 2026 01:35
@n-romanovich
n-romanovich force-pushed the test/gpu-indirect-clamp branch from 4432c58 to 29c1427 Compare November 25, 2026 01:47
github-actions Bot added a commit to KevinPratap/VIctory that referenced this pull request Nov 25, 2026

Copy link
Copy Markdown
Owner

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

Copy link
Copy Markdown
Owner

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 315cea1. 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 Marvisak closed this Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants