summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/drm_crtc.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2016-05-31 08:54:52 +0200
committerGerd Hoffmann <kraxel@redhat.com>2016-06-07 10:37:06 +0200
commitdd5465910740ad74a318cf7464dad1136a2e0ca9 (patch)
tree1c419b41f7021e73b58ca6014092876f702b2bcf /drivers/gpu/drm/drm_crtc.c
parentbbbed8884f8e623fb65846f6ec931fef79c30051 (diff)
downloadlwn-dd5465910740ad74a318cf7464dad1136a2e0ca9.tar.gz
lwn-dd5465910740ad74a318cf7464dad1136a2e0ca9.zip
add cursor hotspot to drm_framebuffer
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_crtc.c')
-rw-r--r--drivers/gpu/drm/drm_crtc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index 0e3cc66aa8b7..d7618bf18b45 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -2975,6 +2975,8 @@ static int drm_mode_cursor_universal(struct drm_crtc *crtc,
DRM_DEBUG_KMS("failed to wrap cursor buffer in drm framebuffer\n");
return PTR_ERR(fb);
}
+ fb->hot_x = req->hot_x;
+ fb->hot_y = req->hot_y;
} else {
fb = NULL;
}