Re: [Intel-gfx] [RFC] DRI2 swapbuffers (yes yet again)

2009-05-07 Thread Kristian Høgsberg
On Tue, May 5, 2009 at 2:34 PM, Jesse Barnes wrote: > On Tue, 05 May 2009 11:24:29 -0700 > Ian Romanick wrote: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Kristian Høgsberg wrote: >> > On Tue, May 5, 2009 at 12:20 PM, Jesse Barnes >> > wrote: >> >> On Mon, 04 May 2009 19:14:29 -0

Re: [Intel-gfx] [RFC] DRI2 swapbuffers (yes yet again)

2009-05-07 Thread Kristian Høgsberg
2009/5/5 Ian Romanick : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Kristian Høgsberg wrote: >> On Tue, May 5, 2009 at 12:20 PM, Jesse Barnes >> wrote: >>> On Mon, 04 May 2009 19:14:29 -0700 >>> Ian Romanick wrote: >>> Having this ability would allow us to advertise some fbconfigs

Re: [Intel-gfx] [RFC] DRI2 swapbuffers (yes yet again)

2009-05-05 Thread Jesse Barnes
On Tue, 05 May 2009 11:24:29 -0700 Ian Romanick wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Kristian Høgsberg wrote: > > On Tue, May 5, 2009 at 12:20 PM, Jesse Barnes > > wrote: > >> On Mon, 04 May 2009 19:14:29 -0700 > >> Ian Romanick wrote: > >> > >>> Having this ability wou

Re: [Intel-gfx] [RFC] DRI2 swapbuffers (yes yet again)

2009-05-05 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kristian Høgsberg wrote: > On Tue, May 5, 2009 at 12:20 PM, Jesse Barnes > wrote: >> On Mon, 04 May 2009 19:14:29 -0700 >> Ian Romanick wrote: >> >>> Having this ability would allow us to advertise some fbconfigs with >>> GLX_SWAP_METHOD_OML = GLX_S

Re: [Intel-gfx] [RFC] DRI2 swapbuffers (yes yet again)

2009-05-05 Thread Kristian Høgsberg
On Tue, May 5, 2009 at 12:20 PM, Jesse Barnes wrote: > On Mon, 04 May 2009 19:14:29 -0700 > Ian Romanick wrote: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Jesse Barnes wrote: >> > On Mon, 04 May 2009 14:45:07 -0700 >> > Ian Romanick wrote: >> > >> >> There's a problem in dri2Swa

Re: [RFC] DRI2 swapbuffers (yes yet again)

2009-05-05 Thread Jesse Barnes
On Mon, 04 May 2009 19:14:29 -0700 Ian Romanick wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Jesse Barnes wrote: > > On Mon, 04 May 2009 14:45:07 -0700 > > Ian Romanick wrote: > > > >> There's a problem in dri2SwapBuffers. If a new libGL is used with > >> an old driver, psc->d

Re: [RFC] DRI2 swapbuffers (yes yet again)

2009-05-04 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jesse Barnes wrote: > On Mon, 04 May 2009 14:45:07 -0700 > Ian Romanick wrote: > >> There's a problem in dri2SwapBuffers. If a new libGL is used with an >> old driver, psc->dri2->setBuffers won't be set, right? > > Yes. I should probably add an #i

Re: [RFC] DRI2 swapbuffers (yes yet again)

2009-05-04 Thread Jesse Barnes
On Mon, 04 May 2009 14:45:07 -0700 Ian Romanick wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Jesse Barnes wrote: > > Ok, this set addresses all the shortcomings of the last set, and > > things seem quite solid, aside from output detection on my test > > platform which causes me t

Re: [RFC] DRI2 swapbuffers (yes yet again)

2009-05-04 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jesse Barnes wrote: > Ok, this set addresses all the shortcomings of the last set, and things > seem quite solid, aside from output detection on my test platform which > causes me to wait on flips from pipes with no outputs attached. Note > that this

Re: [Intel-gfx] [RFC] DRI2 swapbuffers (yes yet again)

