]> Gentwo Git Trees - linux/.git/commit
drm/format-helper: introduce drm_fb_xrgb8888_to_gray2()
authorMarcus Folkesson <marcus.folkesson@gmail.com>
Mon, 21 Jul 2025 10:43:35 +0000 (12:43 +0200)
committerJavier Martinez Canillas <javierm@redhat.com>
Mon, 1 Sep 2025 13:35:07 +0000 (15:35 +0200)
commit8bde81ec684238587decd5ab6b1bf18041814937
treeb8ffe67ee51aeadc0e7f4bb8b206535b83889ae7
parente61c35157d32b4b422f0a4cbc3c40d04d883a9c9
drm/format-helper: introduce drm_fb_xrgb8888_to_gray2()

Convert XRGB8888 to 2bit grayscale.

It uses drm_fb_xrgb8888_to_gray8() to convert the pixels to gray8 as an
intermediate step before converting to gray2.

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://lore.kernel.org/r/20250721-st7571-format-v2-5-159f4134098c@gmail.com
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
drivers/gpu/drm/drm_format_helper.c
include/drm/drm_format_helper.h