[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v6 7/9] drm: Remove legacy cursor hotspot code
|
From: |
Albert Esteve |
|
Subject: |
[PATCH v6 7/9] drm: Remove legacy cursor hotspot code |
|
Date: |
Mon, 23 Oct 2023 09:46:11 +0200 |
From: Zack Rusin <zackr@vmware.com>
Atomic modesetting supports mouse cursor offsets via the hotspot
properties that are created on cursor planes. All drivers which
support hotspots are atomic and the legacy code has been implemented
in terms of the atomic properties as well.
Due to the above the lagacy cursor hotspot code is no longer used or
needed and can be removed.
Signed-off-by: Zack Rusin <zackr@vmware.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <mripard@kernel.org>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
---
drivers/gpu/drm/drm_plane.c | 3 ---
include/drm/drm_framebuffer.h | 12 ------------
2 files changed, 15 deletions(-)
diff --git a/drivers/gpu/drm/drm_plane.c b/drivers/gpu/drm/drm_plane.c
index eaca367bdc7e7..1dc00ad4c33c3 100644
--- a/drivers/gpu/drm/drm_plane.c
+++ b/drivers/gpu/drm/drm_plane.c
@@ -1110,9 +1110,6 @@ static int drm_mode_cursor_universal(struct drm_crtc
*crtc,
return PTR_ERR(fb);
}
- fb->hot_x = req->hot_x;
- fb->hot_y = req->hot_y;
-
if (plane->hotspot_x_property && plane->state)
plane->state->hotspot_x = req->hot_x;
if (plane->hotspot_y_property && plane->state)
diff --git a/include/drm/drm_framebuffer.h b/include/drm/drm_framebuffer.h
index 0dcc07b686548..1e108c1789b1e 100644
--- a/include/drm/drm_framebuffer.h
+++ b/include/drm/drm_framebuffer.h
@@ -188,18 +188,6 @@ struct drm_framebuffer {
* DRM_MODE_FB_MODIFIERS.
*/
int flags;
- /**
- * @hot_x: X coordinate of the cursor hotspot. Used by the legacy cursor
- * IOCTL when the driver supports cursor through a DRM_PLANE_TYPE_CURSOR
- * universal plane.
- */
- int hot_x;
- /**
- * @hot_y: Y coordinate of the cursor hotspot. Used by the legacy cursor
- * IOCTL when the driver supports cursor through a DRM_PLANE_TYPE_CURSOR
- * universal plane.
- */
- int hot_y;
/**
* @filp_head: Placed on &drm_file.fbs, protected by &drm_file.fbs_lock.
*/
--
2.41.0
- [PATCH v6 3/9] drm/vmwgfx: Use the hotspot properties from cursor planes, (continued)
- [PATCH v6 3/9] drm/vmwgfx: Use the hotspot properties from cursor planes, Albert Esteve, 2023/10/23
- [PATCH v6 4/9] drm/qxl: Use the hotspot properties from cursor planes, Albert Esteve, 2023/10/23
- [PATCH v6 6/9] drm/virtio: Use the hotspot properties from cursor planes, Albert Esteve, 2023/10/23
- [PATCH v6 5/9] drm/vboxvideo: Use the hotspot properties from cursor planes, Albert Esteve, 2023/10/23
- [PATCH v6 8/9] drm: Introduce DRM_CLIENT_CAP_CURSOR_PLANE_HOTSPOT, Albert Esteve, 2023/10/23
- [PATCH v6 9/9] drm: Introduce documentation for hotspot properties, Albert Esteve, 2023/10/23
- [PATCH v6 7/9] drm: Remove legacy cursor hotspot code,
Albert Esteve <=
- Re: [PATCH v6 0/9] Fix cursor planes with virtualized drivers, Simon Ser, 2023/10/23