2009-05-01 Thread Jesse Barnes
On Fri, 1 May 2009 14:19:29 -0700 Jesse Barnes wrote: > On Wed, 29 Apr 2009 18:02:59 -0700 > Jesse Barnes wrote: > > > On Wed, 29 Apr 2009 15:09:33 -0700 > > Jesse Barnes wrote: > > > I'm still working through mutlihead issues on the kernel side; the > > > flip waits should wait for *both* vbl

Re: [Intel-gfx] [RFC] DRI2 swapbuffers (yes yet again)

2009-05-01 Thread Jesse Barnes
On Sat, 2 May 2009 00:02:16 +0100 Jakob Bornecrantz wrote: > On Fri, May 1, 2009 at 10:19 PM, Jesse Barnes > wrote: > > On Wed, 29 Apr 2009 18:02:59 -0700 > > Jesse Barnes wrote: > > > >> On Wed, 29 Apr 2009 15:09:33 -0700 > >> Jesse Barnes wrote: > >> > I'm still working through mutlihead iss

Re: [Intel-gfx] [RFC] DRI2 swapbuffers (yes yet again)

2009-05-01 Thread Jakob Bornecrantz
On Fri, May 1, 2009 at 10:19 PM, Jesse Barnes wrote: > On Wed, 29 Apr 2009 18:02:59 -0700 > Jesse Barnes wrote: > >> On Wed, 29 Apr 2009 15:09:33 -0700 >> Jesse Barnes wrote: >> > I'm still working through mutlihead issues on the kernel side; the >> > flip waits should wait for *both* vblank eve

Re: [Intel-gfx] [RFC] DRI2 swapbuffers (yes yet again)

2009-05-01 Thread Jesse Barnes
On Wed, 29 Apr 2009 18:02:59 -0700 Jesse Barnes wrote: > On Wed, 29 Apr 2009 15:09:33 -0700 > Jesse Barnes wrote: > > I'm still working through mutlihead issues on the kernel side; the > > flip waits should wait for *both* vblank events before completing > > the flip. But other than that, I'm p

Re: [Intel-gfx] [RFC] DRI2 swapbuffers (yes yet again)

2009-05-01 Thread Jesse Barnes
On Fri, 1 May 2009 14:13:16 +0300 Ville Syrjälä wrote: > On Thu, Apr 30, 2009 at 02:39:57PM -0700, Jesse Barnes wrote: > > On Fri, 1 May 2009 00:25:54 +0300 > > Ville Syrjälä wrote: > > > > The completion won't happen until at least 'interval' frames > > > > have passed since the flip was queued

Re: [Intel-gfx] [RFC] DRI2 swapbuffers (yes yet again)

2009-05-01 Thread Jesse Barnes
On Fri, 1 May 2009 04:06:09 +0200 Stefan Dösinger wrote: > Am Donnerstag, 30. April 2009 23:25:54 schrieb Ville Syrjälä: > > > > Your interval handling seems to be too harsh. In case you wanted > > > > something that can implement GLX_SGI_swap_control then AFAICS > > > > the interval should only

Re: [Intel-gfx] [RFC] DRI2 swapbuffers (yes yet again)

2009-05-01 Thread Stefan Dösinger
Am Donnerstag, 30. April 2009 23:25:54 schrieb Ville Syrjälä: > > > Your interval handling seems to be too harsh. In case you wanted > > > something that can implement GLX_SGI_swap_control then AFAICS the > > > interval should only specify the minimum number of frames that must > > > pass between t

Re: [Intel-gfx] [RFC] DRI2 swapbuffers (yes yet again)

2009-05-01 Thread Ville Syrjälä
On Thu, Apr 30, 2009 at 02:39:57PM -0700, Jesse Barnes wrote: > On Fri, 1 May 2009 00:25:54 +0300 > Ville Syrjälä wrote: > > > The completion won't happen until at least 'interval' frames have > > > passed since the flip was queued, so I think the semantics match? > > > > Well I guess it satisfie

Re: [Intel-gfx] [RFC] DRI2 swapbuffers (yes yet again)

2009-04-30 Thread Jesse Barnes
On Fri, 1 May 2009 00:25:54 +0300 Ville Syrjälä wrote: > > The completion won't happen until at least 'interval' frames have > > passed since the flip was queued, so I think the semantics match? > > Well I guess it satisfies the requirement that flips will never happen > less than interval frames

