Capture: preserve short words in tiny target logs #2819
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2819
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2819"
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?
@andrewpozdnakov7-jpg on GitHub · 2026-11-25 21:26 UTC · original
andrewpozdnakov7-jpg:codex2/tiny-capture-words→main· +38 −7 · 1 files · 2 commits · openThe 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=0in place of0x3c00and0x0001on the two R16 rows. On the patch all three capture unit tests pass. No game data used. AI-assisted.@fuzeofficlal on GitHub · 2026-11-25 21:41 UTC · original
Verified
3bbcde9bon 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 (includingtiny_capture_keeps_short_words_on_each_row).tiny_wordscleanly prints complete 4-byte chunks as{w:#x}={f32}and preserves trailing 1–3 byte slices in little-endian hex without zeroing them out. Cleangit merge-treeagainstorigin/main13f91ca.@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) withtry_into().unwrap_or_default()and printed0. The newtiny_wordspads 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
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.