]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3d33b42cbdfd6982732f0d1c98503f03d0090096
tree14308d3c2318e55a3862534eee8830ee9a3069e6
parent403d16184d024320f1c7fbabf5189eead6775ca3
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