drm/fb_helper: Minimize damage-helper overhead
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 3 Nov 2022 15:14:41 +0000 (16:14 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Sat, 5 Nov 2022 16:05:54 +0000 (17:05 +0100)
commit93e81e38e19760653e5241a8bbcaecd85207fde4
treec83d02590159a31c945f3db025b6e4c1c72317d2
parent983780918c759fdbbf0bf033e701bbff75d2af23
drm/fb_helper: Minimize damage-helper overhead

Pull the test for fb_dirty into the caller to avoid extra work
if no callback has been set. In this case no damage handling is
required and no damage area needs to be computed. Print a warning
if the damage worker runs without getting an fb_dirty callback.

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