]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd16c189b9f28ea40aa980f488de99693ccee53db
tree863a4224d776f2cd7504021098358258f06ec803
parent77dec8e0d1c892cfaf40b74e225b82896472640e
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