gpu(native): decode non-finite values in HDR dumps #417

Manually merged
github merged 1 commit from github-bot/gh-413 into main 2026-11-28 01:59:26 +00:00 AGit
Owner

@⁠theappartment on GitHub · 2026-11-27 17:20 UTC · original
theappartment:fix/hdr-target-dump-floats-411 → main · +31 −3 · 1 files · 1 commits · merged 2026-11-28 01:57 UTC

Refs #415

Preserve infinities and NaNs when decoding RGBA16F and R11G11B10F in VICTORY_DUMP_TARGETS, so the existing non-finite filter excludes them from the preview and statistics. Adds a synthetic regression for both formats, including normal and subnormal finite values. The change is limited to diagnostic target dumps.

Tests

  • The new regression fails on upstream main and passes with the fix.
  • tools/macos/test-native.sh --offline -j 4 -p victory-hle -p victory -p victory-gpu -p xtask passed on arm64 macOS with Metal. victory-gpu: 413 passed, 6 ignored.
  • Windows-target workspace Clippy with -D warnings and cargo xtask policy passed.
  • No game run was needed for this synthetic regression.
**@⁠theappartment** on GitHub · 2026-11-27 17:20 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/413) `theappartment:fix/hdr-target-dump-floats-411` → `main` · +31 −3 · 1 files · 1 commits · merged 2026-11-28 01:57 UTC Refs #415 Preserve infinities and NaNs when decoding RGBA16F and R11G11B10F in `VICTORY_DUMP_TARGETS`, so the existing non-finite filter excludes them from the preview and statistics. Adds a synthetic regression for both formats, including normal and subnormal finite values. The change is limited to diagnostic target dumps. ## Tests - The new regression fails on upstream `main` and passes with the fix. - `tools/macos/test-native.sh --offline -j 4 -p victory-hle -p victory -p victory-gpu -p xtask` passed on arm64 macOS with Metal. `victory-gpu`: 413 passed, 6 ignored. - Windows-target workspace Clippy with `-D warnings` and `cargo xtask policy` passed. - No game run was needed for this synthetic regression.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 17:21:08 +00:00
github manually merged commit 2068a30b40 into main 2026-11-28 01:59:26 +00:00
Author
Owner

@⁠Olima34 on GitHub · 2026-11-28 01:57 UTC · original · approved these changes

Check report (helping the maintainer clear the queue):

  • CI: check and macos-scripts green on the current head.
  • Read: the whole diff. The HDR dump decoder now gives ±infinity and NaN for exponent 31 in both half floats and the 11/10-bit floats (before, a half infinity read as NaN, and R11G11B10 non-finite values as large numbers). A test covers both formats. Diagnostics only (the target dumps).
  • Local check: current main (6f95c132) merged with #507, #417 and #439. On it, the victory-gpu (arm64) and victory tests pass, as do Windows clippy (-D warnings) and cargo xtask policy. One victory-gpu run in three failed main's own multi_mip_array_and_placed_depth_twins_preserve_all_subresources_and_remirror_immediately, a test that also flakes on main alone.
  • Not checked: no game run (the maintainer asked us to work on GitHub only).

Thanks @⁠theappartment!

**@⁠Olima34** on GitHub · 2026-11-28 01:57 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/413#pullrequestreview-6095056336) · **approved these changes** Check report (helping the maintainer clear the queue): - **CI:** `check` and `macos-scripts` green on the current head. - **Read:** the whole diff. The HDR dump decoder now gives ±infinity and NaN for exponent 31 in both half floats and the 11/10-bit floats (before, a half infinity read as NaN, and R11G11B10 non-finite values as large numbers). A test covers both formats. Diagnostics only (the target dumps). - **Local check:** current main (6f95c132) merged with #507, #417 and #439. On it, the `victory-gpu` (arm64) and `victory` tests pass, as do Windows clippy (`-D warnings`) and `cargo xtask policy`. One `victory-gpu` run in three failed main's own `multi_mip_array_and_placed_depth_twins_preserve_all_subresources_and_remirror_immediately`, a test that also flakes on main alone. - **Not checked:** no game run (the maintainer asked us to work on GitHub only). Thanks @⁠theappartment!
This discussion has been locked. Commenting is limited to contributors.
No description provided.