Repository navigation
GPU: a buffer in untracked memory copies the title's writes under a busy range - #2271
denkencar-sketch wants to merge 1 commit into
Conversation
…usy range update_busy returned at once when the memory is not write-watched, so a later list of the submission read the bytes from before.
catminou4
left a comment
There was a problem hiding this comment.
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.
|
Automated triage for the maintainers. This pull request no longer merges cleanly into Generated by Claude Code |
|
Closing: #2172 removed \update_busy\ and explicitly documented that untracked memory skips busy ranges because title writes there cannot be distinguished. |
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.