Reproducible indirect draw budget ordering failure on f85101b (WARP) #887
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?
Imported from fxceless/victory-fork. Originally posted by tatazildo on 2026-11-25T11:54:07Z.
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.
Imported from fxceless/victory-fork. Originally posted by tatazildo on 2026-11-25T12:38:11Z.
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.
Imported from fxceless/victory-fork. Originally posted by welisonzika14-jpg on 2026-11-25T15:08:06Z.
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.
Imported from fxceless/victory-fork. Originally posted by tramalretard1 on 2026-11-26T20:22:25Z.
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?