DGA - XDGAQueryModes returns verticalRefresh of 0.0
Submitted by James A Wright
Assigned to Xorg Project Team
Description
On some chipsets/displays XDGAQueryModes() returns modes with the verticalRefresh field set to 0. I think its due to an assigment in "xc/programs/Xserver/hw/xfree86/common/xf86DGA.c" which assumes that the DisplayMode.VRefresh holds the vertical refresh rate for this mode, which does not seem to always be the case. I have lifted some code from "xf86Mode.c" which does a better job of finding the vertical refresh rate, and put it into "xf86DGA.c" (see attached).
Version: 6.9.0