[pkg-fso-commits] [SCM] xf86-video-glamo, SMedia Glamo video driver for X.Org branch, master, updated. upstream/0.0.0+20091108.git9918e082-8-g16af3c0
Thomas White
taw at bitwiz.org.uk
Sun Mar 6 09:14:09 UTC 2011
The following commit has been merged in the master branch:
commit 77b6d1b7363d3ff28f063ed92c9ed47194f70b20
Author: Thomas White <taw at bitwiz.org.uk>
Date: Mon Mar 8 23:17:28 2010 +0100
Translate KMS pixel clock values -> X values
There's a factor of 1000 difference, which seems to confuse X
and prevent switching of resolution without general carnage.
diff --git a/src/glamo-kms-crtc.c b/src/glamo-kms-crtc.c
index fdf0e9f..e00c41e 100644
--- a/src/glamo-kms-crtc.c
+++ b/src/glamo-kms-crtc.c
@@ -119,7 +119,7 @@ static void crtc_mode_set(xf86CrtcPtr crtc, DisplayModePtr mode,
drmModeCrtcPtr drm_crtc = crtcp->drm_crtc;
drmModeModeInfo drm_mode;
- drm_mode.clock = mode->Clock;
+ drm_mode.clock = mode->Clock * 1000.0;
drm_mode.hdisplay = mode->HDisplay;
drm_mode.hsync_start = mode->HSyncStart;
drm_mode.hsync_end = mode->HSyncEnd;
diff --git a/src/glamo-kms-output.c b/src/glamo-kms-output.c
index 7b9f997..1f67eb0 100644
--- a/src/glamo-kms-output.c
+++ b/src/glamo-kms-output.c
@@ -152,7 +152,7 @@ static DisplayModePtr get_modes(xf86OutputPtr output)
if (!mode)
continue;
mode->type = 0;
- mode->Clock = drm_mode->clock;
+ mode->Clock = drm_mode->clock / 1000.0;
mode->HDisplay = drm_mode->hdisplay;
mode->HSyncStart = drm_mode->hsync_start;
mode->HSyncEnd = drm_mode->hsync_end;
--
xf86-video-glamo, SMedia Glamo video driver for X.Org
More information about the pkg-fso-commits
mailing list