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

Merged
andrewpozdnakov7-jpg merged 1 commit from upstream-pr/2164 into main 2026-11-25 21:55:21 +00:00
andrewpozdnakov7-jpg commented 2026-11-25 06:44:21 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-25T06:44:21Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6598873720 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2164). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-25T06:44:21Z. --- 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.
catminou4 commented 2026-11-25 08:06:05 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T07:17:30Z.

Review: COMMENTED


Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; source review of the diff.

GPU tests for new waits after a fence rewind — test-only PR; Windows-only.

<!-- greyfinch-sync:Marvisak/VIctory:review:6053350019 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2164#pullrequestreview-6053350019). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-25T07:17:30Z. **Review:** COMMENTED --- Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; source review of the diff. GPU tests for new waits after a fence rewind — test-only PR; Windows-only.
Marvisak commented 2026-11-25 13:02:51 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T12:35:26Z.


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

<!-- greyfinch-sync:Marvisak/VIctory:comment:7162583106 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2164#issuecomment-7162583106). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T12:35:26Z. --- <!-- 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)_
upstream-sync closed this pull request 2026-11-25 22:03:31 +00:00
Sign in to join this conversation.
No reviewers
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
Marvisak/VIctory!2162
No description provided.