[PATCH 0/5] drm/vkms: Add support for multiple plane formats

From: Louis Chauvet
Date: Thu May 16 2024 - 09:18:36 EST


This series introduce a macro to generate a function to read simple
formats. It avoid duplication of the same logic for similar formats.

PATCH 1 is the introduction of the macro and adaptation of the existing
code to avoid duplication
PATCH 2-5 introduce new formats with the help of this macro.

This series must be applied on top of [1].

[1] https://lore.kernel.org/all/20240516-yuv-v8-0-cf8d6f86430e@xxxxxxxxxxx/

Signed-off-by: Louis Chauvet <louis.chauvet@xxxxxxxxxxx>
---
Louis Chauvet (5):
drm/vkms: Create helpers macro to avoid code duplication in format callbacks
drm/vkms: Add support for ARGB8888 formats
drm/vkms: Add support for ARGB16161616 formats
drm/vkms: Add support for RGB565 formats
drm/vkms: Add support for RGB888 formats

drivers/gpu/drm/vkms/vkms_formats.c | 218 ++++++++++++++++++------------------
drivers/gpu/drm/vkms/vkms_plane.c | 11 ++
2 files changed, 123 insertions(+), 106 deletions(-)
---
base-commit: 96b4d11bd9ea36c20bd3428e0932c209ce2e2d36
change-id: 20240312-b4-new-color-formats-1be9d688b21a

Best regards,
--
Louis Chauvet <louis.chauvet@xxxxxxxxxxx>