drm/format-helper: Rework XRGB8888-to-RGBG332 conversion
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 8 Aug 2022 12:53:57 +0000 (14:53 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 10 Aug 2022 07:18:36 +0000 (09:18 +0200)
commite13140a06283141318319aaae7dfa348b06bdd6c
tree935c851835d778c13738a671af5b6b5a2810c501
parentce582859ca7b33e5c0d9432da9f7b54ced802100
drm/format-helper: Rework XRGB8888-to-RGBG332 conversion

Update XRGB8888-to-RGB332 conversion to support struct iosys_map
and convert all users. Although these are single-plane color formats,
the new interface supports multi-plane formats for consistency with
drm_fb_blit().

v2:
* rebase onto refactored Kunit tests
* update documentation (Sam)
* add TODO on vaddr location (Sam)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Tested-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220808125406.20752-6-tzimmermann@suse.de
drivers/gpu/drm/drm_format_helper.c
drivers/gpu/drm/gud/gud_pipe.c
drivers/gpu/drm/tests/drm_format_helper_test.c
include/drm/drm_format_helper.h