GPU: detect black frames on half-float presentation #3687
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3687"
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-28T06:54:01Z.
The presenter accepts half-float color, but the black-frame probe skipped it. Sample
R16G16B16A16_FLOATand its typeless family as FP16. Ignore alpha and scale positive RGB to the existing 8-bit diagnostic range, with black below 8.Using the normal presentation path on WARP, main reported four nonblack frames for opaque black, near-black red, green at level 8 and bright blue. At this head, FP16 and TYPELESS with an FP16 view both reported
[black, black, nonblack, nonblack]. The RGBA8 control reported the same expected sequence. Each format was tested in a separate process with the D3D12 debug switch enabled. The committed unit test also checks negative and NaN channels, highlight clipping and BGRA8.Strict GPU Clippy and the asset policy passed. The test used generated color textures on app-local WARP 1.0.22 and Agility 1.620.2.
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-28T06:57:31Z.
Windows CI passed at
3e91c42, including Clippy on both build configurations and the repository test job. The FP16, typeless and RGBA8 WARP checks in the description apply to this head. I also checked the combined decoder for both sets of formats in #2962.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-28T11:23:11Z.
Independent local verification (Windows, Rust 1.100.0/MSVC, no game data):
3e91c421582ec5ccf10cf3c7c4701ece909fccae, base/parent63bcca43c6a00a758510398fa43096ce7e4f7df0.capturemodule is gated#[cfg(all(windows, feature = "diagnostics"))], so the default build replays 0 tests; with the feature enabled:cargo test --locked -p victory-gpu --lib --features diagnostics -- capture::black_probe_uses_the_same_level_scale_for_float_and_byte_color --exact --test-threads=1 --quiet→ 1 passed, 0 failed, 247 filtered, exit 0.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, +56/-10).CARGO_TARGET_DIR(never shared) withCARGO_BUILD_JOBS=2; two pre-existing warnings in the victory-gpu lib test build (unrelated to this change).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.