Reproducible indirect draw budget ordering failure on f85101b (WARP) #888

Open
opened 2026-11-26 03:53:13 +00:00 by github-bot · 3 comments
Owner

@⁠tatazildo on GitHub · 2026-11-25 11:54 UTC · original

Environment

  • Commit: f85101b6095e8cf3cecf8f0647cc7f5428daa177
  • Windows 11 Pro
  • Intel Core i9-13900K
  • NVIDIA RTX 3080 Ti (12 GB)
  • 64 GB RAM
  • NVIDIA driver: 621.24

Sequential workspace results

  • 554 passed
  • 1 failed
  • 11 ignored

Failing test

indirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields

Location: crates/victory-gpu/src/indirect.rs:1539:17

Assertion: the first two real draws fit the budget

Reproduced in 7/7 executions:

  • Initial sequential workspace run
  • One isolated retest
  • Five additional isolated repetitions

All isolated repetitions exited with code 101.

Reproduction

cargo test --locked --release -p victory-gpu --lib indirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields -- --exact --test-threads=1 --nocapture

Possible explanation

Comparing 31714de against f85101b, 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_order also 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 11:54 UTC · [original](https://github.com/fxceless/victory-fork/issues/888) ## Environment - Commit: `f85101b6095e8cf3cecf8f0647cc7f5428daa177` - Windows 11 Pro - Intel Core i9-13900K - NVIDIA RTX 3080 Ti (12 GB) - 64 GB RAM - NVIDIA driver: 621.24 ## Sequential workspace results - 554 passed - 1 failed - 11 ignored ## Failing test `indirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields` Location: `crates/victory-gpu/src/indirect.rs:1539:17` Assertion: `the first two real draws fit the budget` Reproduced in 7/7 executions: - Initial sequential workspace run - One isolated retest - Five additional isolated repetitions All isolated repetitions exited with code 101. ## Reproduction cargo test --locked --release -p victory-gpu --lib indirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields -- --exact --test-threads=1 --nocapture ## Possible explanation Comparing `31714de` against `f85101b`, 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_order` also 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:53:13 +00:00
Author
Owner

@⁠tatazildo on GitHub · 2026-11-25 12:38 UTC · original

Retested on a253706. The same failure persists at crates/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.

**@⁠tatazildo** on GitHub · 2026-11-25 12:38 UTC · [original](https://github.com/fxceless/victory-fork/issues/888#issuecomment-7162646162) Retested on `a253706`. The same failure persists at `crates/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.
Author
Owner

@⁠welisonzika14-jpg on GitHub · 2026-11-25 15:08 UTC · original

First NVIDIA data for this test (the earlier reports were all WARP).

  • GPU: NVIDIA GeForce RTX 5070, driver 621.24
  • OS: Windows 11, Rust 1.98.1 MSVC
  • Test: indirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields
  • Command: cargo test -p victory-gpu --lib --locked <test name>, 3 runs each
Head Result
fx/main 0b0074e 0 of 3 pass. indirect.rs:1539:17: the first two real draws fit the budget
fx/main + #970 (b80bfd8) 3 of 3 pass
fx/main + #899 (ae62e61, PR head 684eb7a) 3 of 3 pass

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.

**@⁠welisonzika14-jpg** on GitHub · 2026-11-25 15:08 UTC · [original](https://github.com/fxceless/victory-fork/issues/888#issuecomment-7166357297) First NVIDIA data for this test (the earlier reports were all WARP). - GPU: NVIDIA GeForce RTX 5070, driver 621.24 - OS: Windows 11, Rust 1.98.1 MSVC - Test: `indirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields` - Command: `cargo test -p victory-gpu --lib --locked <test name>`, 3 runs each | Head | Result | |---|---| | fx/main `0b0074e` | 0 of 3 pass. `indirect.rs:1539:17: the first two real draws fit the budget` | | fx/main + #970 (`b80bfd8`) | 3 of 3 pass | | fx/main + #899 (`ae62e61`, PR head `684eb7a`) | 3 of 3 pass | 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.
Author
Owner

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

**@⁠tramalretard1** on GitHub · 2026-11-26 20:22 UTC · [original](https://github.com/fxceless/victory-fork/issues/888#issuecomment-7202598455) · 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?
This discussion has been locked. Commenting is limited to contributors.
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/fxceless--victory-fork#888
No description provided.