https://bugs.winehq.org/show_bug.cgi?id=54016
Bug ID: 54016 Summary: dwmapi:dwmapi fails on Windows 10 21H2+ and 11 Product: Wine Version: unspecified Hardware: x86-64 OS: Windows Status: NEW Severity: normal Priority: P2 Component: dwmapi Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com
dwmapi:dwmapi fails on Windows 10 21H2+ and 11:
dwmapi.c:75: Test failed: Got wrong monitor refresh rate 156250/10000000. dwmapi.c:78: Test failed: Got wrong composition rate 156250/10000000.
See https://test.winehq.org/data/patterns.html#dwmapi:dwmapi
Note that this already impacted w10pro64-rx550 when it was running 21H2. However the TestBot's plain QXL 21H2 and 22H2 VMs are not impacted despite having the same dwmapi.dll version. Also Windows 11's QXL test configuration is impacted too so it's not something specific to AMD / NVIDIA GPUs.
https://bugs.winehq.org/show_bug.cgi?id=54016
--- Comment #1 from François Gouget fgouget@codeweavers.com --- Note that with the AMD RX6600 and NVIDIA RTX3050 the values change a bit from one run to the next!
https://bugs.winehq.org/show_bug.cgi?id=54016
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jzeng@codeweavers.com Keywords| |source, testcase
https://bugs.winehq.org/show_bug.cgi?id=54016
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
https://bugs.winehq.org/show_bug.cgi?id=54016
--- Comment #2 from Jactry Zeng jactry92@gmail.com --- Hi Francois,
(In reply to François Gouget from comment #1)
Note that with the AMD RX6600 and NVIDIA RTX3050 the values change a bit from one run to the next!
Is there any rate that these dynamic refreshes are caused by the Windows feature named Variable Refresh Rate? Is there a way to disable[1] it on those test systems and run the test again to see if there are any differences? (I don't have a Windows machine that has NVIDIA/AMD GPU, so I can't test it myself. :( )
[1] https://www.tenforums.com/tutorials/133539-turn-off-variable-refresh-rate-ga...
https://bugs.winehq.org/show_bug.cgi?id=54016
--- Comment #3 from François Gouget fgouget@codeweavers.com --- Created attachment 73905 --> https://bugs.winehq.org/attachment.cgi?id=73905 No refresh rate shown for QXL
I have looked into the configuration and this confirmed that neither w11pro64_amd nor w11pro64_nv support Variable Refresh Rate. Their refresh rate is set to 60 Hz.
Also note that when I said the values change "a bit" from one run to the next it's really just a bit. Whereas they should be 166667 for 60Hz the test gets 166653, 166671, 166674, 166686, 166703, etc. So I think the driver is somehow 'measuring' the refresh rate and getting minor timing variance.
Another interesting point is that with QXL the Windows 11 parameters dialog does not report a refresh rate. But when checking the display adapter properties one can see that "List All Modes" shows all refresh rates as 64Hz which matches the 156250/10000000 value reported by the test, but also matches the duration of a standard timer tick!