GPU capture: decode R32G32_UINT targets #2525
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2527"
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-25T15:19:02Z.
VICTORY_DUMP_TARGETScan read back anR32G32_UINTtexture, but the PNG conversion has no decoder for the format. As a result, it logstarget not dumped: formateven if the readback succeeded.Decode both 32-bit channels as unsigned integers, with blue set to zero, then apply the existing diagnostic scaling.
The same two synthetic rows are unsupported on
940d32fand produce[255, 127, 0, 255]and[0, 255, 0, 255]with the change. Both rows contain values at or above the signed 32-bit boundary and unused padding withu32::MAX, so the test also checks unsigned interpretation and row pitch. All three capture tests, strict GPU diagnostics Clippy, and staged asset policy passed on Windows.Coordination claim
Please retain the Git author when cherry-picking or rebasing. If you fold the change into another commit, please add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.AI-assisted with Codex.
v18446744073709551615folder makes an update lose the save in release builds (follow-up to #1729) #2495upstream-sync referenced this pull request2026-11-25 19:06:07 +00:00
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T18:32:31Z.
Automated triage for the maintainers.
Merge candidate (small). In
capture::to_rgba(crates/victory-gpu/src/capture.rs), this adds format 17 (R32G32_UINT). Its two channels are read as unsigned integers with an 8-byte stride, next to the existingR32G32_FLOATarm (15..=16), so diagnostic captures of such targets are no longer skipped. I checked the new test's expected bytes by hand against the 99th-percentile scaling and the row pitch: they match. It only affects diagnostic captures. CI: passing.Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by futurepro62 on 2026-11-26T01:02:27Z.
Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head
557650c(on its base940d32f).Tested
dxil.dllfrom Windows SDK 10.0.26100 (the loader's default), debug.cargo build --workspace --locked, thencargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware: 696 passed, 0 failed, 10 ignored.rg32_uint_channels_are_unsigned_and_skip_paddingonly builds with thediagnosticsfeature, so the run above doesn't include it; it passes incargo test -p victory-gpu --lib --locked --features diagnostics(same skips).--skipleaves out tests that fail on main63bcca4on this card too, not because of this PR:heap_direct_texture_reads_mark_their_heap_indexends thevictory-shadertest process with0xc0000005(#2571), so without the skip the rest of that crate never reports;dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_viewsand the twostride_testshit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317);gathers_at_a_level_match_the_hardwarefails on lane 0 (#1744).Not tested
AI use
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T02:10:49Z.
Review: COMMENTED
Reviewed and verified against
main(63bcca43) on Windows 11 — clean and ready to merge:DXGI_FORMAT_R32G32_UINT(format17) 8-bpp unsigned decoding incapture.rs:to_rgbawith proper row-pitch handling and a regression test covering0x8000_0000/0x4000_0000/u32::MAXand 12-byte padded pitch.Local verification:
cargo test --locked -p victory-gpu --lib --features diagnostics -- capture::: 12/12 passed (includingrg32_uint_channels_are_unsigned_and_skip_padding)cargo clippy --all-targets -p victory-gpu -- -D warnings(default &--features diagnostics) +cargo xtask policy(191 files ok): 0 warningsImported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-26T23:07:49Z.
Independent local verification of PR #2527 (
557650c), from Windows with Rust 1.100.0/MSVC (repo pins 1.98.1) and per-worktreeCARGO_TARGET_DIR,CARGO_BUILD_JOBS=2, no game data.cargo test --locked -p victory-gpu --lib --features diagnostics -- --exact capture::tests::rg32_uint_channels_are_unsigned_and_skip_padding→test result: ok. 1 passed; 0 failed; 148 filtered out, exit 0.captureis gated behind#[cfg(all(windows, feature = "diagnostics"))], so--features diagnosticsis required.git diff --checkagainst merge base940d32f→ clean (exit 0). Against currentorigin/mainit flags an unrelated EOF blank line incrates/victory-formats/src/xma/tables.rs, not from this PR.git grepforrg32_uint_channels_are_unsigned_and_skip_paddingonorigin/mainfound no match, so the regression test is added by this PR.This adds a Windows/MSVC 1.100 data point alongside the existing NVIDIA full-suite report. Only the synthetic capture unit test was replayed; no real GPU capture or title target was used. AI-assisted (Hy4 flash). GPU/driver: N/A for this CPU-only capture-decode test. No game data.
Imported from Marvisak/VIctory. Originally posted by Dukestar69 on 2026-11-26T23:28:02Z.
Review: APPROVED
LGTM — verified on Windows against
origin/main(63bcca4).R32G32_UINTdiagnostic capture targets passes cleanly with both default and--features diagnosticsbuilds.cargo test -p victory-gpu --lib --features diagnostics capture:: -- --test-threads=1: all passed.cargo clippy -p victory-gpu --all-targets -- -D warnings(default +--features diagnostics): clean.cargo xtask policy: 191 files ok.Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
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.