List the conversion from XRGB8888-to-RGB332 in drm_fb_blit(), so that
drivers based on sysfb-helpers can use it.

Signed-off-by: Thomas Zimmermann <tzimmerm...@suse.de>
Reviewed-by: Javier Martinez Canillas <javi...@redhat.com>
---
 drivers/gpu/drm/drm_format_helper.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/drm_format_helper.c 
b/drivers/gpu/drm/drm_format_helper.c
index 8f3daf38ca63..37d5e0a7eb46 100644
--- a/drivers/gpu/drm/drm_format_helper.c
+++ b/drivers/gpu/drm/drm_format_helper.c
@@ -1243,6 +1243,9 @@ int drm_fb_blit(struct iosys_map *dst, const unsigned int 
*dst_pitch, uint32_t d
                } else if (dst_format == DRM_FORMAT_BGRX8888) {
                        drm_fb_swab(dst, dst_pitch, src, fb, clip, false, 
state);
                        return 0;
+               } else if (dst_format == DRM_FORMAT_RGB332) {
+                       drm_fb_xrgb8888_to_rgb332(dst, dst_pitch, src, fb, 
clip, state);
+                       return 0;
                }
        }
 
-- 
2.50.0

Reply via email to