Two planes: read sRGB planes as plain UNORM so the scene's bytes reach the screen unchanged #1668
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1668
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@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 UTCWhen 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.
a051f40705to95f6ef0f08@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