Re: [PATCH] DRI2/GLX: fix swap event handling

2011-05-02 Thread Michel Dänzer
On Fre, 2011-04-29 at 08:21 -0700, Jesse Barnes wrote: > On Fri, 29 Apr 2011 09:23:27 +0200 > Michel Dänzer wrote: > > > On Fre, 2011-04-29 at 08:52 +0200, Michel Dänzer wrote: > > > On Don, 2011-04-28 at 13:27 -0700, Jesse Barnes wrote: > > > > @@ -1114,7 +1169,7 @@ DRI2ScreenInit(ScreenPtr p

Re: [PATCH] DRI2/GLX: fix swap event handling

2011-04-29 Thread Jesse Barnes
On Fri, 29 Apr 2011 09:20:31 +0200 Julien Cristau wrote: > On Thu, Apr 28, 2011 at 13:27:22 -0700, Jesse Barnes wrote: > > > diff --git a/glx/glxdri2.c b/glx/glxdri2.c > > index d979717..654b4ae 100644 > > --- a/glx/glxdri2.c > > +++ b/glx/glxdri2.c > > @@ -192,8 +192,17 @@ __glXdriSwapEvent(Cli

Re: [PATCH] DRI2/GLX: fix swap event handling

2011-04-29 Thread Jesse Barnes
On Fri, 29 Apr 2011 09:23:27 +0200 Michel Dänzer wrote: > On Fre, 2011-04-29 at 08:52 +0200, Michel Dänzer wrote: > > On Don, 2011-04-28 at 13:27 -0700, Jesse Barnes wrote: > > > @@ -1114,7 +1169,7 @@ DRI2ScreenInit(ScreenPtr pScreen, DRI2InfoPtr info) > > > ds->ScheduleSwap = info->ScheduleS

Re: [PATCH] DRI2/GLX: fix swap event handling

2011-04-29 Thread Michel Dänzer
On Fre, 2011-04-29 at 08:52 +0200, Michel Dänzer wrote: > On Don, 2011-04-28 at 13:27 -0700, Jesse Barnes wrote: > > @@ -1114,7 +1169,7 @@ DRI2ScreenInit(ScreenPtr pScreen, DRI2InfoPtr info) > > ds->ScheduleSwap = info->ScheduleSwap; > > ds->ScheduleWaitMSC = info->ScheduleWaitMSC; > >

Re: [PATCH] DRI2/GLX: fix swap event handling

2011-04-29 Thread Julien Cristau
On Thu, Apr 28, 2011 at 13:27:22 -0700, Jesse Barnes wrote: > diff --git a/glx/glxdri2.c b/glx/glxdri2.c > index d979717..654b4ae 100644 > --- a/glx/glxdri2.c > +++ b/glx/glxdri2.c > @@ -192,8 +192,17 @@ __glXdriSwapEvent(ClientPtr client, void *data, int > type, CARD64 ust, > wire.ust_lo =

Re: [PATCH] DRI2/GLX: fix swap event handling

2011-04-28 Thread Michel Dänzer
On Don, 2011-04-28 at 13:27 -0700, Jesse Barnes wrote: > @@ -1114,7 +1169,7 @@ DRI2ScreenInit(ScreenPtr pScreen, DRI2InfoPtr info) > ds->ScheduleSwap = info->ScheduleSwap; > ds->ScheduleWaitMSC = info->ScheduleWaitMSC; > ds->GetMSC = info->GetMSC; > - cur_minor = 3; > + c

Re: [PATCH] DRI2/GLX: fix swap event handling

2011-04-28 Thread Eric Anholt
On Thu, 28 Apr 2011 13:27:22 -0700, Jesse Barnes wrote: > Use the new swap event structure packing and send it to the client if > possible. This means tracking client version information when clients > connect. If they don't support the new packing, they'll get the old > bits and fill junk into

[PATCH] DRI2/GLX: fix swap event handling

2011-04-28 Thread Jesse Barnes
Use the new swap event structure packing and send it to the client if possible. This means tracking client version information when clients connect. If they don't support the new packing, they'll get the old bits and fill junk into their sbc values when they receive the event. If they do support