Re: [Dri-devel] vblank and i810

2002-12-13 Thread Dave Airlie
Cool, I'll take a look at the XFree tree when I get back to work, just to give people a quick idea of what I want initially, I want to use the hardware flipping as opposed to the blt we do now, and the i815 has synchronous flipping by default (the async doesn't work properly - errata to spec) whi

Re: [Dri-devel] vblank and i810

2002-12-13 Thread Leif Delgass
Just a quick follow-up to this. It looks like Arjan's patch comes from XFree86 CVS, which got a bunch of i830 updates from Keith and David Dawes a few days ago (which explains the "KW" comments in Arjan's patch). I assume we'll get these into DRI with the next sync-up. Just another example of th

RE: [Dri-devel] vblank and i810

2002-12-13 Thread Sottek, Matthew J
>So, how do you delay the flip-blit to the vblank but NOT delay other >rendering? You would delay rendering from that ring. There are 2 rings on i810 (Only one gets used by XFree/DRM). Depending on what you are trying to achieve, that may be what you want. If you used an interrupt to indicate vb

RE: [Dri-devel] vblank and i810

2002-12-13 Thread Sottek, Matthew J
rom: Antonino Daplas [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 6:15 PM To: [EMAIL PROTECTED] Cc: DRI developer's list Subject: Re: [Dri-devel] vblank and i810 On Sat, 2002-12-14 at 03:41, Ian Romanick wrote: > On Fri, Dec 13, 2002 at 01:15:01PM -0800, Sottek, Matt

Re: [Dri-devel] vblank and i810

2002-12-13 Thread Leif Delgass
On Fri, 13 Dec 2002, Leif Delgass wrote: > On Fri, 13 Dec 2002, Ian Romanick wrote: > > > On Fri, Dec 13, 2002 at 05:43:51PM -0500, Leif Delgass wrote: > > > FYI, I noticed this recent patch from Arjan van de Ven from lkml. It's > > > got page flipping and user-defined interrupts for i830 (for 2

Re: [Dri-devel] vblank and i810

2002-12-13 Thread Leif Delgass
On Fri, 13 Dec 2002, Ian Romanick wrote: > On Fri, Dec 13, 2002 at 05:43:51PM -0500, Leif Delgass wrote: > > FYI, I noticed this recent patch from Arjan van de Ven from lkml. It's > > got page flipping and user-defined interrupts for i830 (for 2.4): > > > > http://marc.theaimsgroup.com/?l=linux-

Re: [Dri-devel] vblank and i810

2002-12-13 Thread Antonino Daplas
On Sat, 2002-12-14 at 03:41, Ian Romanick wrote: > On Fri, Dec 13, 2002 at 01:15:01PM -0800, Sottek, Matthew J wrote: > > > > The i810's vblank interrupt does not go to the CPU's interrupt > > controller IIRC. Therefore you have to poll for vblank by reading > > the current scanline. > > I fully

Re: [Dri-devel] vblank and i810

2002-12-13 Thread Ian Romanick
On Fri, Dec 13, 2002 at 05:43:51PM -0500, Leif Delgass wrote: > FYI, I noticed this recent patch from Arjan van de Ven from lkml. It's > got page flipping and user-defined interrupts for i830 (for 2.4): > > http://marc.theaimsgroup.com/?l=linux-kernel&m=103969295019388&w=2 Good catch. > Out of

Re: [Dri-devel] vblank and i810

2002-12-13 Thread Ian Romanick
On Fri, Dec 13, 2002 at 01:15:01PM -0800, Sottek, Matthew J wrote: > > The i810's vblank interrupt does not go to the CPU's interrupt > controller IIRC. Therefore you have to poll for vblank by reading > the current scanline. I fully expect that there's something that I'm missing, but shouldn't s

Re: [Dri-devel] vblank and i810

2002-12-13 Thread Leif Delgass
FYI, I noticed this recent patch from Arjan van de Ven from lkml. It's got page flipping and user-defined interrupts for i830 (for 2.4): http://marc.theaimsgroup.com/?l=linux-kernel&m=103969295019388&w=2 Out of curiosity, I just downloaded the i810/i815 specs. At first glance I don't see why yo

Re: [Dri-devel] vblank and i810

2002-12-13 Thread Ian Romanick
On Fri, Dec 13, 2002 at 01:15:01PM -0800, Sottek, Matthew J wrote: > The i810's vblank interrupt does not go to the CPU's interrupt > controller IIRC. Therefore you have to poll for vblank by reading > the current scanline. That's quite surprising to me. > Usually apps that are waiting on vblank

RE: [Dri-devel] vblank and i810

2002-12-13 Thread Sottek, Matthew J
I developer's list Subject: Re: [Dri-devel] vblank and i810 On Thu, Dec 12, 2002 at 11:16:44PM -, Dave Airlie wrote: > > Well I asked a question on dri-users and Keith said I'd be better asking > here .. > I want to get my OpenGL application to stop flickering on my i815 usin

Re: [Dri-devel] vblank and i810

2002-12-13 Thread Ian Romanick
On Thu, Dec 12, 2002 at 11:16:44PM -, Dave Airlie wrote: > > Well I asked a question on dri-users and Keith said I'd be better asking > here .. > I want to get my OpenGL application to stop flickering on my i815 using a > sync to the vertical refresh, work has apparently started on this for th