No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: launcher
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
run report
security: hold
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs gpu test
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/Androtim--MiniVI!359
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-359"
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?
@Androtim on GitHub · 2026-12-02 15:55 UTC · original
Androtim:fix/gpu-watch-shadow-retire-lazy→main· +456 −53 · 5 files · 1 commits · openSummary
Fixes findings #3, #4, and #5 from #282 (tracking bottleneck backlog #276).
Changes
ecord_rest_pages\ re-read \j.ahead\ under \journal_mut(), abort \j.ahead\ / \j.kept\ updates when \head_epoch\ changed (or when
equire_kept && !j.kept\ for \sk_once_extend) while still noting any \GetWriteWatch-reset pages in \j.written, and merge only newly queried intervals under
ow\ without advancing timestamps on unheld pre-existing intervals.
Testing
on_lazy_remap_and_alias_materialize_overlapping_lazy_views)
github-bot referenced this pull request2026-12-02 16:06:14 +00:00
@Androtim on GitHub · 2026-12-02 17:05 UTC · original
Automated triage for the maintainers (not an approval).
Verdict:
needs-gpu-test· CI (check):passingReview Summary
Logic, concurrency, and test coverage look solid across all three fixes for #282:
watch::ask_restper-interval timestamps & epoch guard (crates/victory-gpu/src/watch.rs):Journal::ahead_askedwith per-interval(first, last, asked_at)entries inJournal::aheadplus a monotonicahead_epochcleanly closes both races:record_rest_pagespreserves timestamps on unheld intervals viainsert_ahead_interval, unconditionally notes anyGetWriteWatch-reset pages intoj.writtenbefore checkingahead_epoch/require_kept, and abortsj.ahead/j.keptupdates ifask_once_endor another epoch transition occurred concurrently.ahead_asked_atreturns the conservative minimumasked_atacross contiguous covering intervals;wroteandtitle_memory_decommittedadvance timestamps only on overlapping sub-ranges viaadvance_ahead_range.ask_aheadnow avoids clobberingj.aheadifj.keptbecame true, while still notingwrittenpages.shadow::unregisterGPU fence retirement (crates/victory-gpu/src/shadow.rs,crates/victory-gpu/src/host.rs):BUFFERSlock before callingshadow.mark_retired()andcrate::host::retire(shadow)ensuresShadow::drop(andHASH_POOLrecycling ofcard.before) waits for in-flight GPU submissions +bury_lag()rather than dropping synchronously.Bounded
STATESmap &xmem::shows_sliceslazy check (crates/victory-gpu/src/host/lazy.rs,crates/victory-gpu/src/shadow.rs,crates/victory-hle/src/modules/xmem.rs):Drop for Shadowinvokescrate::host::lazy::forget(self.id)before theself.place.is_some()early return, preventing unbounded growth inSTATESwithout lock-order issues (STATESholds noShadowreferences).Physical::shows_slicescheckshas_lazy_overlap(base, len)using themaybe_lazyfast path andLAZY.read()(respecting the documentedPHYSICAL→LAZYlock order), preventing non-lazymap_pages/alias_ascalls from short-circuiting overMEM_RESERVElazy views.CI is passing and the added unit tests exercise the interval splitting, epoch abort, deferred
host::retire,lazy::forget, and non-lazy remap/alias materialization paths. Because this touches the D3D12 host shadow retirement, write-watch submission sync, and physical-memory view materialization hot paths, a local real-GPU smoke test is recommended before merging.Generated with Antigravity CLI (
agy).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.