GPU tests: two indirect tests follow VICTORY_INDIRECT_REST's default (they fail on main) #578
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/trustno1-coder--VIctory-NVIDIA!578
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-578"
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?
@kibagami-nc on GitHub · 2026-11-28 01:12 UTC · original
kibagami-nc:fix/indirect-tests-follow-rest-default→main· +21 −3 · 1 files · 1 commits · openThe problem
cargo test -p victory-gpu --lockedfails onmain(a4d05e7), on every run:545f890turnedVICTORY_INDIRECT_RESToff by default. Before,rest()was on unless set to0; now it is off unless set to1. Its doc says why: "off by default so one oversized record takes nothing and later valid draws still run". The two tests still asserted the old default. The code is as intended; only the tests are out of date.host_list_budget_starts_empty_at_each_submission. Three records of 65,535 × 16 groups of 64 threads cost 67,107,840 each. Two leave 2,048 of the 2^27 budget. The small record after them (64) fits in that, unless the third took the rest, which it no longer does by default.warp_batch_charges_every_execution. The last case (one record read by three executions, 3 × 2^26) asks for more than the budget. By default it takes nothing, and the test expected all of it.The change
Tests only, in
crates/victory-gpu/src/indirect.rs:rest(), which the pass is made with.Tests
VICTORY_INDIRECT_REST=1, on an RTX 5070 Ti, with WARP for the second.cargo test -p victory-gpu --locked: 443 passed, 0 failed, 36 ignored. Before: 2 failed.cargo clippy -p victory-gpu --all-targets -- -D warningsstops on the dead-code lintsmainhas, among themdepth_writtenin this file (see #425, #265 and #86). This change adds none.With #572 (a test of
victory-loaderthat failed about one run in seven on Intel CPUs), these are the only test failures I found incargo test --workspace --lockedonmainon this PC.No game files, dumps or extracted data are included.
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.