OSDN Git Service

drm/udl: Enable damage clipping
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 8 Sep 2022 09:51:06 +0000 (11:51 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Sat, 10 Sep 2022 19:45:52 +0000 (21:45 +0200)
Call drm_plane_enable_fb_damage_clips() and give userspace a chance
of minimizing the updated display area.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20220908095115.23396-4-tiwai@suse.de
drivers/gpu/drm/udl/udl_modeset.c

index 34ce5b4..b2377b7 100644 (file)
@@ -480,6 +480,7 @@ int udl_modeset_init(struct drm_device *dev)
                                           format_count, NULL, connector);
        if (ret)
                return ret;
+       drm_plane_enable_fb_damage_clips(&udl->display_pipe.plane);
 
        drm_mode_config_reset(dev);