Repository navigation
Present: configure HDR swapchain color space via SetColorSpace1 (#103) - #238
Closed
slopgobblercobbler wants to merge 1 commit into
Closed
slopgobblercobbler wants to merge 1 commit into
slopgobblercobbler wants to merge 1 commit into
Conversation
|
Test run and review of Tested
Review: two points I would want addressed before merging, both from reading the code
Smaller points:
Run and review by Claude Code (Claude Opus 5.5) on this machine; each point was checked against the code. |
Open
Collaborator
|
Closing in favor of #786 for the same HDR color-space work; it also handles restoring SDR color space after a format change. This work remains unmerged. Thank you for the contribution. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses #103 Item 3 (HDR color space configuration):
Configures appropriate DXGI color spaces on HDR swapchains instead of leaving them in default SDR G22/P709:
DXGI_FORMAT_R10G10B10A2_UNORM->DXGI_COLOR_SPACE_RGB_FULL_G2084_NONE_P2020(HDR10)DXGI_FORMAT_R16G16B16A16_FLOAT->DXGI_COLOR_SPACE_RGB_FULL_G10_NONE_P709(Linear FP16 scRGB)What is in it
crates/xcl/src/hle/d3d12x/present.rs:hdr_color_space(format)mapping.IDXGISwapChain3::SetColorSpace1inensure_swapchainon creation and resize.DXGI_ERROR_UNSUPPORTEDor query failure, without interrupting presentation.hdr_color_space_format_matchingandhdr_color_space_configuration.Tested
cargo test -p xcl -- present(5 passed, 0 failed).cargo test --workspace(604 passed, 0 failed).Not tested
AI use
author-hdr,verify-hdr). Verified and reviewed independently.