MetaMonitorManagerKms: stop accounting for mode flags in refresh rates

This isn't technically needed and, in fact, makes us default to
interlaced modes in some cases which isn't desirable.

Note that X doesn't account for these flags either for its mode
refresh rates.

https://bugzilla.gnome.org/show_bug.cgi?id=772176
This commit is contained in:
Rui Matos 2016-10-06 15:57:01 +02:00
parent f1850e0d61
commit a50950cf8f

View File

@ -410,10 +410,6 @@ drm_mode_vrefresh (const drmModeModeInfo *mode)
refresh = (mode->clock * 1000000LL) / mode->htotal;
refresh += (mode->vtotal / 2);
refresh /= mode->vtotal;
if (mode->flags & DRM_MODE_FLAG_INTERLACE)
refresh *= 2;
if (mode->flags & DRM_MODE_FLAG_DBLSCAN)
refresh /= 2;
if (mode->vscan > 1)
refresh /= mode->vscan;
refresh /= 1000.0;