Skip to content

Commit b3c7edd

Browse files
committed
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
1 parent 7ff6117 commit b3c7edd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/gpu/drm/drm_format_helper.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,6 +1243,9 @@ int drm_fb_blit(struct iosys_map *dst, const unsigned int *dst_pitch, uint32_t d
12431243
} else if (dst_format == DRM_FORMAT_BGRX8888) {
12441244
drm_fb_swab(dst, dst_pitch, src, fb, clip, false, state);
12451245
return 0;
1246+
} else if (dst_format == DRM_FORMAT_RGB332) {
1247+
drm_fb_xrgb8888_to_rgb332(dst, dst_pitch, src, fb, clip, state);
1248+
return 0;
12461249
}
12471250
}
12481251

0 commit comments

Comments
 (0)