diff options
author | Noralf Trønnes <noralf@tronnes.org> | 2021-09-29 22:11:57 +0300 |
---|---|---|
committer | Noralf Trønnes <noralf@tronnes.org> | 2021-10-04 13:03:46 +0300 |
commit | cee0b7cbf1c02fc1e32a9eda6a66f1a4f85adae9 (patch) | |
tree | 785200d402f29de86bde91eb3c1d8c7f79d3dc65 /include/drm | |
parent | a0b1d355b9b4e24833f6d5c0e03bdf61a34b9963 (diff) | |
download | linux-cee0b7cbf1c02fc1e32a9eda6a66f1a4f85adae9.tar.xz |
drm/format-helper: Add drm_fb_xrgb8888_to_rgb332()
Add XRGB8888 emulation support for devices that can only do RGB332.
v2:
- Support Big Endian (Daniel)
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210929191201.34456-3-noralf@tronnes.org
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_format_helper.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drm_format_helper.h b/include/drm/drm_format_helper.h index 4e0258a61311..d0809aff5cf8 100644 --- a/include/drm/drm_format_helper.h +++ b/include/drm/drm_format_helper.h @@ -16,6 +16,8 @@ void drm_fb_memcpy_dstclip(void __iomem *dst, unsigned int dst_pitch, void *vadd struct drm_rect *clip); void drm_fb_swab(void *dst, void *src, struct drm_framebuffer *fb, struct drm_rect *clip, bool cached); +void drm_fb_xrgb8888_to_rgb332(void *dst, void *vaddr, struct drm_framebuffer *fb, + struct drm_rect *clip); void drm_fb_xrgb8888_to_rgb565(void *dst, void *vaddr, struct drm_framebuffer *fb, struct drm_rect *clip, bool swab); |