drm/format-helper: Flip src/dst-format branches in blit helper
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 2 Jan 2023 11:29:20 +0000 (12:29 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 3 Jan 2023 13:24:52 +0000 (14:24 +0100)
commitf238ac30afde0da3dcc047ba6f735837a238f2b1
treec934abe6a53adc10315d2488aa1109e1686f440d
parent4db88a9026c22059a10e74789f2fcc6a424ab4cc
drm/format-helper: Flip src/dst-format branches in blit helper

Upcoming changes to the format conversion will mostly blit from
XRGB8888 to some other format. So put the source format in blit's
outer branches to make the code more readable. For cases where
a format only changes its endianness, such as XRGB565, introduce
dedicated branches that handle this for all formats.

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