From: Thomas Zimmermann <tzimmermann@suse.de>
To: Javier Martinez Canillas <javierm@redhat.com>,
linux-kernel@vger.kernel.org
Cc: Bilal Elmoussaoui <belmouss@redhat.com>,
Jocelyn Falempe <jfalempe@redhat.com>,
Enric Balletbo i Serra <eballetb@redhat.com>,
Christian Hergert <chergert@redhat.com>,
Albert Esteve <aesteve@redhat.com>, Chia-I Wu <olvaffe@gmail.com>,
Daniel Vetter <daniel@ffwll.ch>,
David Airlie <airlied@redhat.com>,
Gerd Hoffmann <kraxel@redhat.com>,
Gurchetan Singh <gurchetansingh@chromium.org>,
dri-devel@lists.freedesktop.org,
virtualization@lists.linux-foundation.org
Subject: Re: [PATCH] drm/virtio: Enable fb damage clips property for the primary plane
Date: Fri, 10 Mar 2023 14:20:28 +0100 [thread overview]
Message-ID: <6c556799-6a78-4b67-a4c7-4de0a8f082fa@suse.de> (raw)
In-Reply-To: <20230310125943.912514-1-javierm@redhat.com>
[-- Attachment #1.1: Type: text/plain, Size: 1589 bytes --]
Hi Javier
Am 10.03.23 um 13:59 schrieb Javier Martinez Canillas:
> Christian Hergert reports that the driver doesn't enable the property and
> that leads to always doing a full plane update, even when the driver does
> support damage clipping for the primary plane.
>
> Don't enable it for the cursor plane, because its .atomic_update callback
> doesn't handle damage clips.
>
> Reported-by: Christian Hergert <chergert@redhat.com>
> Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
> ---
>
> drivers/gpu/drm/virtio/virtgpu_plane.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/gpu/drm/virtio/virtgpu_plane.c b/drivers/gpu/drm/virtio/virtgpu_plane.c
> index 4c09e313bebc..a2e045f3a000 100644
> --- a/drivers/gpu/drm/virtio/virtgpu_plane.c
> +++ b/drivers/gpu/drm/virtio/virtgpu_plane.c
> @@ -390,5 +390,9 @@ struct drm_plane *virtio_gpu_plane_init(struct virtio_gpu_device *vgdev,
virtio_gpu_plane_init() should really be two separate functions. But
withing the constrains of the current code
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Best regards
Thomas
> return plane;
>
> drm_plane_helper_add(plane, funcs);
> +
> + if (type == DRM_PLANE_TYPE_PRIMARY)
> + drm_plane_enable_fb_damage_clips(plane);
> +
> return plane;
> }
>
> base-commit: 3e853b9f89e4bcc8aa342fa350d83ff0df67d7e9
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Ivo Totev
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
next prev parent reply other threads:[~2023-03-10 13:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-10 12:59 Javier Martinez Canillas
2023-03-10 13:20 ` Thomas Zimmermann [this message]
2023-03-10 13:27 ` Javier Martinez Canillas
2023-03-13 8:52 ` Gerd Hoffmann
2023-03-13 17:28 ` Javier Martinez Canillas
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=6c556799-6a78-4b67-a4c7-4de0a8f082fa@suse.de \
--to=tzimmermann@suse.de \
--cc=aesteve@redhat.com \
--cc=airlied@redhat.com \
--cc=belmouss@redhat.com \
--cc=chergert@redhat.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=eballetb@redhat.com \
--cc=gurchetansingh@chromium.org \
--cc=javierm@redhat.com \
--cc=jfalempe@redhat.com \
--cc=kraxel@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=olvaffe@gmail.com \
--cc=virtualization@lists.linux-foundation.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
all inboxes | Powered by JetHome®