VideoOut tests: video_out_hdr_probe fails on Windows when the display is in HDR #8348
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Imported from boykopovar/AnyPS5. Originally posted by MayankManas on 2026-10-20T10:49:15Z.
What
video_out_hdr_probefails on Windows when the test window opens on a monitor that Windows is driving in HDR:The test (added in
4e27d8d75, #5697) expectsCurrentHostHdr()to read SDR, because it checks that a window without a Windows monitor report stays SDR while the surface offers HDR10. On Windows,HostHdrProbe::Pollreads 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):
offscreen(default)windows, display in HDR, NVIDIA GeForce RTX 5070 Ti (driver 617.42)windows, display in HDR, Intel UHD Graphics 770 (driver 32.0.101.7088)Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Release,
maine9cc4a8ef. The test,HostHdrProbe.cppand the CMake registration are unchanged onmain7d876ad3b.guest_video_out_hdrandvideo_out_hdr_presentpass 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