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

Closed
opened 2026-11-25 19:26:30 +00:00 by FIJI1299 · 1 comment
FIJI1299 commented 2026-11-25 19:26:30 +00:00 (Migrated from github.com)
Contributor

Imported from fxceless/victory-fork. Originally posted by FIJI1299 on 2026-11-25T19:26:30Z.


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
<!-- greyfinch-sync:fxceless/victory-fork:issue:6612041159 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1100). Originally posted by [FIJI1299](https://github.com/FIJI1299) on 2026-11-25T19:26:30Z. --- 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 ```
DominicBrett commented 2026-11-25 22:07:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by DominicBrett on 2026-11-25T21:17:27Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7174876041 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1100#issuecomment-7174876041). Originally posted by [DominicBrett](https://github.com/DominicBrett) on 2026-11-25T21:17:27Z. --- 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.
Sign in to join this conversation.
No labels
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.

Reference
fxceless/victory-fork#1097
No description provided.