v3: - move tinydrm converters to new drm_format_helpers.[ch] - drop dstclip bool argument, use multiple functions instead (with common code factored out into a helper). - rewrite cirrus register access to use helpers instead of macros. - misc minor fixes. v2: - It's a little series now. It moves tinydrm converters to drm_fb_helpers.c first. - Added support for RG24 and XR24. Without bpp module parameter, instead the driver will convert formats if needed. - A bunch of little tweaks here and there (embedded struct drm_driver, use more drm helpers, ...)
Gerd Hoffmann (5): drm: move tinydrm format conversion helpers to new drm_format_helper.c drm: add drm_fb_memcpy_dstclip() helper drm: add drm_fb_xrgb8888_to_rgb565_dstclip() drm: add drm_fb_xrgb8888_to_rgb888_dstclip() drm/cirrus: rewrite and modernize driver. drivers/gpu/drm/cirrus/cirrus_drv.h | 251 ------- include/drm/drm_format_helper.h | 34 + include/drm/tinydrm/tinydrm-helpers.h | 10 - drivers/gpu/drm/cirrus/cirrus.c | 657 ++++++++++++++++++ drivers/gpu/drm/cirrus/cirrus_drv.c | 161 ----- drivers/gpu/drm/cirrus/cirrus_fbdev.c | 309 -------- drivers/gpu/drm/cirrus/cirrus_main.c | 328 --------- drivers/gpu/drm/cirrus/cirrus_mode.c | 617 ---------------- drivers/gpu/drm/cirrus/cirrus_ttm.c | 343 --------- drivers/gpu/drm/drm_format_helper.c | 326 +++++++++ .../gpu/drm/tinydrm/core/tinydrm-helpers.c | 158 ----- drivers/gpu/drm/tinydrm/mipi-dbi.c | 7 +- drivers/gpu/drm/tinydrm/repaper.c | 3 +- drivers/gpu/drm/tinydrm/st7586.c | 3 +- drivers/gpu/drm/Makefile | 3 +- drivers/gpu/drm/cirrus/Kconfig | 2 +- drivers/gpu/drm/cirrus/Makefile | 3 - 17 files changed, 1028 insertions(+), 2187 deletions(-) delete mode 100644 drivers/gpu/drm/cirrus/cirrus_drv.h create mode 100644 include/drm/drm_format_helper.h create mode 100644 drivers/gpu/drm/cirrus/cirrus.c delete mode 100644 drivers/gpu/drm/cirrus/cirrus_drv.c delete mode 100644 drivers/gpu/drm/cirrus/cirrus_fbdev.c delete mode 100644 drivers/gpu/drm/cirrus/cirrus_main.c delete mode 100644 drivers/gpu/drm/cirrus/cirrus_mode.c delete mode 100644 drivers/gpu/drm/cirrus/cirrus_ttm.c create mode 100644 drivers/gpu/drm/drm_format_helper.c -- 2.18.1 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel