GPU: a buffer in untracked memory copies the title's writes under a busy range #2269
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2271"
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?
Imported from Marvisak/VIctory. Originally posted by denkencar-sketch on 2026-11-25T09:28:53Z.
Summary
update_busyreturned at once when the memory is not write-watched, so a later list of the same submission read the bytes from before the title's writes. A buffer in untracked memory now copies the title's writes under a busy range. Untracked memory has no write watch, so the whole busy range is copied; that costs a copy per submission, not measured.Testing
Test
untracked_buffers_copy_title_writes_under_a_busy_rangefails onmainand passes with this change.cargo test --workspace --lockedpasses apart from the known flakes:modules::dstorage::tests::a_page_list_filled_after_its_request_startsfails now and then onmaintoo, and so does a parallel-run flake invictory-gpu's lib tests (watch::anddescriptor::host::tests, 2 of 40 runs on pristinemain).Not tried: the cost of the extra copy, and a run in the game.
AI-assisted.
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T09:35:40Z.
Review: COMMENTED
A buffer in untracked memory copies the title's writes under a busy range — update_busy falls back to whole-range take when untracked. Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1. Closes a freshness hole for heap-allocated title buffers; includes a regression test.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T13:32:16Z.
Automated triage for the maintainers.
This pull request no longer merges cleanly into
main(conflicts incrates/victory-gpu/src/shadow.rs). It will be reviewed once it is rebased onto the currentmain. The earlier verdict (needs-work) was for an older state ofmain.Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by denkencar-sketch on 2026-11-25T23:15:18Z.
Closing: #2172 removed \update_busy\ and explicitly documented that untracked memory skips busy ranges because title writes there cannot be distinguished.
Pull request closed