aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNoralf Trønnes <noralf@tronnes.org>2021-09-29 21:11:57 +0200
committerNoralf Trønnes <noralf@tronnes.org>2021-10-04 12:03:46 +0200
commitcee0b7cbf1c02fc1e32a9eda6a66f1a4f85adae9 (patch)
tree785200d402f29de86bde91eb3c1d8c7f79d3dc65 /include
parentdrm/fourcc: Add R8 to drm_format_info (diff)
downloadlinux-dev-cee0b7cbf1c02fc1e32a9eda6a66f1a4f85adae9.tar.xz
linux-dev-cee0b7cbf1c02fc1e32a9eda6a66f1a4f85adae9.zip
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')
-rw-r--r--include/drm/drm_format_helper.h2
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);