perf(gpu/shadow): skip unchanged 256-byte upload blocks via VICTORY_COPY_FILTER (#276) #383

Merged
Androtim merged 3 commits from upstream-pr/383 into main 2026-12-03 12:58:11 +00:00
Androtim commented 2026-12-03 09:51:52 +00:00 (Migrated from github.com)

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-03T09:51:52Z.


Summary

Adapts 256-byte upload-block deduplication (Shadow::copy_filtered, VICTORY_COPY_FILTER=0|1|check, default on) from ReZOnGithub/VIctory-lap (

<!-- greyfinch-sync:Androtim/MiniVI:issue:5624060765 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/383). Originally posted by [Androtim](https://github.com/Androtim) on 2026-12-03T09:51:52Z. --- ## Summary Adapts 256-byte upload-block deduplication (Shadow::copy_filtered, VICTORY_COPY_FILTER=0|1|check, default on) from ReZOnGithub/VIctory-lap (
Androtim commented 2026-12-03 10:01:50 +00:00 (Migrated from github.com)

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-03T10:01:50Z.


All 3 gates passed: CI green (\6m37s), Gate 2 Reasoning (\pro) audit \VERIFIED CLEAN (0 P0, 0 P1)\ logged on #282, and live RTX 4060 Ti \VICTORY_COPY_FILTER=check\ verified 0 byte mismatches + clean default visuals.

<!-- greyfinch-sync:Androtim/MiniVI:comment:7374631070 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/383#issuecomment-7374631070). Originally posted by [Androtim](https://github.com/Androtim) on 2026-12-03T10:01:50Z. --- All 3 gates passed: CI green (\6m37s\), Gate 2 Reasoning (\pro\) audit \VERIFIED CLEAN (0 P0, 0 P1)\ logged on #282, and live RTX 4060 Ti \VICTORY_COPY_FILTER=check\ verified **0 byte mismatches** + clean default visuals.
Androtim commented 2026-12-03 10:02:35 +00:00 (Migrated from github.com)

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-03T10:02:35Z.


Read-only static audit of fed6c130 (CI check PASS): VERIFIED CLEAN (0 [P0], 0 [P1]).

  • Audited all .data write sites in crates/victory-gpu/src/shadow.rs: every non-carded write path (copy, placed_copy, copy_back_with, land_card, land_back, mark_written, has_pending merge) calls self.unfiltered() with Release/Acquire filter_epoch fencing; card_merge, card_merge_relay, take, and take_landed are strictly card.is_some()-only.
  • Default-on with clean VICTORY_COPY_FILTER=0 kill-switch, =check readback verifier, proper GPL-3.0 attribution (ReZOnGithub/VIctory-lap 0388407), and block_hash unit test.

Holding auto-merge solely for plain --release (NO --features diagnostics) A/B numbers vs main + VICTORY_COPY_FILTER=check (0 mismatches, 0 crashes/DRED) since the PR description was truncated mid-sentence at (. Once posted, ready to merge immediately.

<!-- greyfinch-sync:Androtim/MiniVI:comment:7374649467 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/383#issuecomment-7374649467). Originally posted by [Androtim](https://github.com/Androtim) on 2026-12-03T10:02:35Z. --- Read-only static audit of `fed6c130` (**CI `check` PASS**): **VERIFIED CLEAN (0 `[P0]`, 0 `[P1]`)**. - Audited all `.data` write sites in `crates/victory-gpu/src/shadow.rs`: every non-carded write path (`copy`, `placed_copy`, `copy_back_with`, `land_card`, `land_back`, `mark_written`, `has_pending` merge) calls `self.unfiltered()` with `Release`/`Acquire` `filter_epoch` fencing; `card_merge`, `card_merge_relay`, `take`, and `take_landed` are strictly `card.is_some()`-only. - Default-on with clean `VICTORY_COPY_FILTER=0` kill-switch, `=check` readback verifier, proper GPL-3.0 attribution (`ReZOnGithub/VIctory-lap` `0388407`), and `block_hash` unit test. Holding auto-merge solely for plain `--release` (NO `--features diagnostics`) A/B numbers vs `main` + `VICTORY_COPY_FILTER=check` (`0` mismatches, `0` crashes/DRED) since the PR description was truncated mid-sentence at `(`. Once posted, ready to merge immediately.
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
Androtim/MiniVI!383
No description provided.