victory-gpu: indirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields fails on main #1100

Closed
opened 2026-11-26 03:57:29 +00:00 by github-bot · 1 comment
Owner

@⁠FIJI1299 on GitHub · 2026-11-25 19:26 UTC · original

Tested commit <HASH> (main) on Windows 11:

Environment

  • OS: Windows 11 (Build 26100)
  • CPU: AMD Ryzen 5 9600X 6-Core Processor
  • RAM: 32 GB
  • GPU: NVIDIA GeForce RTX 5070 (12 GB VRAM, driver 621.40)

Description

Running cargo test --workspace on main fails on a single unit test in victory-gpu (181 passed, 1 failed, 5 ignored), while all other workspace crates (victory-shader, victory-hle, victory-loader, victory-pe, victory-pipeline, victory-formats, victory-core, xtask) pass with 0 failures.

Reproduction

cargo test -p victory-gpu --lib warp_budget_saturates_without_wraparound_and_preserves_draw_fields

Failure Output

thread 'indirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields' panicked at crates\victory-gpu\src\indirect.rs:1833:17:
the first two real draws fit the budget
**@⁠FIJI1299** on GitHub · 2026-11-25 19:26 UTC · [original](https://github.com/fxceless/victory-fork/issues/1100) Tested commit `<HASH>` (`main`) on Windows 11: ### Environment * **OS:** Windows 11 (Build 26100) * **CPU:** AMD Ryzen 5 9600X 6-Core Processor * **RAM:** 32 GB * **GPU:** NVIDIA GeForce RTX 5070 (12 GB VRAM, driver `621.40`) ### Description Running `cargo test --workspace` on `main` fails on a single unit test in `victory-gpu` (`181 passed, 1 failed, 5 ignored`), while all other workspace crates (`victory-shader`, `victory-hle`, `victory-loader`, `victory-pe`, `victory-pipeline`, `victory-formats`, `victory-core`, `xtask`) pass with `0` failures. ### Reproduction ```powershell cargo test -p victory-gpu --lib warp_budget_saturates_without_wraparound_and_preserves_draw_fields ``` ### Failure Output ```text thread 'indirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields' panicked at crates\victory-gpu\src\indirect.rs:1833:17: the first two real draws fit the budget ```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:57:29 +00:00
Author
Owner

@⁠DominicBrett on GitHub · 2026-11-25 21:17 UTC · original

The cause is the order of thread groups, not the hardware: the test's 128 records run as two groups of 64 that race for one budget word, and D3D12 (WARP here, whatever GPU is installed) doesn't fix which group charges first. The test assumed the first group always wins. On my machine the old test failed 93 runs out of 100, every failure with records 64 and 65 kept instead of 1 and 2. Test-only fix with evidence in #1134.

**@⁠DominicBrett** on GitHub · 2026-11-25 21:17 UTC · [original](https://github.com/fxceless/victory-fork/issues/1100#issuecomment-7174876041) The cause is the order of thread groups, not the hardware: the test's 128 records run as two groups of 64 that race for one budget word, and D3D12 (WARP here, whatever GPU is installed) doesn't fix which group charges first. The test assumed the first group always wins. On my machine the old test failed 93 runs out of 100, every failure with records 64 and 65 kept instead of 1 and 2. Test-only fix with evidence in #1134.
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#1100
No description provided.