Reproducible indirect draw budget ordering failure on f85101b (WARP) #888
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#888
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@tatazildo on GitHub · 2026-11-25 11:54 UTC · original
Environment
f85101b6095e8cf3cecf8f0647cc7f5428daa177Sequential workspace results
Failing test
indirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fieldsLocation:
crates/victory-gpu/src/indirect.rs:1539:17Assertion:
the first two real draws fit the budgetReproduced in 7/7 executions:
All isolated repetitions exited with code 101.
Reproduction
Possible explanation
Comparing
31714deagainstf85101b, the new clamp implementation charges the budget once per 64-thread group, processing records within each group in lane order.The updated test contains 128 records and therefore spans two thread groups. It now explicitly requires records 1 and 2 to survive.
However, GroupMemoryBarrierWithGroupSync only synchronizes threads within a group. The atomic compare-and-exchange does not guarantee which group claims the shared budget first.
If the second group wins, records 64 and 65 could consume the budget instead.
The budget saturation and source-buffer preservation assertions pass before the ordering assertion fails.
The new single-group test
warp_a_group_charges_its_records_in_lane_orderalso passed in the workspace suite.The actual surviving record indices have not yet been logged, so the cross-group explanation remains a hypothesis.
Since the failing test uses WARP, this should not necessarily be treated as an NVIDIA-specific issue.
ChatGPT assisted with test procedures, diagnostic analysis and preparation of this report. All tests were performed on my own hardware.
@tatazildo on GitHub · 2026-11-25 12:38 UTC · original
Retested on
a253706. The same failure persists atcrates/victory-gpu/src/indirect.rs:1539:17, with the assertion "the first two real draws fit the budget".Full sequential release workspace results: 564 passed, 1 failed, 12 ignored. No additional failures were observed.
ChatGPT assisted with the testing procedure and report preparation.
@welisonzika14-jpg on GitHub · 2026-11-25 15:08 UTC · original
First NVIDIA data for this test (the earlier reports were all WARP).
indirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fieldscargo test -p victory-gpu --lib --locked <test name>, 3 runs each0b0074eindirect.rs:1539:17: the first two real draws fit the budgetb80bfd8)ae62e61, PR head684eb7a)When I ran the whole victory-gpu test binary on fx/main instead, this test failed in 12 of 30 and 54 of 100 runs, so it also depends on test order and timing.
Limits: unit tests only, no game files. One machine.
Written with AI help (Claude/Kiro); the numbers are from runs on my machine.
@tramalretard1 on GitHub · 2026-11-26 20:22 UTC · original · edited 2026-11-26 20:23 UTC
Hi! I'd like to help with your project. My PC has an RTX 5070 Ti 16 GB, an i9-14900KF and 32 GB DDR4-3600 RAM. What kind of help would be most useful right now?