GPU tests: cover new waits after a fence rewind #2164

Manually merged
github merged 1 commit from gh-pr/2164/head into gh-pr/2164/base 2026-11-26 04:56:59 +00:00
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-25 06:44 UTC · original
andrewpozdnakov7-jpg:test/932-fence-rewind-wait → main · +10 −1 · 1 files · 1 commits · merged 2026-11-25 21:55 UTC

Refs #932

D3D12 permits a later signal to lower a fence's value. Extend the existing event test to check that a new wait after 5 to 2 stays pending for 4 and fires when 4 is signalled. D3D12 fence semantics

The same test fails on the monotonic comparison branch 370c61bffc because the completed value stays at 5. It passes on current main 940d32f69b. The GPU suite passed 146 tests with two ignored. Staged asset policy passed.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-25 06:44 UTC · [original](https://github.com/Marvisak/VIctory/pull/2164) `andrewpozdnakov7-jpg:test/932-fence-rewind-wait` → `main` · +10 −1 · 1 files · 1 commits · merged 2026-11-25 21:55 UTC Refs #932 D3D12 permits a later signal to lower a fence's value. Extend the existing event test to check that a new wait after 5 to 2 stays pending for 4 and fires when 4 is signalled. [D3D12 fence semantics](https://learn.microsoft.com/en-us/windows/win32/direct3d12/user-mode-heap-synchronization) The same test fails on the monotonic comparison branch 370c61bffc81c692d85e484680b3a12560e25fd0 because the completed value stays at 5. It passes on current main 940d32f69b22265690a0b5a15d6ded572ba33baf. The GPU suite passed 146 tests with two ignored. Staged asset policy passed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:56:57 +00:00
github manually merged commit 133f922e53 into gh-pr/2164/base 2026-11-26 04:56:59 +00:00
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 12:35 UTC · original

Automated triage for the maintainers.

Merge candidate (test only). This extends signals_set_waiting_events in crates/victory-gpu/src/fence.rs. After the fence is signalled back to a lower value (2, from 5), a new SetEventOnCompletion(4) does not fire at once, and it fires when the fence reaches 4. That is D3D12's documented behaviour (a fence can be signalled to a lower value, and a wait compares against the current one). It is also what main's signal and set_event_on_completion do. Nothing pinned it before.

CI check passes, and the branch merges cleanly with main.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 12:35 UTC · [original](https://github.com/Marvisak/VIctory/pull/2164#issuecomment-7162583106) <!-- victory-triage v1 head=133f922e537e11039d84a4ede52e144c0678a6a6 verdict=merge-candidate at=2026-11-25T13:35:00Z --> Automated triage for the maintainers. **Merge candidate (test only).** This extends `signals_set_waiting_events` in `crates/victory-gpu/src/fence.rs`. After the fence is signalled back to a lower value (2, from 5), a new `SetEventOnCompletion(4)` does not fire at once, and it fires when the fence reaches 4. That is D3D12's documented behaviour (a fence can be signalled to a lower value, and a wait compares against the current one). It is also what `main`'s `signal` and `set_event_on_completion` do. Nothing pinned it before. CI `check` passes, and the branch merges cleanly with `main`. --- _Generated by [Claude Code](https://claude.ai/code)_
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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/Marvisak--VIctory!2164
No description provided.