From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Marek Vasut <marex@denx.de>, Stefan Agner <stefan@agner.ch>,
Philipp Zabel <p.zabel@pengutronix.de>
Cc: dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org
Subject: Overlay support in the i.MX7 display
Date: Fri, 1 Nov 2019 10:43:18 +0200 [thread overview]
Message-ID: <20191101084318.GA8428@pendragon.ideasonboard.com> (raw)
Hello,
I'm looking at the available options to support overlays in the display
pipeline of the i.MX7. The LCDIF itself unfortunaltey doesn't support
overlays, the feature being implemented in the PXP. A driver for the PXP
is available but only supports older SoCs whose PXP doesn't support
overlays. This driver is implemented as a V4L2 mem2mem driver, which
makes support of additional input channels impossible.
Here are the options I can envision:
- Extend the existing PXP driver to support multiple channels. This is
technically feasible, but will require moving away from the V4L2
mem2mem framework, which would break userspace. I don't think this
path could lead anywhere.
- Write a new PXP driver for the i.MX7, still using V4L2, but with
multiple video nodes. This would allow blending multiple layers, but
would require writing the output to memory, while the PXP has support
for direct connections to the LCDIF (through small SRAM buffers).
Performances would thus be suboptimal. The API would also be awkward,
as using the PXP for display would require usage of V4L2 in
applications.
- Extend the mxsfb driver with PXP support, and expose the PXP inputs as
KMS planes. The PXP would only be used when available, and would be
transparent to applications. This would however prevent using it
separately from the display (to perform multi-pass alpha blending for
instance).
What would be the best option going forward ? Would any of you, by any
chance, have already started work in this area ?
--
Regards,
Laurent Pinchart
next reply other threads:[~2019-11-01 8:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-01 8:43 Laurent Pinchart [this message]
2019-11-03 18:15 ` Overlay support in the i.MX7 display Stefan Agner
2019-11-04 8:09 ` Pekka Paalanen
2019-11-04 12:58 ` Laurent Pinchart
2019-11-04 18:24 ` Daniel Vetter
2019-11-09 14:30 ` Nicolas Dufresne
2019-11-09 14:27 ` Nicolas Dufresne
2019-11-09 14:18 ` Nicolas Dufresne
2019-11-05 9:17 ` Philipp Zabel
2019-11-09 14:38 ` Nicolas Dufresne
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=20191101084318.GA8428@pendragon.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-media@vger.kernel.org \
--cc=marex@denx.de \
--cc=p.zabel@pengutronix.de \
--cc=stefan@agner.ch \
/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