drm/format-helper: Add XRGB8888-to-RGB332 to drm_fb_blit()

List the conversion from XRGB8888-to-RGB332 in drm_fb_blit(), so that
drivers based on sysfb-helpers can use it.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20250714151513.309475-7-tzimmermann@suse.de
This commit is contained in:
Thomas Zimmermann
2025-07-14 17:13:06 +02:00
parent 7ff61177b7
commit b3c7edd5e5
+3
View File
@@ -1243,6 +1243,9 @@ int drm_fb_blit(struct iosys_map *dst, const unsigned int *dst_pitch, uint32_t d
} else if (dst_format == DRM_FORMAT_BGRX8888) {
drm_fb_swab(dst, dst_pitch, src, fb, clip, false, state);
return 0;
} else if (dst_format == DRM_FORMAT_RGB332) {
drm_fb_xrgb8888_to_rgb332(dst, dst_pitch, src, fb, clip, state);
return 0;
}
}