Diagnostics: decode signed 32-bit color captures #2607
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2607
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2607"
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?
@andrewpozdnakov7-jpg on GitHub · 2026-11-25 16:43 UTC · original
andrewpozdnakov7-jpg:codex2/capture-signed-32-bit-colors→main· +26 −0 · 1 files · 2 commits · openDiagnostic PNG dumps skip
R32G32_SINTandR32G32B32A32_SINTbecause the converter has no entries for these formats. Decode the color components as signed 32-bit integers and use the existing diagnostic scaling. DXGI format definitionsWith the same two pitched rows for each format,
67e8ae1returnsNonefor both images. The patch emits the expected red, green and blue samples, including negative inputs that clamp to zero. The RGBA fixture carries sentinel source alpha and both fixtures carry sentinel row padding.The three diagnostics capture tests, strict GPU Clippy, and staged asset policy pass.
Coordination claim
If you cherry-pick or rebase this commit, please retain its Git author. If you fold the change into another commit, please add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.AI-assisted. Verification used synthetic readback data.
@kotekompotek on GitHub · 2026-11-25 17:45 UTC · original
Reviewed: format ids check out (4 = R32G32B32A32_SINT / 16 B, 18 = R32G32_SINT / 8 B) and
u32_at as i32 as f32is the right reinterpret. Test covers negative extremes and the pitch path. CI green.@Marvisak on GitHub · 2026-11-25 23:20 UTC · original
Automated triage for the maintainers.
This adds
R32G32B32A32_SINT(4, 16 bytes) andR32G32_SINT(18, 8 bytes) to the channel decoders into_rgba(crates/victory-gpu/src/capture.rs), reinterpreting each word asi32before the existing colour scaling, so these targets are dumped instead of returningNone. I checked the format numbers and texel sizes against the DXGI enum and worked through the test's expected bytes against the p99 scaling (negatives clamp to 0, 2^29 of 2^30 gives 127); the matching UINT formats (3, 17) are still unhandled and could follow separately. CI:checkpassing.This is a recommendation for a maintainer to look, not an approval.
Generated by Claude Code
@futurepro62 on GitHub · 2026-11-26 00:53 UTC · original
Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head
19b1602(on its basef3578e3).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: 863 passed, 0 failed, 10 ignored.signed_32_bit_color_captures_decode_negative_componentsonly build with thediagnosticsfeature, so the run above doesn't include them; they pass 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
@Dukestar69 on GitHub · 2026-11-26 05:16 UTC · original · approved these changes
Tested locally merged onto
origin/main(63bcca4) on Windows 11 x64:DXGI_FORMAT_R32G32B32A32_SINT(4) andDXGI_FORMAT_R32G32_SINT(18) arms incapture::to_rgbausingu32_at(b, i) as i32 as f32cleanly decodes signed 32-bit multi-channel integer color targets instead of misinterpreting negative values.cargo test -p victory-gpu --features diagnostics capture::: 12 passed, 0 failed (includingsigned_32_bit_color_captures_decode_negative_components).cargo clippy -p victory-gpu --features diagnostics --all-targets -- -D warnings: clean.cargo xtask policy: 191 files ok.Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
@fuzeofficlal on GitHub · 2026-11-26 16:52 UTC · original · approved these changes
Verified
19b16029a990c67e2468699120e575016703ca5amerged cleanly onto63bcca43on Windows 11 with both an RTX 5090 and WARP (--features diagnostics,VICTORY_D3D12_DEBUG=1).Code review
crates/victory-gpu/src/capture.rs:670-674adds4(DXGI_FORMAT_R32G32B32A32_SINT, 16 bytes/texel, decoding[R, G, B]and dropping alpha) and18(DXGI_FORMAT_R32G32_SINT, 8 bytes/texel, decoding[R, G, 0.0]), reinterpreting each 32-bit word viau32_at(b, i) as i32 as f32.i32::MINconverts exactly to-2147483648.0f32without overflow or NaN, negative components clamp to0, all-negative and all-zero targets render opaque black, and the change also merges cleanly alongside#2636with no conflict incapture.rs.Verification
cargo xtask policy:191 files ok.cargo clippy --locked -p victory-gpu --all-targets -- -D warnings(default and--all-features): clean.--features diagnostics,VICTORY_D3D12_DEBUG=1):capture::12 passed, 0 failed on both adapters (includingsigned_32_bit_color_captures_decode_negative_componentsatcapture.rs:771).#2636plus an extra edge probe coveringi32::MIN,i32::MAX, all-negativeRGBA32_SINT, all-zero targets, and sentinel alpha words: 14 passed, 0 failed on both RTX 5090 and WARP.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.