]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mgag200: Add FB_DAMAGE_CLIPS support
authorJocelyn Falempe <jfalempe@redhat.com>
Wed, 4 May 2022 13:40:24 +0000 (15:40 +0200)
committerJocelyn Falempe <jfalempe@redhat.com>
Thu, 12 May 2022 13:01:50 +0000 (15:01 +0200)
commitc5b9e6be74bf4d5b2da6f9e5368078be5d233e98
tree10aba3c8772a96cfc31e91edd35e069f8250d240
parent0bc59c7365d1f85d5671b3ae328841a3f50d10e2
drm/mgag200: Add FB_DAMAGE_CLIPS support

The driver does support damage clips, but doesn't advertise it.
So when running gnome/wayland on Matrox hardware, the full frame is
copied to the slow Matrox memory, which leads to very poor performances.

Add drm_plane_enable_fb_damage_clips() to advertise this capability to
userspace.

With this patch, gnome/wayland becomes usable on Matrox GPU.

Suggested-by: Jonas Ã…dahl <jadahl@gmail.com>
Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220504134026.283417-2-jfalempe@redhat.com
drivers/gpu/drm/mgag200/mgag200_mode.c