linux/drivers/gpu/drm/sysfb
Thomas Zimmermann 7399c13f61 drm/vesadrm: Support DRM_FORMAT_C8
Add support for DRM_FORMAT_C8 to vesadrm. The new pixel-format
description PIXEL_FORMAT_C8 describes the layout. Vesadrm's helpers
vesadrm_fill_palette_lut() and vesadrm_load_palette_lut() set the
hardware palette according to the CRTC's output format.

The driver emulates XRGB8888 by converting the source buffer to
RGB332 and using the resulting 256 colors as index into the hardware
palette. The hardware palette converts back to RGB during scanout.
This has no overhead compared to other format conversion, but allows
common userspace, such as Wayland compositors, to operate on the
display.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20250714151513.309475-10-tzimmermann@suse.de
2025-08-26 09:54:20 +02:00
..
drm_sysfb.c drm/sysfb: Share helpers for integer validation 2025-04-14 10:16:13 +02:00
drm_sysfb_helper.h drm/sysfb: Blit to CRTC destination format 2025-08-26 09:54:17 +02:00
drm_sysfb_modeset.c drm/sysfb: Blit to CRTC destination format 2025-08-26 09:54:17 +02:00
drm_sysfb_screen_info.c drm/sysfb: Find screen_info format with helpers 2025-08-26 09:54:17 +02:00
efidrm.c drm/format-helper: Move drm_fb_build_fourcc_list() to sysfb helpers 2025-06-18 10:46:03 +02:00
Kconfig drm/sysfb: efidrm: Support module builds 2025-04-09 09:03:15 +02:00
Makefile drm/sysfb: Share helpers for screen_info validation 2025-04-14 10:16:14 +02:00
ofdrm.c drm/format-helper: Move drm_fb_build_fourcc_list() to sysfb helpers 2025-06-18 10:46:03 +02:00
simpledrm.c drm/simpledrm: Use of_reserved_mem_region_to_resource() for "memory-region" 2025-08-13 17:12:45 -05:00
vesadrm.c drm/vesadrm: Support DRM_FORMAT_C8 2025-08-26 09:54:20 +02:00