Preserve signed R16 contrast in PNG captures #892
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/893"
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?
Imported from fxceless/victory-fork. Originally posted by DoubleD17 on 2026-11-25T12:04:40Z.
PNG capture previews interpreted R16 SNORM and SINT samples as unsigned words, making negative RGB and RG channels appear bright and reversing the ordering of signed grayscale intensities. Read signed little-endian samples for the signed RGBA, RG, and single-channel formats. Color channels clamp negative samples to black, and grayscale maps the observed minimum and maximum in each capture to black and white. This adapts Marvisak/VIctory #2320. On Windows x64 with a Ryzen 7 5800X and Rust 1.98.1 MSVC, the six focused capture tests went from 3/6 on the base with the same fixtures to 6/6 on the candidate. They cover RGB, RG, two padded grayscale rows, and unsigned and depth controls. The asset policy check passed. The tests exercise synthetic CPU conversion to RGBA.
AI-assisted.
f85101b: the same four refusals, plus pipelines left "being made" for the whole run #903Imported from fxceless/victory-fork. Originally posted by avt0m4t48 on 2026-11-25T12:19:56Z.
I independently verified the signed R16 capture change at
0846c2bagainst its parentf85101band repeated the comparison on current maina253706with the PR patch applied locally.[254, 255, 0, 0]to[0, 85, 170, 255]. The R16 UNORM and UINT control PNGs were byte-identical across revisions, and the R16 depth conversion control also passed.cargo check --locked --offline -p victory-gpu --all-targets --target x86_64-pc-windows-msvc --features diagnostics,blake3/purewith Rust 1.98.1.The fixtures were synthetic. The Windows check covered cross-target compilation from Linux. Native Windows execution and D3D12 readback were outside this verification.
Pull request closed