From: "Martin Krastev (VMware)" <martinkrastev768@gmail.com>
To: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v2 3/8] drm/vmwgfx: Use the hotspot properties from cursor planes
Date: Mon, 25 Jul 2022 16:35:53 +0300 [thread overview]
Message-ID: <4fc8a5cf-749d-0011-a223-027a354c05e0@gmail.com> (raw)
In-Reply-To: <20220712033246.1148476-4-zack@kde.org>
From: Martin Krastev <krastevm@vmware.com>
On 12.07.22 г. 6:32 ч., Zack Rusin wrote:
> From: Zack Rusin <zackr@vmware.com>
>
> Atomic modesetting got support for mouse hotspots via the hotspot
> properties. Port the legacy kms hotspot handling to the new properties
> on cursor planes.
>
> Signed-off-by: Zack Rusin <zackr@vmware.com>
> Cc: Martin Krastev <krastevm@vmware.com>
> Cc: Maaz Mombasawala <mombasawalam@vmware.com>
> ---
> drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 9 ++-------
> 1 file changed, 2 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
> index ff2f735bbe7a..3d3f73109199 100644
> --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
> +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
> @@ -652,13 +652,8 @@ vmw_du_cursor_plane_atomic_update(struct drm_plane *plane,
> struct vmw_plane_state *vps = vmw_plane_state_to_vps(new_state);
> s32 hotspot_x, hotspot_y;
>
> - hotspot_x = du->hotspot_x;
> - hotspot_y = du->hotspot_y;
> -
> - if (new_state->fb) {
> - hotspot_x += new_state->fb->hot_x;
> - hotspot_y += new_state->fb->hot_y;
> - }
> + hotspot_x = du->hotspot_x + new_state->hotspot_x;
> + hotspot_y = du->hotspot_y + new_state->hotspot_y;
>
> du->cursor_surface = vps->surf;
> du->cursor_bo = vps->bo;
LGTM.
Reviewed-by: Martin Krastev <krastevm@vmware.com>
Regards,
Martin
next prev parent reply other threads:[~2022-07-25 13:35 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-12 3:32 [PATCH v2 0/8] Fix cursor planes with virtualized drivers Zack Rusin
2022-07-12 3:32 ` [PATCH v2 1/8] drm: Disable the cursor plane on atomic contexts " Zack Rusin
2022-08-10 16:40 ` Daniel Vetter
2023-05-02 9:32 ` Javier Martinez Canillas
2023-05-03 3:35 ` Zack Rusin
2023-05-03 7:48 ` Javier Martinez Canillas
2023-05-03 8:01 ` Pekka Paalanen
2023-05-04 1:50 ` Zack Rusin
2023-05-04 10:39 ` Pekka Paalanen
2023-05-04 11:27 ` Jonas Ådahl
2023-05-04 12:13 ` Pekka Paalanen
2023-05-03 7:54 ` Pekka Paalanen
2023-05-04 1:43 ` Zack Rusin
2023-05-04 8:21 ` Pekka Paalanen
2022-07-12 3:32 ` [PATCH v2 2/8] drm/atomic: Add support for mouse hotspots Zack Rusin
2023-05-03 7:59 ` Daniel Vetter
2022-07-12 3:32 ` [PATCH v2 3/8] drm/vmwgfx: Use the hotspot properties from cursor planes Zack Rusin
2022-07-25 13:35 ` Martin Krastev (VMware) [this message]
2022-07-12 3:32 ` [PATCH v2 4/8] drm/qxl: " Zack Rusin
2022-07-12 7:58 ` Gerd Hoffmann
2022-07-12 3:32 ` [PATCH v2 5/8] drm/vboxvideo: " Zack Rusin
2022-07-12 7:56 ` Pekka Paalanen
2022-07-13 3:35 ` Zack Rusin
2022-07-13 7:20 ` Pekka Paalanen
2022-07-13 13:35 ` Zack Rusin
2022-07-14 7:38 ` Pekka Paalanen
2022-07-12 3:32 ` [PATCH v2 6/8] drm/virtio: " Zack Rusin
2022-07-12 7:58 ` Gerd Hoffmann
2022-07-12 3:32 ` [PATCH v2 7/8] drm: Remove legacy cursor hotspot code Zack Rusin
2022-07-12 3:32 ` [PATCH v2 8/8] drm: Introduce DRM_CLIENT_CAP_SUPPORTS_VIRTUAL_CURSOR_PLANE Zack Rusin
2022-07-12 7:57 ` Simon Ser
2022-07-12 8:01 ` Pekka Paalanen
2022-07-12 7:54 ` [PATCH v2 0/8] Fix cursor planes with virtualized drivers Pekka Paalanen
2022-07-12 8:00 ` Simon Ser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4fc8a5cf-749d-0011-a223-027a354c05e0@gmail.com \
--to=martinkrastev768@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox