Diagnostics: capture RGBA32 unsigned targets #2567

Open
github-bot wants to merge 2 commits from github-bot/gh-2567 into main AGit
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-25 15:59 UTC · original
andrewpozdnakov7-jpg:codex2/capture-rgba32-uint → main · +18 −0 · 1 files · 2 commits · open

R32G32B32A32_UINT has a 16-byte texel layout, but the diagnostic capture converter returns None, so there is no PNG for these targets. Decode R, G, and B as unsigned 32-bit values and use the existing diagnostic color scaling and opaque PNG alpha.

The same two pitched synthetic rows return None on 67e8ae1 and produce RGB (255, 127, 0) and (0, 63, 255) on the patch. The fixture includes the high unsigned bit and sentinel values in source alpha and row padding.

Validation: diagnostics capture tests, strict GPU Clippy, and the staged asset policy.

DXGI format definitions · 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.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-25 15:59 UTC · [original](https://github.com/Marvisak/VIctory/pull/2567) `andrewpozdnakov7-jpg:codex2/capture-rgba32-uint` → `main` · +18 −0 · 1 files · 2 commits · open `R32G32B32A32_UINT` has a 16-byte texel layout, but the diagnostic capture converter returns `None`, so there is no PNG for these targets. Decode R, G, and B as unsigned 32-bit values and use the existing diagnostic color scaling and opaque PNG alpha. The same two pitched synthetic rows return `None` on `67e8ae1` and produce RGB `(255, 127, 0)` and `(0, 63, 255)` on the patch. The fixture includes the high unsigned bit and sentinel values in source alpha and row padding. Validation: diagnostics capture tests, strict GPU Clippy, and the staged asset policy. [DXGI format definitions](https://learn.microsoft.com/en-us/windows/win32/api/dxgiformat/ne-dxgiformat-dxgi_format) · [Coordination claim](https://git.gtahub.st/github/Marvisak--VIctory/issues/1633) 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:09:24 +00:00
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 19:20 UTC · original · edited 2026-11-25 20:22 UTC

Automated triage for the maintainers.

Merge candidate. This is a recommendation to look, not an approval. The PR adds DXGI format 3 (R32G32B32A32_UINT, 16-byte texels) to capture::to_rgba in crates/victory-gpu/src/capture.rs. RGB is decoded as unsigned integers and scaled like the other non-8-bit formats, so these targets get a PNG instead of being skipped. The new commit (035adfa) only moves the test into mod tests, next to unorm16_and_xr_bias_targets_decode_as_their_formats. The code is unchanged from the head reviewed before, and the expected bytes still follow from the existing scaling with a 20-byte row pitch.

Reply to the author: thanks, the nit is addressed.

CI: check passed (Windows).


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 19:20 UTC · [original](https://github.com/Marvisak/VIctory/pull/2567#issuecomment-7172163013) · edited 2026-11-25 20:22 UTC <!-- victory-triage v1 head=035adfa3a51332164b4a6640ad91624408783496 verdict=merge-candidate at=2026-11-25T20:18:54Z --> Automated triage for the maintainers. **Merge candidate.** This is a recommendation to look, not an approval. The PR adds DXGI format 3 (`R32G32B32A32_UINT`, 16-byte texels) to `capture::to_rgba` in `crates/victory-gpu/src/capture.rs`. RGB is decoded as unsigned integers and scaled like the other non-8-bit formats, so these targets get a PNG instead of being skipped. The new commit (`035adfa`) only moves the test into `mod tests`, next to `unorm16_and_xr_bias_targets_decode_as_their_formats`. The code is unchanged from the head reviewed before, and the expected bytes still follow from the existing scaling with a 20-byte row pitch. **Reply to the author:** thanks, the nit is addressed. CI: `check` passed (Windows). --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-25 19:32 UTC · original

Addressed the test placement request. The existing RGBA32 UINT regression now sits in capture::tests beside unorm16_and_xr_bias_targets_decode_as_their_formats. All three capture module tests passed with diagnostics enabled, including the moved regression. Commit 035adfa

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-25 19:32 UTC · [original](https://github.com/Marvisak/VIctory/pull/2567#issuecomment-7172441324) Addressed the [test placement request](https://git.gtahub.st/github/Marvisak--VIctory/pulls/2567). The existing RGBA32 UINT regression now sits in capture::tests beside unorm16_and_xr_bias_targets_decode_as_their_formats. All three capture module tests passed with diagnostics enabled, including the moved regression. [Commit 035adfa](https://git.gtahub.st/github/Marvisak--VIctory/pulls/2567/commits/035adfa3a51332164b4a6640ad91624408783496)
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-26 01:00 UTC · original

Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head 035adfa (on its base 67e8ae1).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.98.1 MSVC (pinned), dxil.dll from Windows SDK 10.0.26100 (the loader's default), debug.
  • cargo build --workspace --locked, then cargo 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: 773 passed, 0 failed, 9 ignored.
  • rgba32_uint_captures_keep_rgb_and_ignore_source_alpha only builds with the diagnostics feature, so the run above doesn't include it; it passes in cargo test -p victory-gpu --lib --locked --features diagnostics (same skips).
  • --skip leaves out tests that fail on main 63bcca4 on this card too, not because of this PR: heap_direct_texture_reads_mark_their_heap_index ends the victory-shader test process with 0xc0000005 (#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_views and the two stride_tests hit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317); gathers_at_a_level_match_the_hardware fails on lane 0 (#1744).

Not tested

  • AMD (the tests take the default adapter), a release build, the title (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-26 01:00 UTC · [original](https://github.com/Marvisak/VIctory/pull/2567#issuecomment-7179334401) Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head `035adfa` (on its base `67e8ae1`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.98.1 MSVC (pinned), `dxil.dll` from Windows SDK 10.0.26100 (the loader's default), debug. - `cargo build --workspace --locked`, then `cargo 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`: **773 passed, 0 failed, 9 ignored**. - `rgba32_uint_captures_keep_rgb_and_ignore_source_alpha` only builds with the `diagnostics` feature, so the run above doesn't include it; it passes in `cargo test -p victory-gpu --lib --locked --features diagnostics` (same skips). - `--skip` leaves out tests that fail on main `63bcca4` on this card too, not because of this PR: `heap_direct_texture_reads_mark_their_heap_index` ends the `victory-shader` test process with `0xc0000005` (#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_views` and the two `stride_tests` hit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317); `gathers_at_a_level_match_the_hardware` fails on lane 0 (#1744). **Not tested** - AMD (the tests take the default adapter), a release build, the title (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2567/head:github-bot/gh-2567'
git switch 'github-bot/gh-2567'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2567'
git switch 'github-bot/gh-2567'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2567'
git switch 'github-bot/gh-2567'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2567'
git switch 'main'
git merge --squash 'github-bot/gh-2567'
git switch 'main'
git merge --ff-only 'github-bot/gh-2567'
git switch 'main'
git merge 'github-bot/gh-2567'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!2567
No description provided.