Capture: R16G16B16A16_UNORM targets are integers, format 89 is 10:10:10:2 #372
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!372
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/372/head"
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?
@marquezinii on GitHub · 2026-11-24 02:43 UTC · original
marquezinii:fix/capture-unorm16-formats→main· +19 −3 · 1 files · 1 commits · merged 2026-11-24 08:06 UTCTwo DXGI formats came out of
VICTORY_CAPTURE/VICTORY_DUMP_TARGETSdumps wrong:R16G16B16A16_UNORM. A UNORM 0x8000 read as half -0 and 0xffff as -inf (then dropped as not finite), so such targets dumped mostly black. 11..=14 (UNORM, UINT, SNORM, SINT) now read as 16-bit integers, as theR16G16_*arm (35..=38) already does.R10G10B10_XR_BIAS_A2_UNORM. It now goes through the 10:10:10:2 arm with 23..=25.Tested with a new unit test on
to_rgba(cargo test -p victory-gpu --features diagnostics --lib capture): a UNORM16 pixel with red 0x8000 and green 0x4000 gave[0, 255, 0, 255]before and gives[255, 127, 0, 255]now; format 89 and plain BGRA8 are checked too. Clippy withdiagnosticsis clean. Not tried on a real capture.@jeremygold02 on GitHub · 2026-11-24 04:08 UTC · original
Thanks @marquezinii for correcting these capture format cases. I tested head
0f369d660c9e5ace8482f2f9cc5572c9805e9416with:Result: 1 passed, 0 failed (46 filtered out). The synthetic
to_rgbacases check R16G16B16A16_UNORM, format 89 as 10:10:10:2, and ordinary BGRA8 output. This validates the CPU decoder; it does not exercise a live GPU capture.