RFC drm/format-helper: Introduce drm_pixmap, font support and filling
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest23 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/23 | drm/format-helper: Add struct drm_pixmapdrivers/ include/ | +81 | 0 replies | |
| 2/23 | drm/format-helper: Use struct drm_pixmap for drm_fb_memcpy()drivers/ drivers/ drivers/ +5 more | +42 | 0 replies | |
| 3/23 | drm/format-helper: Streamline drm_fb_xfrm() implementationsdrivers/ | +33 | 0 replies | |
| 4/23 | drm/format-helper: Use struct drm_pixmap internallydrivers/ | +57 | 0 replies | |
| 5/23 | drm/format-helper: Use struct drm_pixmap for drm_fb_swab()drivers/ drivers/ drivers/ +2 more | +23 | 0 replies | |
| 6/23 | drm/format-helper: Use struct drm_pixmap for drm_fb_xrgb8888_to_rgb332()drivers/ drivers/ drivers/ +2 more | +13 | 0 replies | |
| 7/23 | drm/format-helper: Use struct drm_pixmap for drm_fb_xrgb8888_to_rgb565()drivers/ drivers/ drivers/ +2 more | +15 | 0 replies | |
| 8/23 | drm/format-helper: Use struct drm_pixmap for drm_fb_xrgb8888_to_xrgb1555()drivers/ drivers/ include/ | +12 | 0 replies | |
| 9/23 | drm/format-helper: Use struct drm_pixmap for drm_fb_xrgb8888_to_argb1555()drivers/ drivers/ include/ | +13 | 0 replies | |
| 10/23 | drm/format-helper: Use struct drm_pixmap for drm_fb_xrgb8888_to_rgba5551()drivers/ drivers/ include/ | +10 | 0 replies | |
| 11/23 | drm/format-helper: Use struct drm_pixmap for drm_fb_xrgb8888_to_rgb888()drivers/ drivers/ drivers/ +1 more | +13 | 0 replies | |
| 12/23 | drm/format-helper: Use struct drm_pixmap for drm_fb_xrgb8888_to_argb8888()drivers/ drivers/ include/ | +13 | 0 replies | |
| 13/23 | drm/format-helper: Use struct drm_pixmap for drm_fb_xrgb8888_to_abgr8888()drivers/ | +2 | 0 replies | |
| 14/23 | drm/format-helper: Use struct drm_pixmap for drm_fb_xrgb8888_to_xbgr8888()drivers/ | +2 | 0 replies | |
| 15/23 | drm/format-helper: Use struct drm_pixmap for drm_fb_xrgb8888_to_xrgb2101010()drivers/ drivers/ include/ | +10 | 0 replies | |
| 16/23 | drm/format-helper: Use struct drm_pixmap for drm_fb_xrgb8888_to_argb2101010()drivers/ drivers/ include/ | +11 | 0 replies | |
| 17/23 | drm/format-helper: Use struct drm_pixmap for drm_fb_xrgb8888_to_gray8()drivers/ drivers/ drivers/ +3 more | +21 | 0 replies | |
| 18/23 | drm/format-helper: Use struct drm_pixmap for drm_fb_xrgb8888_to_mono()drivers/ drivers/ drivers/ +2 more | +28 | 0 replies | |
| 19/23 | drm/format-helper: Use struct drm_pixmap for drm_fb_blit()drivers/ drivers/ drivers/ +3 more | +47 | 0 replies | |
| 20/23 | drm/format-helper: Add font-support for DRM pixmapdrivers/ include/ | +31 | 0 replies | |
| 21/23 | drm/format-helper: Add color palettedrivers/ include/ | +48 | 0 replies | |
| 22/23 | drm/format-helper: Support blitting from C1 to XRGB8888drivers/ include/ | +41 | 0 replies | |
| 23/23 | drm/format-helper: Add drm_fb_fill() to fill screen with colordrivers/ include/ | +161 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/23] [RFC] drm/format-helper: Introduce drm_pixmap, font support and filling
This RFC patchset implements various features required for DRM panic handling [1] and should (for now) be seen in that context.
Most of all, the patchset replaces struct drm_framebuffer with struct drm_pixmap in the format-conversion helpers. DRM pixmap represents a source of pixel data for the blitting operations. Patches 1 to 19 update the interface, implementation and all of the callers. These patches could be useful even without DRM panic handling.
With struct drm_pixmap in place, patches 20 to 22 implement rudimentary support for blitting font data. The pixmap refers to a character's glyph, which the blit routines write to the destination memory. An example on blitting strings is given in patch 20's commit description.
Patch 23 adds rudimentary support for fill operations. The design is based on blitting, but blits the same color into each pixel.
[1] https://patchwork.freedesktop.org/series/122244/
Thomas Zimmermann (23):
drm/format-helper: Add struct drm_pixmap drm/format-helper: Use struct drm_pixmap for drm_fb_memcpy() drm/format-helper: Streamline drm_fb_xfrm() implementations drm/format-helper: Use struct drm_pixmap internally drm/format-helper: Use struct drm_pixmap for drm_fb_swab() drm/format-helper: Use struct drm_pixmap for
drm_fb_xrgb8888_to_rgb332()
drm/format-helper: Use struct drm_pixmap for
drm_fb_xrgb8888_to_rgb565()
drm/format-helper: Use struct drm_pixmap for
drm_fb_xrgb8888_to_xrgb1555()
drm/format-helper: Use struct drm_pixmap for
drm_fb_xrgb8888_to_argb1555()
drm/format-helper: Use struct drm_pixmap for
drm_fb_xrgb8888_to_rgba5551()
drm/format-helper: Use struct drm_pixmap for
drm_fb_xrgb8888_to_rgb888()
drm/format-helper: Use struct drm_pixmap for
drm_fb_xrgb8888_to_argb8888()
drm/format-helper: Use struct drm_pixmap for
drm_fb_xrgb8888_to_abgr8888()
drm/format-helper: Use struct drm_pixmap for
drm_fb_xrgb8888_to_xbgr8888()
drm/format-helper: Use struct drm_pixmap for
drm_fb_xrgb8888_to_xrgb2101010()
drm/format-helper: Use struct drm_pixmap for
drm_fb_xrgb8888_to_argb2101010()
drm/format-helper: Use struct drm_pixmap for
drm_fb_xrgb8888_to_gray8() drm/format-helper: Use struct drm_pixmap for drm_fb_xrgb8888_to_mono() drm/format-helper: Use struct drm_pixmap for drm_fb_blit() [DO NOT MERGE] drm/format-helper: Add font-support for DRM pixmap [DO NOT MERGE] drm/format-helper: Add color palette
[DO NOT MERGE] drm/format-helper: Support blitting from C1 to XRGB8888 [DO NOT MERGE] drm/format-helper: Add drm_fb_fill() to fill screen
with color
drivers/gpu/drm/ast/ast_mode.c | 4 +- drivers/gpu/drm/drm_format_helper.c | 678 ++++++++++++------ drivers/gpu/drm/drm_mipi_dbi.c | 9 +- drivers/gpu/drm/gud/gud_pipe.c | 24 +- drivers/gpu/drm/hyperv/hyperv_drm_modeset.c | 4 +- drivers/gpu/drm/mgag200/mgag200_mode.c | 4 +- drivers/gpu/drm/solomon/ssd130x.c | 12 +- .../gpu/drm/tests/drm_format_helper_test.c | 106 ++- drivers/gpu/drm/tiny/cirrus.c | 6 +- drivers/gpu/drm/tiny/ofdrm.c | 6 +- drivers/gpu/drm/tiny/repaper.c | 4 +- drivers/gpu/drm/tiny/simpledrm.c | 6 +- drivers/gpu/drm/tiny/st7586.c | 4 +- include/drm/drm_format_helper.h | 116 ++- 14 files changed, 678 insertions(+), 305 deletions(-)
Signature · 1 line
2.43.0