From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH RFC xf86-video-intel 2/2] Add underscan properties
Date: Fri, 30 Mar 2012 14:32:06 +0300 [thread overview]
Message-ID: <20120330113206.GX4917@intel.com> (raw)
In-Reply-To: <1333059615_147779@CP5-2952>
On Thu, Mar 29, 2012 at 11:19:59PM +0100, Chris Wilson wrote:
> On Thu, 29 Mar 2012 18:30:20 -0300, Paulo Zanoni <przanoni@gmail.com> wrote:
> > From: Paulo Zanoni <paulo.r.zanoni@intel.com>
> >
> > In the Kernel side, these are crtc properties (since in the hardware,
> > underscan use the panel fitters, which are attached to the pipes).
> > Ideally we should make these as crtc properties too, but since xrandr
> > doesn't have support for them, we expose the atoms as output
> > properties. This is not the best solution, but making the kernel
> > underscan properties be output properties instead of crtc properties
> > would be even more wrong.
>
> However, we have set the precedent with panel fitting already and this is
> just a variation on that theme? My wish would be to be able describe the
> dst box of the framebuffer on the crtc as part of the mode.
I'm assuming you mean that you'd like to have the overscan borders
be part of the mode structure itself. Agreed. However there's another
problem with the current mode setting API.
This is the full display pipeline as I see it:
fb area [w0,h0] -> [x1,y1,w1,h1] plane transform [x2,y2,w2,h2] ->
CRTC area [w3,h3] -> [0,0,w3,h3] crtc transform [x4,y4,w4,h4] ->
display mode active area [hdisp,vdisp]
Rectangle [x1,y1,w1,h1] is within the fb area [w0,h0]
Rectangle [x2,y2,w2,h2] is within the CRTC area [w3,h3]
Rectangle [x4,y4,w4,h4] is within the display mode active area [hdisp,vdisp]
Currently we're missing the CRTC area and the overscan borders. This
means you have to add some policy into the kernel on how to choose
the display mode, and how to program panel fitters and whatnot. Sure
you can add properties to influence those policy decisions, but what
you end up with is still quite limited.
If the API would allow you to specify both the borders, and the CRTC
area size, you could do away with all mode selection policy, and
panel fitter and border properties, and you would end up with a more
powerful API.
--
Ville Syrjälä
Intel OTC
next prev parent reply other threads:[~2012-03-30 11:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-29 21:30 [PATCH RFC xf86-video-intel 1/2] Update the rotation property whenever we change the rotation Paulo Zanoni
2012-03-29 21:30 ` [PATCH RFC xf86-video-intel 2/2] Add underscan properties Paulo Zanoni
2012-03-29 22:19 ` Chris Wilson
2012-03-30 11:32 ` Ville Syrjälä [this message]
2012-03-29 22:16 ` [PATCH RFC xf86-video-intel 1/2] Update the rotation property whenever we change the rotation Chris Wilson
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=20120330113206.GX4917@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=dri-devel@lists.freedesktop.org \
--cc=paulo.r.zanoni@intel.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.