Capture: preserve short words in tiny target logs #2819

Open
github-bot wants to merge 2 commits from github-bot/gh-2819 into main AGit
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-25 21:26 UTC · original
andrewpozdnakov7-jpg:codex2/tiny-capture-words → main · +38 −7 · 1 files · 2 commits · open

The tiny target log groups each row into four-byte words. If the row ends in a shorter group, converting that slice directly to a four-byte array fails and the log prints zero. A 1x1 R8 or R16 target can therefore have nonzero bytes while its entire raw-value line shows zero.

Keep the existing hexadecimal and float descriptions for complete words. Print a short group as little-endian hex with two digits per byte, without including the row pitch padding in that group.

The same synthetic test checks one-, two-, and three-byte remainders, two separately padded rows, and an unchanged complete word. The base prints 0x0=0 in place of 0x3c00 and 0x0001 on the two R16 rows. On the patch all three capture unit tests pass. No game data used. AI-assisted.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-25 21:26 UTC · [original](https://github.com/Marvisak/VIctory/pull/2819) `andrewpozdnakov7-jpg:codex2/tiny-capture-words` → `main` · +38 −7 · 1 files · 2 commits · open The tiny target log groups each row into four-byte words. If the row ends in a shorter group, converting that slice directly to a four-byte array fails and the log prints zero. A 1x1 R8 or R16 target can therefore have nonzero bytes while its entire raw-value line shows zero. Keep the existing hexadecimal and float descriptions for complete words. Print a short group as little-endian hex with two digits per byte, without including the row pitch padding in that group. The same synthetic test checks one-, two-, and three-byte remainders, two separately padded rows, and an unchanged complete word. The base prints `0x0=0` in place of `0x3c00` and `0x0001` on the two R16 rows. On the patch all three capture unit tests pass. No game data used. AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:15:01 +00:00
Author
Owner

@⁠fuzeofficlal on GitHub · 2026-11-25 21:41 UTC · original

Verified 3bbcde9b on Windows 11 (RTX 5090 + WARP):

  • cargo xtask policy: 184 files ok; cargo clippy --locked -p victory-gpu --all-targets -- -D warnings (default & --features diagnostics): 0 warnings.
  • capture::tests: 3/3 passed on both RTX 5090 and WARP (including tiny_capture_keeps_short_words_on_each_row).
  • tiny_words cleanly prints complete 4-byte chunks as {w:#x}={f32} and preserves trailing 1–3 byte slices in little-endian hex without zeroing them out. Clean git merge-tree against origin/main 13f91ca.
**@⁠fuzeofficlal** on GitHub · 2026-11-25 21:41 UTC · [original](https://github.com/Marvisak/VIctory/pull/2819#issuecomment-7175402894) Verified `3bbcde9b` on Windows 11 (RTX 5090 + WARP): - `cargo xtask policy`: 184 files ok; `cargo clippy --locked -p victory-gpu --all-targets -- -D warnings` (default & `--features diagnostics`): 0 warnings. - `capture::tests`: 3/3 passed on both RTX 5090 and WARP (including `tiny_capture_keeps_short_words_on_each_row`). - `tiny_words` cleanly prints complete 4-byte chunks as `{w:#x}={f32}` and preserves trailing 1–3 byte slices in little-endian hex without zeroing them out. Clean `git merge-tree` against `origin/main` `13f91ca`.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-26 02:21 UTC · original

Automated triage for the maintainers.

A small diagnostics fix in capture.rs. The tiny-target log converted a short trailing group (fewer than 4 bytes, for example a 1x1 R8 or R16 target) with try_into().unwrap_or_default() and printed 0. The new tiny_words pads the group and prints it as hex, and complete words print as before. The unit test covers 1-, 2- and 3-byte remainders and per-row padding.

CI: passing.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-26 02:21 UTC · [original](https://github.com/Marvisak/VIctory/pull/2819#issuecomment-7180723909) <!-- victory-triage v1 head=642dbc2f93eb7abcd21ce9f304df29ab6d1a494c verdict=merge-candidate at=2026-11-26T02:21:13Z --> Automated triage for the maintainers. A small diagnostics fix in `capture.rs`. The tiny-target log converted a short trailing group (fewer than 4 bytes, for example a 1x1 R8 or R16 target) with `try_into().unwrap_or_default()` and printed `0`. The new `tiny_words` pads the group and prints it as hex, and complete words print as before. The unit test covers 1-, 2- and 3-byte remainders and per-row padding. CI: passing. --- _Generated by [Claude Code](https://claude.ai/code)_
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2819/head:github-bot/gh-2819'
git switch 'github-bot/gh-2819'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2819'
git switch 'github-bot/gh-2819'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2819'
git switch 'github-bot/gh-2819'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2819'
git switch 'main'
git merge --squash 'github-bot/gh-2819'
git switch 'main'
git merge --ff-only 'github-bot/gh-2819'
git switch 'main'
git merge 'github-bot/gh-2819'
git push origin 'main'
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!2819
No description provided.