drm/format-helper: Implement drm_fb_swab() with per-line helpers
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 27 Apr 2022 14:14:06 +0000 (16:14 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 5 May 2022 06:53:56 +0000 (08:53 +0200)
commit41fd6f0a6dd62def79e91c2170cdfd29473fb833
treeb6f33b270cbc97b4e590cdd3548dd99ca6424c23
parent1bb533b6871a7e3b0692253f7f8bf18338e21627
drm/format-helper: Implement drm_fb_swab() with per-line helpers

Replace the inner loop of drm_fb_swab() with helper functions that
swap the bytes in each pixel. This will allow to share the outer
loop with other conversion helpers.

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-2-tzimmermann@suse.de
drivers/gpu/drm/drm_format_helper.c