VideoOut tests: video_out_hdr_probe fails on Windows when the display is in HDR #8348

Closed
opened 2026-10-20 10:49:15 +00:00 by MayankManas · 0 comments
MayankManas commented 2026-10-20 10:49:15 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MayankManas on 2026-10-20T10:49:15Z.


What

video_out_hdr_probe fails on Windows when the test window opens on a monitor that Windows is driving in HDR:

[videoout] HDR output available: peak 650.0 nits, full frame 370.0 nits, black 0.0050 nits
FAIL: a window without a Windows HDR monitor report reads as HDR although only the surface offers HDR10 (driver windows)

The test (added in 4e27d8d75, #5697) expects CurrentHostHdr() to read SDR, because it checks that a window without a Windows monitor report stays SDR while the surface offers HDR10. On Windows, HostHdrProbe::Poll reads the monitor through DXGI (IDXGIOutput6::GetDesc1, DXGI_COLOR_SPACE_RGB_FULL_G2084_NONE_P2020). On a display in HDR mode, that report exists and says HDR, so the probe is right and the test's precondition does not hold.

CI does not see it: with the default ANYPS5_VIDEO_OUT_TEST_DRIVER=offscreen, the window has no monitor, and the test passes.

Reproduce

Windows 11 with HDR on for the display ("Use HDR" in Settings > Display):

cmake -S . -B build -DANYPS5_VIDEO_OUT_TEST_DRIVER=windows
ctest --test-dir build -R '^video_out_hdr_probe$' -V
Configuration Result
offscreen (default) passes
windows, display in HDR, NVIDIA GeForce RTX 5070 Ti (driver 617.42) fails
windows, display in HDR, Intel UHD Graphics 770 (driver 32.0.101.7088) fails

Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Release, main e9cc4a8ef. The test, HostHdrProbe.cpp and the CMake registration are unchanged on main 7d876ad3b. guest_video_out_hdr and video_out_hdr_present pass on the same display.

Expected

The test checks the non-Windows path, or skips when the window's monitor has a Windows HDR report, instead of failing on a correctly detected HDR display.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5940342822 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/8348). Originally posted by [MayankManas](https://github.com/MayankManas) on 2026-10-20T10:49:15Z. --- ### What `video_out_hdr_probe` fails on Windows when the test window opens on a monitor that Windows is driving in HDR: ``` [videoout] HDR output available: peak 650.0 nits, full frame 370.0 nits, black 0.0050 nits FAIL: a window without a Windows HDR monitor report reads as HDR although only the surface offers HDR10 (driver windows) ``` The test (added in 4e27d8d75, #5697) expects `CurrentHostHdr()` to read SDR, because it checks that a window *without* a Windows monitor report stays SDR while the surface offers HDR10. On Windows, `HostHdrProbe::Poll` reads the monitor through DXGI (`IDXGIOutput6::GetDesc1`, `DXGI_COLOR_SPACE_RGB_FULL_G2084_NONE_P2020`). On a display in HDR mode, that report exists and says HDR, so the probe is right and the test's precondition does not hold. CI does not see it: with the default `ANYPS5_VIDEO_OUT_TEST_DRIVER=offscreen`, the window has no monitor, and the test passes. ### Reproduce Windows 11 with HDR on for the display ("Use HDR" in Settings > Display): ``` cmake -S . -B build -DANYPS5_VIDEO_OUT_TEST_DRIVER=windows ctest --test-dir build -R '^video_out_hdr_probe$' -V ``` | Configuration | Result | |---|---| | `offscreen` (default) | passes | | `windows`, display in HDR, NVIDIA GeForce RTX 5070 Ti (driver 617.42) | fails | | `windows`, display in HDR, Intel UHD Graphics 770 (driver 32.0.101.7088) | fails | Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Release, `main` e9cc4a8ef. The test, `HostHdrProbe.cpp` and the CMake registration are unchanged on `main` 7d876ad3b. `guest_video_out_hdr` and `video_out_hdr_present` pass on the same display. ### Expected The test checks the non-Windows path, or skips when the window's monitor has a Windows HDR report, instead of failing on a correctly detected HDR display. AI-assisted: yes
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#8348
No description provided.