]> www.infradead.org Git - users/hch/misc.git/commit
drm/sysfb: Blit to CRTC destination format
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 14 Jul 2025 15:13:04 +0000 (17:13 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 26 Aug 2025 07:54:17 +0000 (09:54 +0200)
commit061963cd9e5b60672695e9a592be440469a6bf72
tree59396eeaf5e6599a5e65dd68c88d0e73925b295b
parent31eea29d727ce35b747e68c6be350ca07b7ecd9b
drm/sysfb: Blit to CRTC destination format

Use the color format stored in struct drm_sysfb_crtc_state for
color-format conversion instead of the scanout-buffer format
announced by firmware. Currently, both values are identical.

This will allow drivers to modify the CRTC's input format to a
certain extend. Specifically, vesadrm will be able to display RGB
framebuffers when the scanout buffer is of C8 format. With color-
format conversion to RGB332 and correct setup of the C8 palette,
displaying XRGB8888-based buffers under C8 can be achieved.

v2:
- refer to RGB332 as CRTC input format

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