Two planes: read sRGB planes as plain UNORM so the scene's bytes reach the screen unchanged #1668

Manually merged
github merged 4 commits from github-bot/gh-1668 into main 2026-11-29 08:21:28 +00:00 AGit
Owner

@⁠101Leafy on GitHub · 2026-11-28 23:14 UTC · original
101Leafy:nv/planes-unorm → main · +22 −20 · 11 files · 4 commits · merged 2026-11-29 08:16 UTC

When a present has two planes, the composer picked a shader view for each plane that kept a typed resource's own format. For the sRGB formats (29 and 91) that meant the sampler decoded the bytes to linear before they were drawn into the back buffer, which a one-plane present never does, since its copy takes the bytes as they are.

Now sRGB planes are viewed as plain R8G8B8A8_UNORM or B8G8R8A8_UNORM, so the composed picture carries the same bytes as a one-plane present would. Other formats are viewed as before. This is a plain fix to what reaches the screen, so there is no switch.

**@⁠101Leafy** on GitHub · 2026-11-28 23:14 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1668) `101Leafy:nv/planes-unorm` → `main` · +22 −20 · 11 files · 4 commits · merged 2026-11-29 08:16 UTC When a present has two planes, the composer picked a shader view for each plane that kept a typed resource's own format. For the sRGB formats (29 and 91) that meant the sampler decoded the bytes to linear before they were drawn into the back buffer, which a one-plane present never does, since its copy takes the bytes as they are. Now sRGB planes are viewed as plain R8G8B8A8_UNORM or B8G8R8A8_UNORM, so the composed picture carries the same bytes as a one-plane present would. Other formats are viewed as before. This is a plain fix to what reaches the screen, so there is no switch.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 23:19:04 +00:00
github-bot force-pushed github-bot/gh-1668 from a051f40705 to 95f6ef0f08 2026-11-29 01:46:23 +00:00 Compare
Author
Owner

@⁠nick0451 on GitHub · 2026-11-29 02:46 UTC · original

Tested together with #1709 on an RTX 3090: no effect in this setup, because both planes are format 28 (R8G8B8A8_UNORM), not sRGB 29/91. Details and numbers in #1709 (latest comment). It runs cleanly, with no crash and no speed change.

🤖 Generated with Claude Code

**@⁠nick0451** on GitHub · 2026-11-29 02:46 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1668#issuecomment-7249638800) Tested together with #1709 on an RTX 3090: no effect in this setup, because both planes are format 28 (R8G8B8A8_UNORM), not sRGB 29/91. Details and numbers in https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/1709 (latest comment). It runs cleanly, with no crash and no speed change. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github manually merged commit e78b7e30ad into main 2026-11-29 08:21:28 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!1668
No description provided.