drm/format-helper: Pass destination pitch to drm_fb_memcpy_dstclip()
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 30 Apr 2021 10:58:32 +0000 (12:58 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Sat, 1 May 2021 10:45:03 +0000 (12:45 +0200)
commit5ab7af7151ba14b4f7bec8a9d6ce2c4c0afd457f
tree1a74a0eef1b23fb624cc53758b01a636d04beeb1
parent4128359666793d9eb733a4a113ada3afa5d0da88
drm/format-helper: Pass destination pitch to drm_fb_memcpy_dstclip()

The memcpy's destination buffer might have a different pitch than the
source. Support different pitches as function argument.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Maxime Ripard <maxime@cerno.tech>
Tested-by: nerdopolis <bluescreen_avenger@verizon.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20210430105840.30515-2-tzimmermann@suse.de
drivers/gpu/drm/drm_format_helper.c
drivers/gpu/drm/mgag200/mgag200_mode.c
drivers/gpu/drm/tiny/cirrus.c
include/drm/drm_format_helper.h