Re: [Intel-gfx] [RFC] DRI2 swapbuffers (yes yet again)

2009-04-30 Thread Ville Syrjälä
On Thu, Apr 30, 2009 at 08:49:12AM -0700, Jesse Barnes wrote: > On Thu, 30 Apr 2009 11:36:55 +0300 > Ville Syrjälä wrote: > > > On Wed, Apr 29, 2009 at 06:02:59PM -0700, Jesse Barnes wrote: > > > On Wed, 29 Apr 2009 15:09:33 -0700 > > > Jesse Barnes wrote: > > > > I'm still working through mutli

Re: [Intel-gfx] [RFC] DRI2 swapbuffers (yes yet again)

2009-04-30 Thread Jesse Barnes
On Thu, 30 Apr 2009 17:48:08 +0200 Michel Dänzer wrote: > On Thu, 2009-04-30 at 08:39 -0700, Jesse Barnes wrote: > > On Thu, 30 Apr 2009 08:08:36 +0200 > > Michel Dänzer wrote: > > > > > On Wed, 2009-04-29 at 18:02 -0700, Jesse Barnes wrote: > > > > On Wed, 29 Apr 2009 15:09:33 -0700 > > > > Je

Re: [Intel-gfx] [RFC] DRI2 swapbuffers (yes yet again)

2009-04-30 Thread Jesse Barnes
On Thu, 30 Apr 2009 11:36:55 +0300 Ville Syrjälä wrote: > On Wed, Apr 29, 2009 at 06:02:59PM -0700, Jesse Barnes wrote: > > On Wed, 29 Apr 2009 15:09:33 -0700 > > Jesse Barnes wrote: > > > I'm still working through mutlihead issues on the kernel side; the > > > flip waits should wait for *both*

Re: [Intel-gfx] [RFC] DRI2 swapbuffers (yes yet again)

2009-04-30 Thread Michel Dänzer
On Thu, 2009-04-30 at 08:39 -0700, Jesse Barnes wrote: > On Thu, 30 Apr 2009 08:08:36 +0200 > Michel Dänzer wrote: > > > On Wed, 2009-04-29 at 18:02 -0700, Jesse Barnes wrote: > > > On Wed, 29 Apr 2009 15:09:33 -0700 > > > Jesse Barnes wrote: > > > > I'm still working through mutlihead issues on

Re: [Intel-gfx] [RFC] DRI2 swapbuffers (yes yet again)

2009-04-30 Thread Jesse Barnes
On Thu, 30 Apr 2009 08:08:36 +0200 Michel Dänzer wrote: > On Wed, 2009-04-29 at 18:02 -0700, Jesse Barnes wrote: > > On Wed, 29 Apr 2009 15:09:33 -0700 > > Jesse Barnes wrote: > > > I'm still working through mutlihead issues on the kernel side; the > > > flip waits should wait for *both* vblank

Re: [Intel-gfx] [RFC] DRI2 swapbuffers (yes yet again)

2009-04-30 Thread Ville Syrjälä
On Wed, Apr 29, 2009 at 06:02:59PM -0700, Jesse Barnes wrote: > On Wed, 29 Apr 2009 15:09:33 -0700 > Jesse Barnes wrote: > > I'm still working through mutlihead issues on the kernel side; the > > flip waits should wait for *both* vblank events before completing the > > flip. But other than that,

Re: [Intel-gfx] [RFC] DRI2 swapbuffers (yes yet again)

2009-04-29 Thread Michel Dänzer
On Wed, 2009-04-29 at 18:02 -0700, Jesse Barnes wrote: > On Wed, 29 Apr 2009 15:09:33 -0700 > Jesse Barnes wrote: > > I'm still working through mutlihead issues on the kernel side; the > > flip waits should wait for *both* vblank events before completing the > > flip. But other than that, I'm pre

Re: [Intel-gfx] [RFC] DRI2 swapbuffers (yes yet again)

2009-04-29 Thread Jesse Barnes
On Wed, 29 Apr 2009 15:09:33 -0700 Jesse Barnes wrote: > I'm still working through mutlihead issues on the kernel side; the > flip waits should wait for *both* vblank events before completing the > flip. But other than that, I'm pretty happy with things. This incremental set fixes up the multihe