From: Timur Tabi <timur@freescale.com>
To: linux-fbdev-devel@lists.sourceforge.net
Subject: Re: Best way to support mulitple planes?
Date: Thu, 13 Sep 2007 16:29:31 -0500 [thread overview]
Message-ID: <46E9ABBB.4040008@freescale.com> (raw)
In-Reply-To: <20070913211025.GB18714@sci.fi>
Ville Syrjälä wrote:
> It is one way. At least omapfb does things the same way, and it has some
> custom ioctls to control the planes.
Thanks, I'll take a look at it.
> Another way would be to have one
> fb device and implement support for the extra planes in user space.
Can you give me more details? How exactly would I do that in user space?
> Perhaps return an error for any ioctls when the plane is not available,
> or implement a custom ioctl which carries that information. You could
> also leave that up to user space to know. It seems to me that you'll need
> a customized user space solution anyway (eg. a DirectFB gfx driver or a
> custom kdrive X server).
You might be right.
Would it be correct to say that applications expect the separate devices
(/dev/fb0, /dev/fb1, etc) to represent different monitors?
As I said, our hardware does alpha-channel blending of the three planes onto
one display. If an application opens /dev/fb1 and tries to draw on it,
nothing appears because the alpha channel for each pixel defaults to 0, which
means full transparency. So our hardware ignores the alpha channel for
/dev/fb0 but not /dev/fb1 or /dev/fb2.
In addition, if the resolution is changed on /dev/fb0, it automatically
changes for /dev/fb1 and /dev/fb2 as well. Is there a mechanism for telling
the application that the resolution has changed?
Do you know how DirectFB supports layers? That is, what mechanism does
DirectFB use to draw to one layer versus another layer? I tried examining the
DirectFB source, but I couldn't figure it out.
--
Timur Tabi
Linux Kernel Developer @ Freescale
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
next prev parent reply other threads:[~2007-09-13 21:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-13 19:50 Best way to support mulitple planes? Timur Tabi
2007-09-13 21:10 ` Ville Syrjälä
2007-09-13 21:29 ` Timur Tabi [this message]
2007-09-16 2:38 ` Antonino A. Daplas
2007-09-16 17:12 ` Ondrej Zajicek
2007-09-16 2:32 ` Antonino A. Daplas
2007-09-16 2:45 ` Antonino A. Daplas
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=46E9ABBB.4040008@freescale.com \
--to=timur@freescale.com \
--cc=linux-fbdev-devel@lists.sourceforge.net \
/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).