]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/external-libkmsxx.git/commitdiff
modedb: fix vrefresh for ilace
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 15 Aug 2016 09:09:07 +0000 (12:09 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 15 Aug 2016 09:28:04 +0000 (12:28 +0300)
kms++/src/modedb_cea.cpp
kms++/src/modedb_dmt.cpp

index a105dd8d24144d9d7b46088f4a22f40886413fc0..a99a612c3ad31a5d0fe1c28dc335e0932dc81b59 100644 (file)
@@ -42,7 +42,8 @@ namespace kms
        .name = nm, .clock = (c), \
        .hdisplay = (hd), .hsync_start = (hss), .hsync_end = (hse), .htotal = (ht), .hskew = (hsk), \
        .vdisplay = (vd), .vsync_start = (vss), .vsync_end = (vse), .vtotal = (vt), .vscan = (vs), \
-       .vrefresh = DIV_ROUND(c * 1000, ht * vt), .flags = (f), .type = 0
+       .vrefresh = DIV_ROUND(c * 1000, ht * vt) * (((f) & DRM_MODE_FLAG_INTERLACE) ? 2 : 1), \
+       .flags = (f), .type = 0
 
 /*
  * Probably taken from CEA-861 spec.
index e3f2ad5e60f1cd8f7baecfd6428bb476a3ec98ea..c3d542604ad5058883b8e2094feb8bb82aba75fd 100644 (file)
@@ -42,8 +42,8 @@ namespace kms
        .name = nm, .clock = (c), \
        .hdisplay = (hd), .hsync_start = (hss), .hsync_end = (hse), .htotal = (ht), .hskew = (hsk), \
        .vdisplay = (vd), .vsync_start = (vss), .vsync_end = (vse), .vtotal = (vt), .vscan = (vs), \
-       .vrefresh = DIV_ROUND(c * 1000, ht * vt), .flags = (f), .type = 0
-
+       .vrefresh = DIV_ROUND(c * 1000, ht * vt) * (((f) & DRM_MODE_FLAG_INTERLACE) ? 2 : 1), \
+       .flags = (f), .type = 0
 
 /*
  * Autogenerated from the DMT spec.