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

Merged
theappartment merged 1 commit from upstream-pr/413 into main 2026-11-28 01:57:41 +00:00
theappartment commented 2026-11-27 17:20:03 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by theappartment on 2026-11-27T17:20:03Z.


Refs #411

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.
<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:5530563222 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/413). Originally posted by [theappartment](https://github.com/theappartment) on 2026-11-27T17:20:03Z. --- Refs #411 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.
Olima34 commented 2026-11-28 01:57:37 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-28T01:57:37Z.

Review: APPROVED


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 #503, #413 and #435. 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!

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:review:6095056336 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/413#pullrequestreview-6095056336). Originally posted by [Olima34](https://github.com/Olima34) on 2026-11-28T01:57:37Z. **Review:** APPROVED --- 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 #503, #413 and #435. 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!
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
LakshanSivakumar/Native-Victory-macOS!413
No description provided.