Re: [PATCH] xserver: support DRI2 swapbuffers

2009-02-27 Thread Jesse Barnes
On Thursday, February 26, 2009 4:35:34 pm Jesse Barnes wrote: Found a bug in the AIGLX code; can't free the new buffers since we need them. And another bug in the indirect case: if swapbuffers fails we should fall back to a copyregion. This should fix the old compiz case. -- Jesse Barnes,

[PATCH] xserver: support DRI2 swapbuffers

2009-02-26 Thread Jesse Barnes
Add support for the new DRI2 swapbuffers request by supporting the protocol and adding a new driver hook to perform the swap. If it fails we'll fall back to blitting. Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org diff --git a/glx/glxdri2.c b/glx/glxdri2.c index 4e76c71..b76a786 100644

Re: [PATCH] xserver: support DRI2 swapbuffers

2009-02-26 Thread Jesse Barnes
Found a bug in the AIGLX code; can't free the new buffers since we need them. -- Jesse Barnes, Intel Open Source Technology Center diff --git a/glx/glxdri2.c b/glx/glxdri2.c index 4e76c71..28bd3c4 100644 --- a/glx/glxdri2.c +++ b/glx/glxdri2.c @@ -131,10 +131,23 @@

[PATCH] xserver: support DRI2 swapbuffers

2009-02-25 Thread Jesse Barnes
Just realized I still need to check whether the driver supports swapbuffers, if not we should fall back to copyarea. Other than that it's pretty simple. diff --git a/glx/glxdri2.c b/glx/glxdri2.c index 4e76c71..42a596e 100644 --- a/glx/glxdri2.c +++ b/glx/glxdri2.c @@ -131,10 +131,27 @@