Tidy-ups of #227: replay event, timeline after end, VICTORY_WATCH, validator status #319

Open
illuminatedfellow wants to merge 1 commit from upstream-pr/319 into main
illuminatedfellow commented 2026-11-26 16:20:51 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by illuminatedfellow on 2026-11-26T16:20:51Z.


Part of #227: the four items no open PR takes yet (profile thread handles are #242, the shader census #246, the texture store #288).

  • Replay event leak (replay/gpu.rs): Worker closes its fence event when dropped, as Rig in inplace.rs does. One event leaked per 256 MiB upload batch in diagnostics builds.
  • Timeline writes after end() (timeline/record.rs): put_of and stack return early when recording is off, so waits or spans that straddle end() no longer write into the next recording's slots.
  • VICTORY_WATCH overflow (apps/victory/src/run.rs): rva.checked_add(4).is_some_and(|end| end <= size), as VICTORY_CRASH_SAVE already does.
  • Validator (emit/validator.rs): a failed GetStatus returns an error instead of counting as validated, and an error blob with a null pointer reads as empty instead of from_raw_parts(null, n).

Left alone: host/upcheck.rs's KNOWN (#180 and #281 change that file) and the optional known.rs item.

Checked: victory-shader builds and its tests pass on Linux (209 passed); the other three files are Windows-only and are built by CI here. All four paths are diagnostics or offline code, off the default runtime path. main's CI is red for unrelated reasons (#280).

(Written with Claude Opus 5.5.)

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:6630828863 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/319). Originally posted by [illuminatedfellow](https://github.com/illuminatedfellow) on 2026-11-26T16:20:51Z. --- Part of #227: the four items no open PR takes yet (profile thread handles are #242, the shader census #246, the texture store #288). - **Replay event leak** (`replay/gpu.rs`): `Worker` closes its fence event when dropped, as `Rig` in `inplace.rs` does. One event leaked per 256 MiB upload batch in diagnostics builds. - **Timeline writes after `end()`** (`timeline/record.rs`): `put_of` and `stack` return early when recording is off, so waits or spans that straddle `end()` no longer write into the next recording's slots. - **`VICTORY_WATCH` overflow** (`apps/victory/src/run.rs`): `rva.checked_add(4).is_some_and(|end| end <= size)`, as `VICTORY_CRASH_SAVE` already does. - **Validator** (`emit/validator.rs`): a failed `GetStatus` returns an error instead of counting as validated, and an error blob with a null pointer reads as empty instead of `from_raw_parts(null, n)`. Left alone: `host/upcheck.rs`'s `KNOWN` (#180 and #281 change that file) and the optional `known.rs` item. Checked: `victory-shader` builds and its tests pass on Linux (209 passed); the other three files are Windows-only and are built by CI here. All four paths are diagnostics or offline code, off the default runtime path. `main`'s CI is red for unrelated reasons (#280). (Written with Claude Opus 5.5.)
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/319:upstream-pr/319'
git switch 'upstream-pr/319'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/319'
git switch 'upstream-pr/319'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/319'
git switch 'upstream-pr/319'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/319'
git switch 'main'
git merge --squash 'upstream-pr/319'
git switch 'main'
git merge --ff-only 'upstream-pr/319'
git switch 'main'
git merge 'upstream-pr/319'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
avatarmanz/VIctory-7900XTX!319
No description provided.