D3D12.X: preserve the sRGB base with linear overlays #2811
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2811
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2811"
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?
@CryingLaughing on GitHub · 2026-11-26 14:07 UTC · original
CryingLaughing:fix/present-primary-srgb-transfer→main· +215 −84 · 2 files · 4 commits · openStacked on #2763, which follows #2537. The top commit
96b0b189fd0a8991c8e7883823191cf54d896223is the change under review.An UNORM overlay could force an sRGB scene to be stored as linear bytes. The primary plane already selects the SDR swap-chain format. Use it to select the compositor’s output transfer too, and keep each input plane’s own SRV format.
What is in it
present.rs.Tested
96b0b189fd0a8991c8e7883823191cf54d896223, with #2763 head0d380f427797fb91a07512d074a5f6f4e1892674as its parent. RTX 4080 driver 621.01, Core i5-13600K, Windows 11 25H2 build 26200.9974, Rust 1.100.0 x64 MSVC and DXC 1.8.2502.11, debug.[128,55,0,255]. The native RTX 4080 fixture on the new production revision passed 1/0/0 with no capability skips over five offscreen cases. With an sRGB base and transparent UNORM overlay, it read[188,128,0,255]. A fractional overlay read[137,161,0,255]. The reverse case read[0,64,127,255]for the fractional sample. The BGRA case also passed.compositor_blends_ui_plane_over_scene_planetest passed 1/0/0.cargo build --workspace --locked -j 4succeeded.cargo test --workspace --locked -j 4 -- --test-threads=4 --show-outputreported 1,436 passed, 0 failed, 47 ignored across 37 harnesses. The pass count includes 29 capability skips.Regression run
Matched retail smoke runs on this head are pending.
Not tested
e8d2258c5a' into HEAD 2329a4de28View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.