Two planes: read sRGB planes as plain UNORM so the scene's bytes reach the screen unchanged #1668
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1668"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 101Leafy on 2026-11-28T23:14:04Z.
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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nick0451 on 2026-11-29T02:46:29Z.
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://github.com/trustno1-coder/VIctory-NVIDIA/pull/1709 (latest comment). It runs cleanly, with no crash and no speed change.
🤖 Generated with Claude Code