GPU: a buffer in untracked memory copies the title's writes under a busy range #2271

Closed
github-bot wants to merge 1 commit from gh-pr/2271/head into gh-pr/2271/base
Owner

@⁠denkencar-sketch on GitHub · 2026-11-25 09:28 UTC · original
denkencar-sketch:fix/shadow-003 → main · +25 −4 · 1 files · 1 commits · closed without merging

Summary

update_busy returned 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_range fails on main and passes with this change. cargo test --workspace --locked passes apart from the known flakes: modules::dstorage::tests::a_page_list_filled_after_its_request_starts fails now and then on main too, and so does a parallel-run flake in victory-gpu's lib tests (watch:: and descriptor::host:: tests, 2 of 40 runs on pristine main).

Not tried: the cost of the extra copy, and a run in the game.

AI-assisted.

**@⁠denkencar-sketch** on GitHub · 2026-11-25 09:28 UTC · [original](https://github.com/Marvisak/VIctory/pull/2271) `denkencar-sketch:fix/shadow-003` → `main` · +25 −4 · 1 files · 1 commits · closed without merging ## Summary `update_busy` returned 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_range` fails on `main` and passes with this change. `cargo test --workspace --locked` passes apart from the known flakes: `modules::dstorage::tests::a_page_list_filled_after_its_request_starts` fails now and then on `main` too, and so does a parallel-run flake in `victory-gpu`'s lib tests (`watch::` and `descriptor::host::` tests, 2 of 40 runs on pristine `main`). Not tried: the cost of the extra copy, and a run in the game. AI-assisted.
update_busy returned at once when the memory is not write-watched, so a
later list of the submission read the bytes from before.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:00:34 +00:00
github-bot closed this pull request 2026-11-26 05:00:34 +00:00
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 13:32 UTC · original · edited 2026-11-25 16:06 UTC

Automated triage for the maintainers.

This pull request no longer merges cleanly into main (conflicts in crates/victory-gpu/src/shadow.rs). It will be reviewed once it is rebased onto the current main. The earlier verdict (needs-work) was for an older state of main.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 13:32 UTC · [original](https://github.com/Marvisak/VIctory/pull/2271#issuecomment-7163920252) · edited 2026-11-25 16:06 UTC <!-- victory-triage v1 head=acc239d27578ad132e5ed0340c27a12de6f5f48a verdict=needs-rebase at=2026-11-25T16:20:00Z --> Automated triage for the maintainers. This pull request no longer merges cleanly into `main` (conflicts in `crates/victory-gpu/src/shadow.rs`). It will be reviewed once it is rebased onto the current `main`. The earlier verdict (needs-work) was for an older state of `main`. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠denkencar-sketch on GitHub · 2026-11-25 23:15 UTC · original

Closing: #2172 removed \update_busy\ and explicitly documented that untracked memory skips busy ranges because title writes there cannot be distinguished.

**@⁠denkencar-sketch** on GitHub · 2026-11-25 23:15 UTC · [original](https://github.com/Marvisak/VIctory/pull/2271#issuecomment-7177319511) Closing: #2172 removed \update_busy\ and explicitly documented that untracked memory skips busy ranges because title writes there cannot be distinguished.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!2271
No description provided.