add cursor hotspot to drm_framebuffer
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 31 May 2016 06:54:52 +0000 (08:54 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 7 Jun 2016 08:37:06 +0000 (10:37 +0200)
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/drm_crtc.c
include/drm/drm_crtc.h

index 0e3cc66aa8b7d45803e39d36cb26faac494a3568..d7618bf18b4591afb4fb3619b1fb5202ee2ba823 100644 (file)
@@ -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;
                }
index d1559cd04e3de85849eee8df7189f4ce2e09cad4..1460f660bf96be31ecd425501bc411d5a7cd51d8 100644 (file)
@@ -253,6 +253,8 @@ struct drm_framebuffer {
        int bits_per_pixel;
        int flags;
        uint32_t pixel_format; /* fourcc format */
+       int hot_x;
+       int hot_y;
        struct list_head filp_head;
 };