Read a fill behind a placed copy from the copy's source #285
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay!285
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-285"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@PetrSeifert on GitHub · 2026-11-27 13:37 UTC · original
PetrSeifert:perf/placed-fill-read-through→main· +378 −29 · 3 files · 1 commits · openSummary
Rebased onto
origin/main(38c4cf9) and updated per review feedback from@TaynanGT:With
VICTORY_PLACED_ORDER=1, a fill taken to the card that reads bytes written by an earlier placed copy in the same submission previously refused the submission (BEHIND_PLACED) or forced a cut behind the placed copy's list, because our front list runs before the placed copy.Such a fill now reads from the placed copy's source host copy at the matching offset when safe:
Review feedback addressed
placed_redirect_regression_casesunit test covering:Copy,GpuWrite, andPlaced),Placed+GpuWritecovering the remainder, in both orders),Placedwriting the earlier copy's source (redirect still valid since our front list runs first),Placed, anddiagnostics, logsplaced-copy fill read-through per frame (VICTORY_PLACED_ORDER): X fills redirected, Y cuts(counting cuts only whensplitsucceeds viacard_steps::note_cut()).Verification
Automated checks
cargo xtask policy --staged— passedgit diff --check— cleancargo clippy --locked -p victory-gpu --all-targets -- -D warnings(default and--features diagnostics) — passedcargo test --locked -p victory-gpu --lib -- --test-threads=1(default and--features diagnostics) — passed, includingplaced_redirect_regression_cases(single-threaded due to the pre-existing parallel flake inhost::refresh_tests::raw_title_copy_keeps_write_watch_and_resends_equal_byteson unmodifiedmain)Real-title comparison (GTA VI, Series S, standard
-Machine 4070diagbuild)target\diag\victory.exeshared path,VICTORY_PLACED_ORDER=1on both control and PR).origin/main(38c4cf9, SHA-256F3DF678E...;base38-r3for contiguous diner + early cell,base38-r2for settled Prologue cell tail)837f77e(SHA-2567B618F0C...,placed-r1;being_made = 0from16:15:13with one brief155loading blip at16:15:28, then0throughout the diner and Prologue cell)scripts/play.ps1 -Console series-s -Machine 4070 -Build diag(VICTORY_PLACED_ORDER=1on both control and PR) +VICTORY_PIPELINE_WORKERS=8,VICTORY_FULLSCREEN=1,VICTORY_PANEL=1Redirect activity (
placed-r1):16:16:23,16:16:47–48):0.83,1.29, and0.27fills redirected per frame with0.00cuts and clean visuals throughout.0.00redirects/cuts in the steady Prologue cell (zero steady-state overhead).Performance (like-for-like, neutral within single-run spread):
being_made = 0, single run each)38c4cf9)placed-r1(837f77e)n=115s samples, vsbase38-r3)n=511s samples)base38-r3)base38-r2)Full-video visual review
placed-r1(171.4s) via start-to-finish contact sheet and full-resolution diner waitress & Prologue cell frames alongsidebase38-r3: 0 errors, 0 DRED, completely clean diner and Prologue cell rendering throughout (including during the diner redirect windows).@TaynanGT on GitHub · 2026-11-27 13:43 UTC · original
@PetrSeifert The source substitution is only equivalent while the placed copy’s source is still valid for the whole fill range. The useful regression cases are a partial overlap and a later write that covers the full fill. Keep those distinct from the placement-order performance comparison.
9dea421bf4to837f77ebce@PetrSeifert on GitHub · 2026-11-27 16:39 UTC · original
@TaynanGT Rebased on
38c4cf9, added the dedicatedplaced_redirect_regression_casesunit test covering partial overlaps and later full-cover writes separately from the placement-order tests, and updated the body with warm-cache comparison results (including diner redirect counts) and full-video verification. Ready for review!@TaynanGT on GitHub · 2026-11-27 16:58 UTC · original
@PetrSeifert The dedicated regression now covers the partial overlap and full-cover writes I asked for, including the split-cover case. I’ll check the
Preplan.chosenoverlap once #322 settles so the redirect stays correct when the two changes meet.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.Merge
Merge the changes and update on Forgejo.