[PATCH 0/5] drm/vkms: support more formats and fix RGB565 regression

From: Matheus Alves de Almeida

Date: Sun Sep 27 2026 - 20:55:24 EST


Hi,

This series adds support for RGB332, BGR233 and BGR565 writeback. This
is done with new helpers added to make conversion easier. It also fixes
a regression in the RGB565 write conversion.

The argb_u16_to_RGB565() code currently truncates the resulting
channels. This behavior was originally fixed by commit
ab87f558dcfb ("drm/vkms: Fix RGB565 pixel conversion"),
but the fix was lost during a refactor in commit
cc4fd2934d41 ("drm/vkms: Isolate writeback pixel conversion functions").
The rounding behavior has been restored using the new
argb_u16_to_channels() helper.

Matheus Alves de Almeida (5):
drm/vkms: make argb_u16_to_RGB565 round resulting values
drm/vkms: support BGR565 writeback
drm/vkms: add a helper for channel to argb_u16 conversion
drm/vkms: add support for RGB332
drm/vkms: add support for BGR233

drivers/gpu/drm/vkms/vkms_formats.c | 136 ++++++++++++++++++++------
drivers/gpu/drm/vkms/vkms_plane.c | 2 +
drivers/gpu/drm/vkms/vkms_writeback.c | 5 +-
3 files changed, 112 insertions(+), 31 deletions(-)

--
2.43.0