drm/format-helper: Add drm_fb_xrgb8888_to_rgb888()
authorNoralf Trønnes <noralf@tronnes.org>
Wed, 29 Sep 2021 19:11:58 +0000 (21:11 +0200)
committerNoralf Trønnes <noralf@tronnes.org>
Mon, 4 Oct 2021 10:04:19 +0000 (12:04 +0200)
commitbcf80d6ef17c97ca7a712d8e6b065910b406e3c3
tree7d220194e4e7550848ecf6d0331fa666e707975a
parentcee0b7cbf1c02fc1e32a9eda6a66f1a4f85adae9
drm/format-helper: Add drm_fb_xrgb8888_to_rgb888()

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

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-4-noralf@tronnes.org
drivers/gpu/drm/drm_format_helper.c
include/drm/drm_format_helper.h