drm: add drm_fb_memcpy_dstclip() helper
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 5 Apr 2019 09:52:16 +0000 (11:52 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 8 Apr 2019 04:59:26 +0000 (06:59 +0200)
commit26f024f54ab69a1012214755223d6ed61dd7bc98
tree14308d3c2318e55a3862534eee8830ee9a3069e6
parent7415287e1f3675996a4a6919fe500c30d30951f6
drm: add drm_fb_memcpy_dstclip() helper

It is a drm_fb_memcpy() variant which checks the clip rectangle for the
destination too.

Common code between drm_fb_memcpy() and drm_fb_memcpy_dstclip() was
factored out into the drm_fb_memcpy_lines() helper function.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20190405095219.9231-3-kraxel@redhat.com
drivers/gpu/drm/drm_format_helper.c
include/drm/drm_format_helper.h