drm/fb-helper: Clip damage area horizontally
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 9 Feb 2022 16:16:17 +0000 (17:16 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 10 Feb 2022 13:49:31 +0000 (14:49 +0100)
commitded74cafeea9311c1eaf6fccce963de2516145f7
treef67989ea4114dfcd02ce2aaf14631f7910fb2299
parentfe23b56f56532dcc5e49e83e20333b97919dec53
drm/fb-helper: Clip damage area horizontally

Clip the damage area horizontally if only a single scanline has been
changed. This is helpful to reduce the memcpy overhead for small writes.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220209161617.3553-6-tzimmermann@suse.de
drivers/gpu/drm/drm_fb_helper.c