diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2025-07-14 17:13:05 +0200 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2025-08-26 09:54:18 +0200 |
commit | 7ff61177b7116825085587f007dcdfd042c7b33b (patch) | |
tree | 517d9e3bd39de91456f506862c0b19eafd900a61 /rust/helpers/helpers.c | |
parent | 061963cd9e5b60672695e9a592be440469a6bf72 (diff) |
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
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions