]> git.baikalelectronics.ru Git - kernel.git/commit
drm/format-helper: Convert drm_fb_swab() to struct iosys_map
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 8 Aug 2022 12:53:56 +0000 (14:53 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 10 Aug 2022 07:16:10 +0000 (09:16 +0200)
commit8c4fa3a0a43b1eb473f3b7e648bc500a464ff10b
treeca9b7a3fd072573d9425c508e8732219b694e67a
parent741fbe2612d8e22c0100598eea165a15d044bdff
drm/format-helper: Convert drm_fb_swab() to struct iosys_map

Convert drm_fb_swab() to use struct iosys_map() and convert users. The
new interface supports multi-plane color formats, but implementation
only supports a single plane for now.

v2:
* use drm_format_info_bpp() (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-5-tzimmermann@suse.de
drivers/gpu/drm/drm_format_helper.c
drivers/gpu/drm/drm_mipi_dbi.c
drivers/gpu/drm/gud/gud_pipe.c
include/drm/drm_format_helper.h