OSDN Git Service

drm/ssd130x: Iterate over damage clips instead of using a merged rect
authorJavier Martinez Canillas <javierm@redhat.com>
Fri, 30 Sep 2022 15:29:44 +0000 (17:29 +0200)
committerJavier Martinez Canillas <javierm@redhat.com>
Wed, 5 Oct 2022 22:27:09 +0000 (00:27 +0200)
commitfdd0640b639070efb58226c96cea5861150e8dce
tree361ba87a1680af975dc3de827f6b1df11bb1a5aa
parentce7fcf7003865a63983545fd8f84c04deb1b5dfd
drm/ssd130x: Iterate over damage clips instead of using a merged rect

The drm_atomic_helper_damage_merged() helper merges all the damage clips
into one rectangle. If there are multiple damage clips that aren't close
to each other, the resulting rectangle could be quite big.

Instead of using that function helper, iterate over all the damage clips
and update them one by one.

Suggested-by: Jocelyn Falempe <jfalempe@redhat.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220930152944.2584356-1-javierm@redhat.com
drivers/gpu/drm/solomon/ssd130x.c