diff options
author | Dave Airlie <airlied@linux.ie> | 2008-05-07 02:30:28 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2008-05-07 02:30:28 +1000 |
commit | ffc437f3606ab8ceba1ff152e4bb08988a58b54c (patch) | |
tree | 5be422fd8b4bc85b92aa216a7b692d184bc3187a | |
parent | e36ef14e3a1087e1fe41baa26ade2937f396001f (diff) |
avivo: fix zaphod cursor in theory
-rw-r--r-- | src/radeon_cursor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/radeon_cursor.c b/src/radeon_cursor.c index 983aefb7..42f9a85d 100644 --- a/src/radeon_cursor.c +++ b/src/radeon_cursor.c @@ -92,6 +92,7 @@ static void avivo_setup_cursor(xf86CrtcPtr crtc, Bool enable) { + ScrnInfoPtr pScrn = crtc->scrn; RADEONCrtcPrivatePtr radeon_crtc = crtc->driver_private; RADEONInfoPtr info = RADEONPTR(crtc->scrn); unsigned char *RADEONMMIO = info->MMIO; @@ -100,7 +101,7 @@ avivo_setup_cursor(xf86CrtcPtr crtc, Bool enable) if (enable) { OUTREG(AVIVO_D1CUR_SURFACE_ADDRESS + radeon_crtc->crtc_offset, - info->fbLocation + radeon_crtc->cursor_offset); + info->fbLocation + radeon_crtc->cursor_offset + pScrn->fbOffset); OUTREG(AVIVO_D1CUR_SIZE + radeon_crtc->crtc_offset, ((CURSOR_WIDTH - 1) << 16) | (CURSOR_HEIGHT - 1)); OUTREG(AVIVO_D1CUR_CONTROL + radeon_crtc->crtc_offset, |