]> git.baikalelectronics.ru Git - kernel.git/commit
drm/format-helper: Provide drm_fb_blit()
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 8 Aug 2022 12:53:54 +0000 (14:53 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 10 Aug 2022 07:15:51 +0000 (09:15 +0200)
commit00dadfafee5e6ea644706fcb0d089a1e19b2249c
tree18858343f1b1354951b59f236f91ebfdafed1087
parent710a5eebe56136193e9cc322973ddbe6e28c5d26
drm/format-helper: Provide drm_fb_blit()

Provide drm_fb_blit() that works with struct iosys_map. Update all
users of drm_fb_blit_toio(), which required a destination buffer in
I/O memory.

This patch only updates the function's interface. The implementation
still relies on the destination buffer to be located in  I/O memory.
See the follow-up patches for implementational changes. The new
function's interface works with multi-plane color formats, but again
implementation only supports a single plane for now.

v2:
* rebase onto refactored simpledrm
* use IOSYS_MAP_INIT_VADDR() (Sam)
* update the commit message on the use of I/O memory (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-3-tzimmermann@suse.de
drivers/gpu/drm/drm_format_helper.c
drivers/gpu/drm/tiny/simpledrm.c
include/drm/drm_format_helper.h