summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2009-02-27 14:25:47 +0100
committerMaarten Maathuis <madman2003@gmail.com>2009-02-27 14:25:47 +0100
commitc921f402b743e12e19e0816bde7917953352d921 (patch)
tree6941f42e53297712d16d4be96826588eae9ba16f
parent86a5f08fdb79a956f76ca5cbf1c762762b1b243f (diff)
nv50/kms: fix crtc timings to match ddx
-rw-r--r--linux-core/nv50_crtc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux-core/nv50_crtc.c b/linux-core/nv50_crtc.c
index 37b0555e..7e8f0ada 100644
--- a/linux-core/nv50_crtc.c
+++ b/linux-core/nv50_crtc.c
@@ -86,10 +86,10 @@ static int nv50_crtc_execute_mode(struct nv50_crtc *crtc)
hsync_start_to_end = mode->htotal - mode->hsync_start;
vsync_start_to_end = mode->vtotal - mode->vsync_start;
/* I can't give this a proper name, anyone else can? */
- hunk1 = mode->htotal - mode->hsync_start + mode->hdisplay + 1;
- vunk1 = mode->vtotal - mode->vsync_start + mode->vdisplay + 1;
+ hunk1 = mode->htotal - mode->hsync_start + mode->hdisplay;
+ vunk1 = mode->vtotal - mode->vsync_start + mode->vdisplay;
/* Another strange value, this time only for interlaced modes. */
- vunk2a = 2*mode->vtotal - mode->vsync_start + mode->vdisplay + 1;
+ vunk2a = 2*mode->vtotal - mode->vsync_start + mode->vdisplay;
vunk2b = mode->vtotal - mode->vsync_start + mode->vtotal;
if (mode->flags & DRM_MODE_FLAG_INTERLACE) {