Adding rotation to xf86-video-omapfb
Daniel Stone
daniel at fooishbar.org
Thu Dec 27 18:50:00 PST 2012
Hi,
On 28 December 2012 01:08, Maarten Maathuis <madman2003 at gmail.com> wrote:
> As far as i remember you typically allocate a shadow (there are some
> driver hooks for that, check existing drivers like intel, radeon or
> nouveau). This will become the new scanout buffer and this has the
> rotated dimensions. The original rendering will still be done to the
> "normal" framebuffer. Composite with rotation in combination with
> damage (a system used in X to track what areas have been rendered to
> i.e. damaged) is used to keep the shadow up to date.
>
> You should probably implement the shadow hooks that are present in the
> crtc structure. You should make sure this shadow allocation gets used
> as the framebuffer. And you should check if your composite
> implementation supports rotation, if not it may be necessary to expand
> it with support for any scaling/rotation matrix or else add a special
> case for 90 degree rotation if your hardware supports that.
>
As you can see from the linked diff, the fbdev driver implements rotation
as the hardware can do it on scanout. It also doesn't support any
acceleration, given that OMAP carries an SGX, so neither the shadow nor
Composite hooks are relevant here.
Cheers,
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20121228/efc361ac/attachment.html>
More information about the xorg-devel
mailing list