diff mbox

drm/radeon/kms/evergreen: fix typo in cursor code

Message ID a728f9f91002231016n7f5536adv92c431e55e0bb152@mail.gmail.com (mailing list archive)
State Accepted
Headers show

Commit Message

Alex Deucher Feb. 23, 2010, 6:16 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/gpu/drm/radeon/radeon_cursor.c
b/drivers/gpu/drm/radeon/radeon_cursor.c
index 9514f32..7ecf5e1 100644
--- a/drivers/gpu/drm/radeon/radeon_cursor.c
+++ b/drivers/gpu/drm/radeon/radeon_cursor.c
@@ -219,6 +219,11 @@  int radeon_crtc_cursor_move(struct drm_crtc *crtc,

 	radeon_lock_cursor(crtc, true);
 	if (ASIC_IS_DCE4(rdev)) {
+		/* cursors are offset into the total surface */
+		x += crtc->x;
+		y += crtc->y;
+		DRM_DEBUG("x %d y %d c->x %d c->y %d\n", x, y, crtc->x, crtc->y);
+
 		/* XXX: check if evergreen has the same issues as avivo chips */
 		WREG32(EVERGREEN_CUR_POSITION + radeon_crtc->crtc_offset,
 		       ((xorigin ? 0 : x) << 16) |