diff options
author | 2021-12-12 15:24:06 +0900 | |
---|---|---|
committer | 2021-12-16 11:06:30 +0100 | |
commit | 877691b987a089938d67de13d886932ef2f21b22 (patch) | |
tree | 28572961c33fac645fe6997ea3665d46f8583ca0 /include/drm | |
parent | of: Move simple-framebuffer device handling from simplefb to of (diff) | |
download | linux-877691b987a089938d67de13d886932ef2f21b22.tar.gz linux-877691b987a089938d67de13d886932ef2f21b22.tar.bz2 linux-877691b987a089938d67de13d886932ef2f21b22.zip |
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
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_format_helper.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/drm/drm_format_helper.h b/include/drm/drm_format_helper.h index 97e4c3223af3..b30ed5de0a33 100644 --- a/include/drm/drm_format_helper.h +++ b/include/drm/drm_format_helper.h @@ -33,6 +33,9 @@ void drm_fb_xrgb8888_to_rgb888(void *dst, unsigned int dst_pitch, const void *sr void drm_fb_xrgb8888_to_rgb888_toio(void __iomem *dst, unsigned int dst_pitch, const void *vaddr, const struct drm_framebuffer *fb, const struct drm_rect *clip); +void drm_fb_xrgb8888_to_xrgb2101010_toio(void __iomem *dst, unsigned int dst_pitch, + const void *vaddr, const struct drm_framebuffer *fb, + const struct drm_rect *clip); void drm_fb_xrgb8888_to_gray8(void *dst, unsigned int dst_pitch, const void *vaddr, const struct drm_framebuffer *fb, const struct drm_rect *clip); |