diff options
author | Jocelyn Falempe <jfalempe@redhat.com> | 2022-05-04 15:40:24 +0200 |
---|---|---|
committer | Jocelyn Falempe <jfalempe@redhat.com> | 2022-05-12 15:01:50 +0200 |
commit | 3064debaf55e1bc8f191871ca5f82697ef4c0951 (patch) | |
tree | 10aba3c8772a96cfc31e91edd35e069f8250d240 | |
parent | 0f6e2fff575bb14abcb014fa02a9267351f55576 (diff) | |
download | linux-3064debaf55e1bc8f191871ca5f82697ef4c0951.tar.bz2 |
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
-rw-r--r-- | drivers/gpu/drm/mgag200/mgag200_mode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/mgag200/mgag200_mode.c b/drivers/gpu/drm/mgag200/mgag200_mode.c index abde7655477d..a77da57f1022 100644 --- a/drivers/gpu/drm/mgag200/mgag200_mode.c +++ b/drivers/gpu/drm/mgag200/mgag200_mode.c @@ -1121,6 +1121,8 @@ int mgag200_modeset_init(struct mga_device *mdev) return ret; } + drm_plane_enable_fb_damage_clips(&pipe->plane); + /* FIXME: legacy gamma tables; convert to CRTC state */ drm_mode_crtc_set_gamma_size(&pipe->crtc, MGAG200_LUT_SIZE); |