]> git.baikalelectronics.ru Git - kernel.git/commit
drm/format-helper: Merge drm_fb_memcpy() and drm_fb_memcpy_toio()
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 8 Aug 2022 12:53:55 +0000 (14:53 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 10 Aug 2022 07:15:51 +0000 (09:15 +0200)
commit741fbe2612d8e22c0100598eea165a15d044bdff
tree7444cd4c37ce60e13025d34c87b2c909a87bad44
parent00dadfafee5e6ea644706fcb0d089a1e19b2249c
drm/format-helper: Merge drm_fb_memcpy() and drm_fb_memcpy_toio()

Merge drm_fb_memcpy() and drm_fb_memcpy_toio() into a drm_fb_memcpy()
that uses struct iosys_map for buffers. The new function also supports
multi-plane color formats. Convert all users of the original helpers.

v2:
* rebase onto refactored mgag200
* use drm_formap_info_bpp() (Sam)
* do static init in hyperv and mgag200 (Sam)
* update documentation (Sam)
* add TODO on vaddr location (Sam)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220808125406.20752-4-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