summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nv04_cursor.c
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2010-05-09 14:49:52 +0200
committerBen Skeggs <bskeggs@redhat.com>2010-05-28 16:06:17 +1000
commitb334f2b3b68c35fd86a0cbc90ecee40e63ba2f37 (patch)
tree75ba9d0586e32904632e8964da4d1f04223dae1a /drivers/gpu/drm/nouveau/nv04_cursor.c
parent893887ed75cacbfe1a855c63659838e0261d17e8 (diff)
downloadlinux-b334f2b3b68c35fd86a0cbc90ecee40e63ba2f37.tar.gz
linux-b334f2b3b68c35fd86a0cbc90ecee40e63ba2f37.tar.bz2
linux-b334f2b3b68c35fd86a0cbc90ecee40e63ba2f37.zip
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/nv04_cursor.c')
-rw-r--r--drivers/gpu/drm/nouveau/nv04_cursor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nv04_cursor.c b/drivers/gpu/drm/nouveau/nv04_cursor.c
index 89a91b9d8b25..aaf3de3bc816 100644
--- a/drivers/gpu/drm/nouveau/nv04_cursor.c
+++ b/drivers/gpu/drm/nouveau/nv04_cursor.c
@@ -20,6 +20,7 @@ nv04_cursor_hide(struct nouveau_crtc *nv_crtc, bool update)
static void
nv04_cursor_set_pos(struct nouveau_crtc *nv_crtc, int x, int y)
{
+ nv_crtc->cursor_saved_x = x; nv_crtc->cursor_saved_y = y;
NVWriteRAMDAC(nv_crtc->base.dev, nv_crtc->index,
NV_PRAMDAC_CU_START_POS,
XLATE(y, 0, NV_PRAMDAC_CU_START_POS_Y) |