Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1410146
| From | Gerd Hoffmann <kraxel@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 4/5] add cursor hotspot to drm_framebuffer |
| Date | 2016-05-31 13:00 +0200 |
| Message-ID | <rEPyW-1EG-53@gated-at.bofh.it> (permalink) |
| References | <rEPyV-1EG-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
drivers/gpu/drm/drm_crtc.c | 2 ++
include/drm/drm_crtc.h | 2 ++
2 files changed, 4 insertions(+)
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index d2a6d95..ce5a280 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -2977,6 +2977,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;
}
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index d1559cd..1460f66 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -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;
};
--
1.8.3.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 4/5] add cursor hotspot to drm_framebuffer Gerd Hoffmann <kraxel@redhat.com> - 2016-05-31 13:00 +0200
Re: [PATCH 4/5] add cursor hotspot to drm_framebuffer Daniel Vetter <daniel@ffwll.ch> - 2016-05-31 13:00 +0200
Re: [PATCH 4/5] add cursor hotspot to drm_framebuffer Ville Syrjälä <ville.syrjala@linux.intel.com> - 2016-05-31 14:40 +0200
Re: [PATCH 4/5] add cursor hotspot to drm_framebuffer Gerd Hoffmann <kraxel@redhat.com> - 2016-05-31 15:10 +0200
Re: [PATCH 4/5] add cursor hotspot to drm_framebuffer Ville Syrjälä <ville.syrjala@linux.intel.com> - 2016-05-31 16:00 +0200
csiph-web