drm/format-helper: Add drm_fb_xrgb8888_to_gray8_line()
authorJavier Martinez Canillas <javierm@redhat.com>
Mon, 14 Feb 2022 13:37:05 +0000 (14:37 +0100)
committerJavier Martinez Canillas <javierm@redhat.com>
Wed, 16 Feb 2022 12:29:03 +0000 (13:29 +0100)
commit4a564e59bfb7732ec168f66ee77bf1eb81ff9319
tree863a4224d776f2cd7504021098358258f06ec803
parentb3d9f59f69289569133730e1be019adcd9e06611
drm/format-helper: Add drm_fb_xrgb8888_to_gray8_line()

Pull the per-line conversion logic into a separate helper function.

This will allow to do line-by-line conversion in other helpers that
convert to a gray8 format.

Suggested-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20220214133710.3278506-2-javierm@redhat.com
drivers/gpu/drm/drm_format_helper.c