From: Gerd Hoffmann <kraxel@redhat.com>
To: dri-devel@lists.freedesktop.org
Cc: sam@ravnborg.org, Gerd Hoffmann <kraxel@redhat.com>
Subject: [PATCH v3 0/5] drm/cirrus: rewrite and modernize driver.
Date: Fri, 5 Apr 2019 11:52:14 +0200 [thread overview]
Message-ID: <20190405095219.9231-1-kraxel@redhat.com> (raw)
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
next reply other threads:[~2019-04-05 9:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-05 9:52 Gerd Hoffmann [this message]
2019-04-05 9:52 ` [PATCH v3 1/5] drm: move tinydrm format conversion helpers to new drm_format_helper.c Gerd Hoffmann
2019-04-05 13:46 ` Noralf Trønnes
2019-04-15 9:31 ` Daniel Vetter
2019-04-05 9:52 ` [PATCH v3 2/5] drm: add drm_fb_memcpy_dstclip() helper Gerd Hoffmann
2019-04-05 13:51 ` Noralf Trønnes
2019-04-05 9:52 ` [PATCH v3 3/5] drm: add drm_fb_xrgb8888_to_rgb565_dstclip() Gerd Hoffmann
2019-04-05 13:57 ` Noralf Trønnes
2019-04-05 9:52 ` [PATCH v3 4/5] drm: add drm_fb_xrgb8888_to_rgb888_dstclip() Gerd Hoffmann
2019-04-05 13:59 ` Noralf Trønnes
2019-04-05 9:52 ` [PATCH v3 5/5] drm/cirrus: rewrite and modernize driver Gerd Hoffmann
2019-04-05 14:43 ` Noralf Trønnes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190405095219.9231-1-kraxel@redhat.com \
--to=kraxel@redhat.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=sam@ravnborg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).