Skip to content

XDisplay: answer XDisplayTryEnableHdrMode on its own CLSID - #1069

Closed
icedream wants to merge 1 commit into
xcl-dev:mainfrom
icedream:xdisplay-hdr
Closed

icedream wants to merge 1 commit into
xcl-dev:mainfrom
icedream:xdisplay-hdr

Conversation

@icedream

@icedream icedream commented Nov 24, 2026 •

Copy link
Copy Markdown

What is in it

  • A class for CLSID 03f0fe74-fdd9-4e5c-b630-f9339c47acc5 / IID 35f07670-706e-4bfb-9476-090798c5ebf3, which is where gdk_table.rs puts XDisplayTryEnableHdrMode (version 4). XCL had no object on that CLSID: XDISPLAY (1b339674-328d-4283-a200-3171f18d3639) carries XLaunchUri and the two timeout deferrals, so QueryApiImpl went through pc_object, found nothing, and answered REGDB_E_CLASSNOTREG with XDisplay: missing in the log.
  • That one call returns XDisplayHdrModeResult::Disabled (2) and leaves the _Out_opt_ XDisplayHdrModeInfo (three floats, written only when HDR is on) untouched, which is the outcome the GDK header gives for a display that does not carry HDR. XCL shows the title in an SDR swap chain, so Enabled would claim an output mode the host window does not have.

The retail title below asks at t=1.5 s, before its first frame, and carries on either way: the difference in the log is the answer line. It was the last GDK call in that title's boot that XCL answered missing.

Tested

  • hardware (GPU + driver, CPU), Rust version, debug / release: AMD Radeon RX 7700S, driver 32.0.32029.2010 dated 2026-11-18; AMD Ryzen 9 7940HS; Windows 11 Pro 10.0.26200; cargo 1.100.0 (3acc79c0c 2026-11-05), x86_64-pc-windows-gnu; release for the regression runs, the suite in the default profile
  • cargo test --workspace -- --test-threads=4: 727 passed, 0 failed, 41 ignored (SKIPPED GPU tests: none, the suite ran against the RX 7700S; the 41 are #[ignore] benches and probes). cargo build --workspace first, otherwise e2e::test_title_runs_and_game_folder_is_untouched fails on its own "build first" assert.

Regression run

main:

xcl-smoke v1
commit: 6efdabcdaac93ce5cc123a85e85deba5d49cb294
gpu: AMD Radeon(TM) RX 7700S
title: 2c508222
seconds: 120
exit: 0x0
frames shown: 3374 (PresentX 3375)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14948 MB

PR:

xcl-smoke v1
commit: 2a0123cfbc6f09089f7652b20ffca554418eff30
gpu: AMD Radeon(TM) RX 7700S
title: 2c508222
seconds: 120
exit: 0x0
frames shown: 3261 (PresentX 3261)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14949 MB

Same title, same 120 s, head 2a0123c with a clean tree: 3261 of 3374 frames (97 %), peak commit unchanged, no device removal, no crash. The two log lines either side of the change:

main: [    1.633][10576][INFO ] XGameRuntime: QueryApiImpl 03f0fe74-fdd9-4e5c-b630-f9339c47acc5/35f07670-706e-4bfb-9476-090798c5ebf3 -> XDisplay: missing
PR:   [    1.524][ 3276][INFO ] XGameRuntime: QueryApiImpl 03f0fe74-fdd9-4e5c-b630-f9339c47acc5/35f07670-706e-4bfb-9476-090798c5ebf3 -> XDisplay (HDR): XCL

Not tested

  • A title that will not run without HDR. The answer is a fixed Disabled; XCL still has no HDR path in its swap chain, so this stops the class being unregistered, it does not make HDR work.
  • Other titles: the regression runs are the one retail title above. Other APIs that could sit on this CLSID past version 4: gdk_table.rs has exactly one entry for 03f0fe74-…, so the class implements that one and nothing else, and a title asking for more gets the same missing as before.
  • RDNA4: the runs are on RDNA3.

AI use

  • Pi coding agent. The patch, the builds and both regression runs were driven by a self-hosted local model (Strata, Qwen 3.8 Flash Next IQ3_S); a cloud Claude Sonnet 5.5 subagent searched XCL's tracker and source for earlier work on this API and found none. Human reviewed the diff and the log evidence.

@icedream icedream closed this Nov 24, 2026
@icedream

Copy link
Copy Markdown
Author

Closing on AI model requirements, seems like a non-discussion point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant