diff mbox series

[v3,03/12] drm/udl: Enable damage clipping

Message ID 20220908095115.23396-4-tiwai@suse.de (mailing list archive)
State New, archived
Headers show
Series drm/udl: More fixes | expand

Commit Message

Takashi Iwai Sept. 8, 2022, 9:51 a.m. UTC
From: Thomas Zimmermann <tzimmermann@suse.de>

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>
---
 drivers/gpu/drm/udl/udl_modeset.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Thomas Zimmermann Sept. 8, 2022, 1:09 p.m. UTC | #1
Hi

Am 08.09.22 um 11:51 schrieb Takashi Iwai:
> From: Thomas Zimmermann <tzimmermann@suse.de>
> 
> 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>

Daniel already gave an R-B here:

   https://patchwork.freedesktop.org/patch/495812/?series=106800&rev=1

I think the whole series should have been reviewed now. If nothing else 
comes in, we can merge it tomorrow or Monday.

Best regards
Thomas

> ---
>   drivers/gpu/drm/udl/udl_modeset.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/udl/udl_modeset.c b/drivers/gpu/drm/udl/udl_modeset.c
> index 34ce5b43c5db..b2377b706482 100644
> --- a/drivers/gpu/drm/udl/udl_modeset.c
> +++ b/drivers/gpu/drm/udl/udl_modeset.c
> @@ -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);
>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/udl/udl_modeset.c b/drivers/gpu/drm/udl/udl_modeset.c
index 34ce5b43c5db..b2377b706482 100644
--- a/drivers/gpu/drm/udl/udl_modeset.c
+++ b/drivers/gpu/drm/udl/udl_modeset.c
@@ -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);