GPU capture: save half-float presentation frames #3689
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3689"
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 Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T07:04:31Z.
FP16 frames now produce the usual half-size RGB PNG during
VICTORY_CAPTURE. The export interprets FLOAT and TYPELESS presentation pixels as half floats, ignores alpha, and maps the fixed range 0–1 to 0–255. This keeps black, midtones and clipped highlights comparable across captured frames.On Windows with signed app-local WARP 1.0.22 and Agility 1.620.2, the normal presentation path on main wrote no PNG for either FP16 frame. The same fixture at this head exported both a black frame and a frame with RGB
[64, 128, 255]for FLOAT and TYPELESS. An independent PNG decoder checked all pixels, dimensions and chunk CRCs. The RGBA8 and BGRA8 PNGs matched main byte for byte.The checked-in test covers mixed FP16 values, padded rows and nonfinite channels. Strict GPU Clippy and the asset policy passed.
Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change into another commit.AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T07:07:44Z.
Windows CI passed at
9872963, including Clippy on both build configurations and the repository test job. The FP16 PNG readbacks and byte-identical 8-bit controls in the description apply to this head. The shared writer also passed the seven-format presentation check in #2827.The next step is maintainer review.
Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding this change into another commit.AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-28T13:10:31Z.
Independent local verification (Windows, Rust 1.100.0/MSVC, no game data):
98729637a0e091eabf222e8a81a963b207a217d7, base/parent63bcca43c6a00a758510398fa43096ce7e4f7df0.cargo test --locked -p victory-gpu --lib --features diagnostics -- capture::tests::half_float_frames_are_saved_with_a_fixed_rgb_scale --exact --test-threads=1 --quiet→ 1 passed, 0 failed, 247 filtered, exit 0. Thediagnosticsfeature is required becausemod captureis cfg-gated onall(windows, feature = "diagnostics"); the build emitted 2 pre-existing warnings.git grep -Ffor the test name on the base returned no match (test is new on this PR);git diff --check 63bcca4 HEADclean (1 file, +92/-29).CARGO_TARGET_DIR(never shared) withCARGO_BUILD_JOBS=2.AI-assisted (Hy4 flash).
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.