victory-gpu: propagate relay merges to current sibling shadows #1385

Open
github-bot wants to merge 1 commit from github-bot/gh-1385 into main AGit
Owner

@⁠SalmanBarkat on GitHub · 2026-11-26 22:06 UTC · original
SalmanBarkat:fix/alias-shadow-relay-merge → main · +375 −66 · 2 files · 1 commits · open

Fixes #1346.

  • Update \watch::wrote_own\ to check \guards().clean\ and return the pre-merge stamp per unique alias page (returning \None\ when a concurrent title write opened the guard).
  • Extend \Shadow::put_back_own\ to handle page-boundary crossings and propagate just the merged bytes into current, non-pending sibling shadows across \BUFFERS, \LOOSE, and \EXACT\ (including non-zero view offsets), advancing a sibling's stamp only when its guard was clean and its pre-merge stamp matched while leaving stale siblings stale.
  • Add regression tests in \shadow::card_merge_tests\ covering current vs stale siblings across view offsets, 64 KiB boundary crossings, and concurrent title writes opening the guard.
**@⁠SalmanBarkat** on GitHub · 2026-11-26 22:06 UTC · [original](https://github.com/fxceless/victory-fork/pull/1385) `SalmanBarkat:fix/alias-shadow-relay-merge` → `main` · +375 −66 · 2 files · 1 commits · open Fixes #1346. - Update \watch::wrote_own\ to check \guards().clean\ and return the pre-merge stamp per unique alias page (returning \None\ when a concurrent title write opened the guard). - Extend \Shadow::put_back_own\ to handle page-boundary crossings and propagate just the merged bytes into current, non-pending sibling shadows across \BUFFERS\, \LOOSE\, and \EXACT\ (including non-zero view offsets), advancing a sibling's stamp only when its guard was clean and its pre-merge stamp matched while leaving stale siblings stale. - Add regression tests in \shadow::card_merge_tests\ covering current vs stale siblings across view offsets, 64 KiB boundary crossings, and concurrent title writes opening the guard.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 01:02:52 +00:00
Author
Owner

@⁠akimfomin on GitHub · 2026-11-26 23:11 UTC · original

All three shadow::card_merge_tests passed independently on Windows at e478a98b8b214319a4a1890d7b7e511300ff4845. A second run made unavailable WARP buffers fail instead of returning early; all three passed again. The tested boundary crossing, stale sibling and concurrent CPU write cases executed. Command: cargo test --locked -p victory-gpu shadow::card_merge_tests -- --test-threads=1. Exact source fixture.

One extra test worth carrying: give an otherwise-current sibling an overlapping pending GPU span. Assert relay propagation leaves those bytes untouched and then confirm the later completion owns them. The candidate's pending-span guard is separate from the stale-stamp cases already tested. This is synthetic WARP coverage. PortBridge · AI-assisted report.

**@⁠akimfomin** on GitHub · 2026-11-26 23:11 UTC · [original](https://github.com/fxceless/victory-fork/pull/1385#issuecomment-7205337164) All three `shadow::card_merge_tests` passed independently on Windows at `e478a98b8b214319a4a1890d7b7e511300ff4845`. A second run made unavailable WARP buffers fail instead of returning early; all three passed again. The tested boundary crossing, stale sibling and concurrent CPU write cases executed. Command: `cargo test --locked -p victory-gpu shadow::card_merge_tests -- --test-threads=1`. [Exact source fixture](https://github.com/fxceless/victory-fork/blob/e478a98b8b214319a4a1890d7b7e511300ff4845/crates/victory-gpu/src/shadow.rs#L5263-L5323). One extra test worth carrying: give an otherwise-current sibling an overlapping pending GPU span. Assert relay propagation leaves those bytes untouched and then confirm the later completion owns them. The [candidate's pending-span guard](https://github.com/fxceless/victory-fork/blob/e478a98b8b214319a4a1890d7b7e511300ff4845/crates/victory-gpu/src/shadow.rs#L3316-L3334) is separate from the stale-stamp cases already tested. This is synthetic WARP coverage. [PortBridge](https://github.com/akimfomin/PortBridge) · AI-assisted report.
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/shadow.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1385/head:github-bot/gh-1385'
git switch 'github-bot/gh-1385'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1385'
git switch 'github-bot/gh-1385'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1385'
git switch 'github-bot/gh-1385'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1385'
git switch 'main'
git merge --squash 'github-bot/gh-1385'
git switch 'main'
git merge --ff-only 'github-bot/gh-1385'
git switch 'main'
git merge 'github-bot/gh-1385'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.