[PATCH 3/9] drm/sysfb: Find screen_info format with helpers
Javier Martinez Canillas
javierm at redhat.com
Fri Jul 11 12:08:01 UTC 2025
Thomas Zimmermann <tzimmermann at suse.de> writes:
> Convert drm_sysfb_get_format_si() to lookup the screen_info color
> format as struct pixel_format with screen_info_pixel_format(). Then
> search the list of given formats for the screen_info format with
> pixel_format_equal().
>
> Replaces custom code with helpers. The pixel-compare helper
> pixel_format_equal() also handles indexed color formats. Prepares
> for sysfb drivers to support color palettes.
>
> Signed-off-by: Thomas Zimmermann <tzimmermann at suse.de>
> ---
> drivers/gpu/drm/sysfb/drm_sysfb_screen_info.c | 21 ++++++++-----------
> 1 file changed, 9 insertions(+), 12 deletions(-)
>
Reviewed-by: Javier Martinez Canillas <javierm at redhat.com>
--
Best regards,
Javier Martinez Canillas
Core Platforms
Red Hat
More information about the dri-devel
mailing list