[compiz] [PATCH] Add GLX 1.3 + conformant GLX_EXT_texture_from_pixmap support

James Jones jajones at nvidia.com
Tue Apr 11 10:58:09 PDT 2006


On Tuesday 11 April 2006 01:02 am, David Reveman wrote:
> On Mon, 2006-04-10 at 19:27 -0700, James Jones wrote:
> > On Sunday 09 April 2006 04:32 am, David Reveman wrote:
> > > On Fri, 2006-04-07 at 15:37 -0700, James Jones wrote:
> > > > As promised awhile ago...
> > > >
> > > > This patch makes compiz conformant with the latest
> > > > published version of the GLX_EXT_texture_from_pixmap
> > > > specification.  It has been tested to be fully backwards
> > > > compatible as well, so it will still work with current
> > > > versions of Xgl.  If GLX 1.3 support isn't available, it
> > > > just falls back to the existing use of XVisualInfo.
> > > > However, my version of Xgl is a bit dated. Someone might
> > > > want to test with the latest bits before commiting.
> > >
> > > I've updated mesa and xgl so that we don't need to be
> > > backwards compatible. I changed the choose fbconfig code a
> > > little but it should still work OK for you, let me know if it
> > > doesn't.
> >
> > I ran into a small typo in the modified FBConfig code:
> >
> > s/GLX_BIND_TO_TEXTURE_RGB[A]_EXT/GLX_TEXTURE_FORMAT_RGB[A]_EXT
> >
> > Patch attached.
>
> Thanks, this reminds me that glXCreatePixmap in Xgl should
> generate BadConfig error if the attributes are wrong.

Uhg, yeah, I forgot all about this issue.  I wanted to change the 
return type to void and return the conventional 
BadDrawable/BadMatch/etc errors when appropriate, since a Bool 
return value error handling method doesn't really make sense for a 
function performing an async operation IMHO.  I'll put this on my 
list of things to update.  Let me know if you disagree.

> > Other than that, I everything looks fine.  The check for
> > SGIX_fbconfig should really be a check for version 1.3 to be
> > correct, but that might anger anyone who's GLX provider doesn't
> > report 1.3 yet.
>
> Yes, I'll keep it like this until we have GLX 1.3 in the server.
>
> -David

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------


More information about the compiz mailing list