]> Gentwo Git Trees - linux/.git/commit
drm/color-mgmt: Prepare for RGB332 palettes
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 14 Jul 2025 15:13:05 +0000 (17:13 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 26 Aug 2025 07:54:18 +0000 (09:54 +0200)
commit7ff61177b7116825085587f007dcdfd042c7b33b
tree517d9e3bd39de91456f506862c0b19eafd900a61
parent061963cd9e5b60672695e9a592be440469a6bf72
drm/color-mgmt: Prepare for RGB332 palettes

Add helper drm_crtc_fill_palette_332(), which fills palettes with
RGB332 color data. Each color in RGB332 format serves as an index
into an 8-bit palette that stores the corresponding component-based
colors.

Vesadrm will use the new helper to emulate RGB formats on top of
framebuffers in C8 format.

v2:
- add comments on bit operations (Javier)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20250714151513.309475-6-tzimmermann@suse.de
drivers/gpu/drm/drm_color_mgmt.c
include/drm/drm_color_mgmt.h