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

Open
theappartment wants to merge 1 commit from upstream-pr/427 into main
theappartment commented 2026-11-27 17:46:18 +00:00 (Migrated from github.com)

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


Refs #426

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

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:5530873220 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/427). Originally posted by [theappartment](https://github.com/theappartment) on 2026-11-27T17:46:18Z. --- Refs #426 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)
Olima34 commented 2026-11-28 00:37:19 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


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.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:review:6094669919 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/427#pullrequestreview-6094669919). Originally posted by [Olima34](https://github.com/Olima34) on 2026-11-28T00:37:19Z. **Review:** CHANGES_REQUESTED --- 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 cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/427:upstream-pr/427'
git switch 'upstream-pr/427'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/427'
git switch 'upstream-pr/427'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/427'
git switch 'upstream-pr/427'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/427'
git switch 'main'
git merge --squash 'upstream-pr/427'
git switch 'main'
git merge --ff-only 'upstream-pr/427'
git switch 'main'
git merge 'upstream-pr/427'
git push origin 'main'
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!427
No description provided.