Re: Adding rotation to xf86-video-omapfb

2012-12-30 Thread Denis 'GNUtoo' Carikli
On Fri, 28 Dec 2012 12:38:54 +0100 Maarten Maathuis wrote: > I think your approach of swapped width and height was a good idea (if > the kernel interface of omapfb defines that behavior) , but you have > to find out if the driver reads back those values you send to omapfb. > Because somewhere thos

Re: Adding rotation to xf86-video-omapfb

2012-12-28 Thread Maarten Maathuis
On Fri, Dec 28, 2012 at 3:50 AM, Daniel Stone wrote: > Hi, > > > On 28 December 2012 01:08, Maarten Maathuis 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 n

Re: Adding rotation to xf86-video-omapfb

2012-12-27 Thread Daniel Stone
Hi, On 28 December 2012 01:08, Maarten Maathuis 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 orig

Re: Adding rotation to xf86-video-omapfb

2012-12-27 Thread Maarten Maathuis
On Fri, Dec 28, 2012 at 2:08 AM, Maarten Maathuis wrote: > On Thu, Dec 27, 2012 at 8:48 PM, Denis 'GNUtoo' Carikli > wrote: >> Hi, >> >> I've been trying to add rotation to the out of tree >> xf86-video-omapfb(I'm aware of xf86-video-omap but I've an omap3, and >> beside, it requires a staging ke

Re: Adding rotation to xf86-video-omapfb

2012-12-27 Thread Maarten Maathuis
On Thu, Dec 27, 2012 at 8:48 PM, Denis 'GNUtoo' Carikli wrote: > Hi, > > I've been trying to add rotation to the out of tree > xf86-video-omapfb(I'm aware of xf86-video-omap but I've an omap3, and > beside, it requires a staging kernel driver). > > So far I got rotation working(xrandr -o 1 works).

Adding rotation to xf86-video-omapfb

2012-12-27 Thread Denis 'GNUtoo' Carikli
Hi, I've been trying to add rotation to the out of tree xf86-video-omapfb(I'm aware of xf86-video-omap but I've an omap3, and beside, it requires a staging kernel driver). So far I got rotation working(xrandr -o 1 works). But when I want to rotate back (xrandr -o 0) Xorg checks if the requested