This series re-introduce the line-by-line algorithm. This is simpler than the read part because no rotation/translations are involved. PATCH 1/2 is the re-introduction itself PATCH 2/2 is a proposition to avoid code repetition using a "big" macro. This series depends on [1]. [1]: https://lore.kernel.org/all/20240516-b4-new-color-formats-v1-0-74cf9fe07317@xxxxxxxxxxx/ Signed-off-by: Louis Chauvet <louis.chauvet@xxxxxxxxxxx> --- Louis Chauvet (3): drm/vkms: Re-introduce line-by-line algorithm for writeback drm/vkms: Add a macro for write_line functions drm/vkms: Add support for XRGB2101010 drivers/gpu/drm/vkms/vkms_composer.c | 18 ++++++ drivers/gpu/drm/vkms/vkms_drv.h | 20 ++++--- drivers/gpu/drm/vkms/vkms_formats.c | 104 +++++++++++++++++++++++----------- drivers/gpu/drm/vkms/vkms_formats.h | 2 +- drivers/gpu/drm/vkms/vkms_writeback.c | 6 +- 5 files changed, 105 insertions(+), 45 deletions(-) --- base-commit: 335e3c4175a113d1f5b089c4eb1738590d193fbc change-id: 20240222-writeback_line_by_line-8475605b1d5c Best regards, -- Louis Chauvet <louis.chauvet@xxxxxxxxxxx>