Decode packed 16-bit BGR targets in diagnostic captures #104
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!104
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-104"
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?
@Yoshi-233 on GitHub · 2026-11-26 03:29 UTC · original
Yoshi-233:fix/diagnostic-packed-bgr→main· +50 −4 · 1 files · 1 commits · merged 2026-11-26 08:17 UTCThe diagnostic target dumper currently skips B5G6R5, B5G5R5A1 and B4G4R4A4 before it writes a PNG. Decode their little-endian 16-bit words using the full range of each RGB channel. Keep alpha opaque, as for the other color paths. The added 2×2 regression test includes row padding and mixed channel values.
This ports the conversion from fxceless/victory-fork#910. The resulting
to_rgbafunction is byte-for-byte identical to the one tested at9bf4a0fthere. On that revision I uploaded and read back synthetic textures on an RTX 4070 Ti SUPER on Windows. The wider comparison in the linked PR also covers Intel UHD 770 and WARP. The output here follows nearest-integer UNORM expansion; a physical device sampling the format in a typed shader can round a channel differently by one.Checks on this fork
e2a28ecand from this branch in a CPU harness. All nine fixtures were skipped on base. With the patch, each format passed the complete 65,536-word sweep plus padded 129×5 and 1×1 images. All decoded RGBA pixels matched an independent reference. I reopened all nine half-size PNGs from this fork’s ownsave_asand compared every sampled RGB pixel.cargo check --locked --target x86_64-pc-windows-gnu -p victory-gpu --all-targets --features diagnosticsand the staged asset check. I have not run the AvatarManz binary on Windows with this change.AI-assisted port and regression checks.
@avatarmanz on GitHub · 2026-11-26 07:55 UTC · original
Merged into main in the next push (tests pass); thanks.