drm/vkms: isolate pixel conversion functionality
authorMaíra Canal <mcanal@igalia.com>
Tue, 18 Apr 2023 13:05:21 +0000 (10:05 -0300)
committerMaíra Canal <mairacanal@riseup.net>
Mon, 24 Apr 2023 20:09:19 +0000 (17:09 -0300)
commit322d716a3e8a74fb75cd0f657647be4df253fd2f
treedb749079b833308d9a72ffead451f1af502d3208
parent8356b97906503a02125c8d03c9b88a61ea46a05a
drm/vkms: isolate pixel conversion functionality

Currently, the pixel conversion functions repeat the same loop to
iterate the rows. Instead of repeating the same code for each pixel
format, create a function to wrap the loop and isolate the pixel
conversion functionality.

Suggested-by: Arthur Grillo <arthurgrillo@riseup.net>
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Reviewed-by: Arthur Grillo <arthurgrillo@riseup.net>
Signed-off-by: Maíra Canal <mairacanal@riseup.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20230418130525.128733-2-mcanal@igalia.com
drivers/gpu/drm/vkms/vkms_composer.c
drivers/gpu/drm/vkms/vkms_drv.h
drivers/gpu/drm/vkms/vkms_formats.c
drivers/gpu/drm/vkms/vkms_formats.h
drivers/gpu/drm/vkms/vkms_plane.c