OSDN Git Service

drm/virtio: Enable fb damage clips property for the primary plane
authorJavier Martinez Canillas <javierm@redhat.com>
Fri, 10 Mar 2023 12:59:42 +0000 (13:59 +0100)
committerJavier Martinez Canillas <javierm@redhat.com>
Mon, 13 Mar 2023 17:22:24 +0000 (18:22 +0100)
commit01f05940a9a75e11a2be64993c44ad8dd06e6e26
treed352979457519bbcab955cccbc47f1d406f8c43c
parent0993234a00451e0a5c3e47d8b0f2e01dac6cedbf
drm/virtio: Enable fb damage clips property for the primary plane

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>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230310125943.912514-1-javierm@redhat.com
drivers/gpu/drm/virtio/virtgpu_plane.c