diff options
author | Noralf Trønnes <noralf@tronnes.org> | 2021-09-29 22:12:01 +0300 |
---|---|---|
committer | Noralf Trønnes <noralf@tronnes.org> | 2021-10-04 13:06:14 +0300 |
commit | 83d7b6d54b8e8a3a487c8a4066e33e6bdd255c3d (patch) | |
tree | fcddcfc0369c19fc2bddb9fe63567feeba15917b /drivers/gpu/drm/gud/gud_pipe.c | |
parent | 1f25d0054258df239ffa420606466fd9b14e06d6 (diff) | |
download | linux-83d7b6d54b8e8a3a487c8a4066e33e6bdd255c3d.tar.xz |
drm/gud: Add GUD_PIXEL_FORMAT_RGB888
Add support for the RGB888 pixel format.
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-7-noralf@tronnes.org
Diffstat (limited to 'drivers/gpu/drm/gud/gud_pipe.c')
-rw-r--r-- | drivers/gpu/drm/gud/gud_pipe.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/gud/gud_pipe.c b/drivers/gpu/drm/gud/gud_pipe.c index 868a0b8a1f3e..daf75c178c2b 100644 --- a/drivers/gpu/drm/gud/gud_pipe.c +++ b/drivers/gpu/drm/gud/gud_pipe.c @@ -195,6 +195,8 @@ retry: drm_fb_xrgb8888_to_rgb332(buf, vaddr, fb, rect); } else if (format->format == DRM_FORMAT_RGB565) { drm_fb_xrgb8888_to_rgb565(buf, vaddr, fb, rect, gud_is_big_endian()); + } else if (format->format == DRM_FORMAT_RGB888) { + drm_fb_xrgb8888_to_rgb888(buf, vaddr, fb, rect); } else { len = gud_xrgb8888_to_color(buf, format, vaddr, fb, rect); } |