summaryrefslogtreecommitdiff
path: root/src/evergreen_accel.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2011-08-03 16:20:13 -0400
committerAlex Deucher <alexdeucher@gmail.com>2011-08-03 16:20:13 -0400
commit3b9fdc807dd7e52af0576299cefba596040f6f2f (patch)
treeffb65ece888a3b877d07f7fef27040e8437df7cf /src/evergreen_accel.c
parent104b2d7c071f29266b1bc4184a74e9714d14febc (diff)
r5xx+: Fix vline setup with crtc offsets
On r5xx+, vline is relative to to the viewport, not the scanlines. Based on initial patch and investigation from Herbert Pƶtzl (Bertl) on IRC. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Diffstat (limited to 'src/evergreen_accel.c')
-rw-r--r--src/evergreen_accel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/evergreen_accel.c b/src/evergreen_accel.c
index f4c70c7d..5c95e201 100644
--- a/src/evergreen_accel.c
+++ b/src/evergreen_accel.c
@@ -312,6 +312,10 @@ void evergreen_cp_wait_vline_sync(ScrnInfoPtr pScrn, PixmapPtr pPix,
if (start > crtc->mode.VDisplay)
return;
+ /* on r5xx+ vline starts at viewport_y */
+ start += crtc->y;
+ stop += crtc->y;
+
BEGIN_BATCH(11);
/* set the VLINE range */
EREG(EVERGREEN_VLINE_START_END, /* this is just a marker */