drm/format-helper: Share implementation among conversion helpers
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 27 Apr 2022 14:14:09 +0000 (16:14 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 5 May 2022 06:54:09 +0000 (08:54 +0200)
commitcce6bedb38ed08f1c3a9b1b01fbba0fdb472fb50
tree49cfc19bb7fbbd268efb7796c5feac68786d8180
parenta6fdb669bb65232a440717098e9e702e27586a0f
drm/format-helper: Share implementation among conversion helpers

Provide format-independent conversion helpers for system and I/O
memory. Implement most existing helpers on top of it. The source and
destination formats of each conversion is handled by a per-line
helper that is given to the generic implementation.

v2:
* remove a blank line

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220427141409.22842-5-tzimmermann@suse.de
drivers/gpu/drm/drm_format_helper.c