Repository navigation
D3D12.X: encode sRGB compositor output for presentation - #2763
CryingLaughing wants to merge 3 commits into
Conversation
|
I verified a follow-up for the mixed-format case described above. Commit
RTX 4080 driver 621.01, i5-13600K, Windows 11 25H2 build 26200.9974, Rust 1.100.0 x64 MSVC and DXC 1.8.2502.11. The native test was |
|
Regression run of Setup: RTX 3060 12 GB (NVIDIA 581.80), i9-14900KF, Windows 11 26200, release builds of main main: this PR, second run (the first had 1481 frames and peak commit 23754 MB): 94 % of main's frames, 120 % of its peak commit (124 % in the first run). Peak commit varies on this title: on the same machine today, other builds whose runtime matches main or an older main peaked at 17.4–21.1 GB, so this may be noise, but both runs of this head are above all of those. Not tested: the suite on this head; the colours on screen; AMD. AI use: Claude Code (Claude Opus 5.5) ran these runs on this machine and wrote this report. |
|
Physical RX 9070 offscreen readback under Wine confirms the all-sRGB blend case, using a test-only hardware-adapter overlay. Tested
Both input planes are RGBA8 sRGB in this case. The pixels below were identical in all three repetitions:
The UNORM case produced its expected transparent, opaque and fractional-alpha pixels on every revision. The opaque sRGB UI pixel was Not tested The unmodified WARP fixtures, mixed sRGB/UNORM inputs, BGRA/HDR, physical display output, retail smoke, full workspace suite, or performance. This is offscreen synthetic coverage with a documented test overlay. AI use OpenAI Codex (GPT-6; exact serving variant not exposed) reviewed the changes, prepared the test-only overlay, ran and checked the comparisons, and drafted this report. Publication authorized by the account owner. |
|
@CryingLaughing the PR description check fails on #2763, #2805, #2806, #2807, #2808, #2809, #2810 and #2812 with AI-assisted (Claude Code, Claude Sonnet 5.5). |
Stacked on #2537. The follow-up is
0d380f427797fb91a07512d074a5f6f4e1892674, verified withb49be1836844fe0b0cdb3211dce3cb7fb4e21ac7and the exact #2537 heade8d2258c5af20f108770ad8e0e983e9ecba8581eas its integration base. Part of #2456.With concrete sRGB SRVs, the compositor reads linear values. An ordinary UNORM render target then stores those values directly, making midtones too dark on the SDR swap chain.
What is in it
Tested
Windows 11 25H2 build 26200.9974, Intel Core i5-13600K, RTX 4080 driver 621.01, Rust 1.100.0 x64 MSVC, and DXC 1.8.2502.11.
cargo test -p xcl --lib --locked -j 4 compositor_blends_ui_plane_over_scene_plane -- --show-output --test-threads=1passed 1/1 on this head using an offscreen RGBA8 target on WARP. The same fixture on the integration base failed at the intended assertion. The transparent pixel was[128, 55, 0, 255]before the fix and matched[188, 128, 0, 255]afterward.cargo build --workspace --locked -j 4passed. The four-thread workspace run stopped in the library harness ata_dispatch_with_a_pipeline_still_building_waits_at_the_submitwith 1,309 passed, 1 failed, and 27 ignored. The compositor regression passed in that run. 25 capability skips were logged before it stopped.The serial repeat,
cargo test --workspace --locked -j 4 -- --test-threads=1 --show-output, finished with 1,436 passed, 0 failed, and 47 ignored across 37 harnesses. The pass count includes 29 capability skips.The independent RX 9070 Wine comparison verified the all-sRGB result in 3/3 fresh head processes. The same hardware-selection test overlay passed 0/3 on
mainand 0/3 on the D3D12.X: preserve concrete sRGB plane formats in PresentX compositor SRVs #2537 integration base. The corrected fractional-alpha pixel was[137,161,0,255].Regression run
Independent report by Anon64 on RTX 3060 12 GB, driver 581.80, Core i9-14900KF, and Windows 11 build 26200. Both release builds used the same retail title for 60 seconds. The head showed 94.1% of the paired main run’s frames and 119.8% of its peak commit, with zero crashes and device removals. A later main run peaked at 23,242 MB, showing run-to-run memory variation.
main:
PR:
Known limitation
[128, 55, 0, 255]with a transparent UNORM UI plane over an sRGB scene. The expected pixel was[188, 128, 0, 255].Not tested