gpu(native): decode RGB9E5 in HDR diagnostic dumps #431

Open
github-bot wants to merge 1 commit from github-bot/gh-427 into main AGit
Owner

@⁠theappartment on GitHub · 2026-11-27 17:46 UTC · original
theappartment:fix/rgb9e5-hdr-dumps-426 → main · +32 −8 · 2 files · 1 commits · open

Refs #430

Decode R9G9B9E5_SHAREDEXP with its shared exponent in VICTORY_TRACE_PASSES and VICTORY_DUMP_TARGETS. Both diagnostics now feed linear RGB to the existing HDR tone map. The synthetic regression checks channel order and covers minimum and maximum exponents.

Tests

  • The new regression fails on main and passes with this change.
  • The native Metal suite passed with tools/macos/test-native.sh --offline -j 4 -p victory-hle -p victory -p victory-gpu -p xtask. All 413 executed GPU tests passed.
  • The existing Metal resource test for sampling an RGB9E5 view passed.

Microsoft DirectXMath reference decoder

**@⁠theappartment** on GitHub · 2026-11-27 17:46 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/427) `theappartment:fix/rgb9e5-hdr-dumps-426` → `main` · +32 −8 · 2 files · 1 commits · open Refs #430 Decode `R9G9B9E5_SHAREDEXP` with its shared exponent in `VICTORY_TRACE_PASSES` and `VICTORY_DUMP_TARGETS`. Both diagnostics now feed linear RGB to the existing HDR tone map. The synthetic regression checks channel order and covers minimum and maximum exponents. ## Tests - The new regression fails on main and passes with this change. - The native Metal suite passed with `tools/macos/test-native.sh --offline -j 4 -p victory-hle -p victory -p victory-gpu -p xtask`. All 413 executed GPU tests passed. - The existing Metal resource test for sampling an RGB9E5 view passed. [Microsoft DirectXMath reference decoder](https://github.com/microsoft/DirectXMath/blob/main/Inc/DirectXPackedVector.inl#L1127-L1141)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 17:48:09 +00:00
Author
Owner

@⁠Olima34 on GitHub · 2026-11-28 00:37 UTC · original · requested changes

Thanks for this PR! We're helping the maintainer clear the queue tonight, and main has moved a lot (the preview branch landed as 86cefd22, then a batch of PRs; main is now a6a58361). This branch now conflicts with main in docs/native-host.md.

Could you merge current main into the branch (a merge commit is fine, no need to rebase) and resolve the conflict? It's only the docs paragraph. CI has not run on this PR yet (first-time contributor runs need approval); we'll approve the run once the branch is updated. Once GitHub shows it as mergeable and CI is green on the new head, we'll read it through and merge it if it holds up.

**@⁠Olima34** on GitHub · 2026-11-28 00:37 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/427#pullrequestreview-6094669919) · **requested changes** Thanks for this PR! We're helping the maintainer clear the queue tonight, and main has moved a lot (the preview branch landed as 86cefd22, then a batch of PRs; main is now a6a58361). This branch now conflicts with main in `docs/native-host.md`. Could you merge current `main` into the branch (a merge commit is fine, no need to rebase) and resolve the conflict? It's only the docs paragraph. CI has not run on this PR yet (first-time contributor runs need approval); we'll approve the run once the branch is updated. Once GitHub shows it as mergeable and CI is green on the new head, we'll read it through and merge it if it holds up.
This pull request has changes conflicting with the target branch.
  • docs/native-host.md
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-427'
git switch 'github-bot/gh-427'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-427'
git switch 'github-bot/gh-427'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-427'
git switch 'main'
git merge --squash 'github-bot/gh-427'
git switch 'main'
git merge --ff-only 'github-bot/gh-427'
git switch 'main'
git merge 'github-bot/gh-427'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.