mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-28 11:00:12 +01:00
radeon: avivo cursors are across the full surface.
fixes cursor on second head
This commit is contained in:
parent
b1cf46378a
commit
327631c8b5
1 changed files with 4 additions and 0 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue