native: HDR target dumps misdecode infinities and NaNs #415

Open
opened 2026-11-27 17:21:04 +00:00 by github-bot · 3 comments
Owner

@⁠theappartment on GitHub · 2026-11-27 17:15 UTC · original

VICTORY_DUMP_TARGETS excludes non-finite RGB values from its statistics and preview. The decoder misclassifies some of those values as finite in DXGI formats 10 (R16G16B16A16_FLOAT) and 26 (R11G11B10_FLOAT). This can inflate the reported range or show invalid channels as bright pixels while diagnosing lighting.

A synthetic RGBA16F texel with RGB words 7c00 fc00 fe00 decodes as [NaN, -65536, -98304] on main. The expected values are [+inf, -inf, NaN]. A synthetic packed texel with R/G/B fields 0x7c0 / 0x7e0 / 0x3e0 decodes as [65536, 98304, 65536]. The expected values are [+inf, NaN, +inf].

I plan to fix the diagnostic decoder and add a synthetic regression covering both formats, including finite inputs. This change affects target dumps only.

Direct3D floating-point format rules

**@⁠theappartment** on GitHub · 2026-11-27 17:15 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/411) `VICTORY_DUMP_TARGETS` excludes non-finite RGB values from its statistics and preview. The decoder misclassifies some of those values as finite in DXGI formats 10 (`R16G16B16A16_FLOAT`) and 26 (`R11G11B10_FLOAT`). This can inflate the reported range or show invalid channels as bright pixels while diagnosing lighting. A synthetic RGBA16F texel with RGB words `7c00 fc00 fe00` decodes as `[NaN, -65536, -98304]` on main. The expected values are `[+inf, -inf, NaN]`. A synthetic packed texel with R/G/B fields `0x7c0 / 0x7e0 / 0x3e0` decodes as `[65536, 98304, 65536]`. The expected values are `[+inf, NaN, +inf]`. I plan to fix the diagnostic decoder and add a synthetic regression covering both formats, including finite inputs. This change affects target dumps only. [Direct3D floating-point format rules](https://learn.microsoft.com/en-us/windows/win32/direct3d11/floating-point-rules)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 17:21:04 +00:00
Author
Owner

@⁠theappartment on GitHub · 2026-11-27 17:15 UTC · original

/claim

**@⁠theappartment** on GitHub · 2026-11-27 17:15 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/411#issuecomment-7224207714) /claim
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-27 17:15 UTC · original

Claimed by @⁠theappartment. Open a draft pull request with Refs #411 in its description within 24 hours, or the claim expires.

**@⁠github-actions[bot]** on GitHub · 2026-11-27 17:15 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/411#issuecomment-7224211422) Claimed by @⁠theappartment. Open a draft pull request with `Refs #411` in its description within 24 hours, or the claim expires.
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-28 18:59 UTC · original

The claim by @⁠theappartment has expired: no pull request referenced it within 24 hours. This issue is free to claim.

**@⁠github-actions[bot]** on GitHub · 2026-11-28 18:59 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/411#issuecomment-7244202586) The claim by @⁠theappartment has expired: no pull request referenced it within 24 hours. This issue is free to claim.
This discussion has been locked. Commenting is limited to contributors.
No description provided.