drm/format-helper: Rework format-helper memcpy functions
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 10 Nov 2021 10:36:55 +0000 (11:36 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 11 Nov 2021 11:06:57 +0000 (12:06 +0100)
commit27bd66dd6419c45e320f34ed419cd80833de1161
tree2c2232532feb283969f9482ec7f0c4f556b24a1e
parent452290f354f04fca53cba810bd241f4307502f1e
drm/format-helper: Rework format-helper memcpy functions

Move destination-buffer clipping from all format-helper memcpy
function into callers. Support destination-buffer pitch. Only
distinguish between system and I/O memory, but use same logic
everywhere.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Tested-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20211110103702.374-3-tzimmermann@suse.de
drivers/gpu/drm/drm_format_helper.c
drivers/gpu/drm/drm_mipi_dbi.c
drivers/gpu/drm/gud/gud_pipe.c
drivers/gpu/drm/hyperv/hyperv_drm_modeset.c
drivers/gpu/drm/mgag200/mgag200_mode.c
drivers/gpu/drm/tiny/cirrus.c
include/drm/drm_format_helper.h