[mutter] MetaMonitorManagerKms: stop accounting for mode flags in refresh rates



commit a50950cf8f9a7dc7e0a78761068c0a07b2261080
Author: Rui Matos <tiagomatos gmail com>
Date:   Thu Oct 6 15:57:01 2016 +0200

    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

 src/backends/native/meta-monitor-manager-kms.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/src/backends/native/meta-monitor-manager-kms.c b/src/backends/native/meta-monitor-manager-kms.c
index 75d417d..6ac78b4 100644
--- a/src/backends/native/meta-monitor-manager-kms.c
+++ b/src/backends/native/meta-monitor-manager-kms.c
@@ -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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]