aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2010-02-23 13:12:43 -0500
committerDave Airlie <airlied@redhat.com>2010-02-24 20:29:56 -0500
commit22e6dd7e700111c1aa49581d27f2b349cbc798dd (patch)
tree1da1e92fb0570415e44c21226d7765ab9b44630d /drivers/gpu/drm/radeon
parentaa5120d2ef228042416d3023fb7eda9ee487dcf9 (diff)
drm/radeon/kms/evergreen: fix typo in cursor code
cursor x/y are surface relative. fixes fdo bug 26551 Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon')
-rw-r--r--drivers/gpu/drm/radeon/radeon_cursor.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_cursor.c b/drivers/gpu/drm/radeon/radeon_cursor.c
index 9514f327535..7ecf5e1b39c 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,
219 219
220 radeon_lock_cursor(crtc, true); 220 radeon_lock_cursor(crtc, true);
221 if (ASIC_IS_DCE4(rdev)) { 221 if (ASIC_IS_DCE4(rdev)) {
222 /* cursors are offset into the total surface */
223 x += crtc->x;
224 y += crtc->y;
225 DRM_DEBUG("x %d y %d c->x %d c->y %d\n", x, y, crtc->x, crtc->y);
226
222 /* XXX: check if evergreen has the same issues as avivo chips */ 227 /* XXX: check if evergreen has the same issues as avivo chips */
223 WREG32(EVERGREEN_CUR_POSITION + radeon_crtc->crtc_offset, 228 WREG32(EVERGREEN_CUR_POSITION + radeon_crtc->crtc_offset,
224 ((xorigin ? 0 : x) << 16) | 229 ((xorigin ? 0 : x) << 16) |