summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nv50_cursor.c
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2010-05-09 12:49:52 (GMT)
committerBen Skeggs <bskeggs@redhat.com>2010-05-28 06:06:17 (GMT)
commitb334f2b3b68c35fd86a0cbc90ecee40e63ba2f37 (patch)
tree75ba9d0586e32904632e8964da4d1f04223dae1a /drivers/gpu/drm/nouveau/nv50_cursor.c
parent893887ed75cacbfe1a855c63659838e0261d17e8 (diff)
downloadlinux-fsl-qoriq-b334f2b3b68c35fd86a0cbc90ecee40e63ba2f37.tar.xz
drm/nouveau: allow cursor image and position to survive suspend
- This isn't triggered yet on a normal kernel, because it still does a VT switch, but it seemed like a good idea to fix this now. Tested-by: Maxim Levitsky <maximlevitsky@gmail.com> Signed-off-by: Maarten Maathuis <madman2003@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv50_cursor.c')
-rw-r--r--drivers/gpu/drm/nouveau/nv50_cursor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_cursor.c b/drivers/gpu/drm/nouveau/nv50_cursor.c
index 753e723..03ad7ab 100644
--- a/drivers/gpu/drm/nouveau/nv50_cursor.c
+++ b/drivers/gpu/drm/nouveau/nv50_cursor.c
@@ -107,6 +107,7 @@ nv50_cursor_set_pos(struct nouveau_crtc *nv_crtc, int x, int y)
{
struct drm_device *dev = nv_crtc->base.dev;
+ nv_crtc->cursor_saved_x = x; nv_crtc->cursor_saved_y = y;
nv_wr32(dev, NV50_PDISPLAY_CURSOR_USER_POS(nv_crtc->index),
((y & 0xFFFF) << 16) | (x & 0xFFFF));
/* Needed to make the cursor move. */