Re: cursor handling and updates inside DRM

2008-07-25 Thread Tiago Vignatti
Stephane Marchesin escreveu: > On Fri, Jul 11, 2008 at 1:12 AM, Tiago Vignatti <[EMAIL PROTECTED]> wrote: >> Yeah, but the current design in the kms (i.e. DRM touching the >> registers) is not good as well. The pointer is jumping a lot -- much >> more than the "old" design -- because with a single

Re: cursor handling and updates inside DRM

2008-07-12 Thread Simon Thum
Jesse Barnes wrote: > Right, and it's actually fairly common in other OSes. It sounds like the > biggest chunk of additional code will be dealing with acceleration; I'm not > sure how complex the latest algorithms are... Also input transformation is > an unknown, but it's a bit dubious anyway.

Re: cursor handling and updates inside DRM

2008-07-12 Thread Simon Thum
Tiago Vignatti wrote: > [0] https://bugs.freedesktop.org/attachment.cgi?id=17545 > This doc says that it improves the heavy-load behavior, but I'm > failing to see it. Can you be more specific? Sure. The old code would assume mouse delta = speed. Of course, this assumption is valid only as lo

Re: cursor handling and updates inside DRM

2008-07-11 Thread Jesse Barnes
On Thursday, July 10, 2008 9:14:20 pm Dave Airlie wrote: > > Right, and it's actually fairly common in other OSes. It sounds like the > > biggest chunk of additional code will be dealing with acceleration; I'm > > not sure how complex the latest algorithms are... Also input > > transformation is

Re: cursor handling and updates inside DRM

2008-07-10 Thread Simon Thum
Tiago Vignatti wrote: > Daniel Stone escreveu: >> On Thu, Jul 10, 2008 at 04:05:57AM -0300, Tiago Vignatti wrote: >>> - transform relative motion into absolute >>> - takes care the cursor limits >>> - responsible for the acceleration computation >>> - responsible for the input transformation as wel

Re: cursor handling and updates inside DRM

2008-07-10 Thread Dave Airlie
On Fri, Jul 11, 2008 at 1:17 PM, Jesse Barnes <[EMAIL PROTECTED]> wrote: > On Thursday, July 10, 2008 3:59 pm Tiago Vignatti wrote: >> Simon Thum escreveu: >> > But all this in the kernel is an impedance mismatch to me. What could it >> > buy us we don't have today? >> >> Improve heavy-load behavio

Re: cursor handling and updates inside DRM

2008-07-10 Thread Jesse Barnes
On Thursday, July 10, 2008 3:59 pm Tiago Vignatti wrote: > Simon Thum escreveu: > > But all this in the kernel is an impedance mismatch to me. What could it > > buy us we don't have today? > > Improve heavy-load behavior -- no jumping pointer. > > (BTW, your mouse acceleration proposal [0] doesn't

Re: cursor handling and updates inside DRM

2008-07-10 Thread Stephane Marchesin
On Fri, Jul 11, 2008 at 1:12 AM, Tiago Vignatti <[EMAIL PROTECTED]> wrote: > > Hi Jakob, > > Jakob Bornecrantz escreveu: >> The only thing that should be in the kernel is the: >> - touch the gfx registers. >> and in some regards >> - takes care of the cursor limits. >> >> Anything else is the cli

Re: cursor handling and updates inside DRM

2008-07-10 Thread Tiago Vignatti
Hi Jakob, Jakob Bornecrantz escreveu: > The only thing that should be in the kernel is the: > - touch the gfx registers. > and in some regards > - takes care of the cursor limits. > > Anything else is the client responsibility. The coordinates that we > feed the kernel will be relative to the

Re: cursor handling and updates inside DRM

2008-07-10 Thread Tiago Vignatti
Simon Thum escreveu: > But all this in the kernel is an impedance mismatch to me. What could it > buy us we don't have today? Improve heavy-load behavior -- no jumping pointer. (BTW, your mouse acceleration proposal [0] doesn't do it at all.) Cheers, [0] https://bugs.freedesktop.org/attachmen

Re: cursor handling and updates inside DRM

2008-07-10 Thread Jakob Bornecrantz
On Thu, Jul 10, 2008 at 2:55 PM, Tiago Vignatti <[EMAIL PROTECTED]> wrote: > Daniel Stone escreveu: > > On Thu, Jul 10, 2008 at 04:05:57AM -0300, Tiago Vignatti wrote: > >> - transform relative motion into absolute > >> - takes care the cursor limits > >> - responsible for the acceleration computa

Re: cursor handling and updates inside DRM

2008-07-10 Thread Tiago Vignatti
Daniel Stone escreveu: > On Thu, Jul 10, 2008 at 04:05:57AM -0300, Tiago Vignatti wrote: >> - transform relative motion into absolute >> - takes care the cursor limits >> - responsible for the acceleration computation >> - responsible for the input transformation as well? >> - touch the gfx registe

Re: cursor handling and updates inside DRM

2008-07-10 Thread Daniel Stone
On Thu, Jul 10, 2008 at 04:05:57AM -0300, Tiago Vignatti wrote: > - transform relative motion into absolute > - takes care the cursor limits > - responsible for the acceleration computation > - responsible for the input transformation as well? > - touch the gfx registers. Hang on, are we actually

cursor handling and updates inside DRM

2008-07-10 Thread Tiago Vignatti
Hi, The current DRM kernel modesetting tree is already taking care to update the cursor registers and paint it to the screen. Very cool [0]. What I've done today is a shortcut between the kernel input layer and DRM to update the cursor directly on screen without the X server be notified always