drm/format-helper: Add drm_fb_xrgb8888_to_xrgb2101010_toio()
authorHector Martin <marcan@marcan.st>
Sun, 12 Dec 2021 06:24:06 +0000 (15:24 +0900)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 16 Dec 2021 10:06:30 +0000 (11:06 +0100)
commit877691b987a089938d67de13d886932ef2f21b22
tree28572961c33fac645fe6997ea3665d46f8583ca0
parent2f92ea21622c49480402a58d268f4c9bed9e8c68
drm/format-helper: Add drm_fb_xrgb8888_to_xrgb2101010_toio()

Add XRGB8888 emulation support for devices that can only do XRGB2101010.

This is chiefly useful for simpledrm on Apple devices where the
bootloader-provided framebuffer is 10-bit.

Signed-off-by: Hector Martin <marcan@marcan.st>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20211212062407.138309-3-marcan@marcan.st
drivers/gpu/drm/drm_format_helper.c
include/drm/drm_format_helper.h