GPU: a submission refreshes a copy's ranges disjoint, not their span #2419
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2419
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2419/head"
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?
@borosf on GitHub · 2026-11-25 13:10 UTC · original
borosf:vibe/disjoint-refresh-ranges-842ca5→main· +126 −42 · 1 files · 1 commits · closed without mergingSummary
Batchmerged every refresh of a buffer copy across a submission into one[min, max]span, so lists asking for distant small parts of one copy (constant buffers through the bindless hulls, heap table ranges, recordedStep::Refreshes) copied everything between them out of title memory. The dossier counts this line as most ofpreparing(~860 ms of a ~1,900 ms Series S world frame; copies ~270 MB ≈ 440 ms).current) is a disjoint set too, so ranges already brought up to date are skipped more often than before.push_range), model-checked against a brute-force coalescer over thousands of random range sequences; unit tests cover the coalescing/bridging rules, and an integration test shows two distant refreshes of one watched copy stay apart.Numbers
Model (no game data; per-frame equivalents of the submission pattern the dossier describes):
Real-world confirmation needs the diagnostics frame log (
preparingMB/ms before/after) on hardware that runs the game.Verification
cargo test -p victory-gpu --libon Intel Arc B580: 143 passed, 2 failed with only the two known Intel heap-cap failures pristine main also has, 2 benchmarks ignored. Includes the newranges_of_a_copy_stay_disjoint,distant_refreshes_of_a_copy_are_copied_apart, and the existing refresh-semantics tests unchanged.claiming: PREPARING-DISJOINT-RANGES (the dirty-range half of H-2.1; per the ledger the adjacent lanes NEW-48 / NEW-53 / GPU-SNAPSHOT-COST are correctness or copy-back redesign, not this).
Pull request closed