projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1cf463
)
radeon: avivo cursors are across the full surface.
author
Dave Airlie
<airlied@redhat.com>
Mon, 10 Nov 2008 05:35:34 +0000
(15:35 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Mon, 10 Nov 2008 05:35:34 +0000
(15:35 +1000)
fixes cursor on second head
linux-core/radeon_cursor.c
patch
|
blob
|
history
diff --git
a/linux-core/radeon_cursor.c
b/linux-core/radeon_cursor.c
index
d352d10
..
fbd4143
100644
(file)
--- a/
linux-core/radeon_cursor.c
+++ b/
linux-core/radeon_cursor.c
@@
-204,6
+204,10
@@
int radeon_crtc_cursor_move(struct drm_crtc *crtc,
radeon_lock_cursor(crtc, true);
if (radeon_is_avivo(dev_priv)) {
+ /* avivo cursor 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);
RADEON_WRITE(AVIVO_D1CUR_POSITION + radeon_crtc->crtc_offset,
((xorigin ? 0: x) << 16) |
(yorigin ? 0 : y));