[compiz] [PATCH] Add GLX 1.3 + conformant
GLX_EXT_texture_from_pixmap support
David Reveman
davidr at novell.com
Tue Apr 11 01:02:57 PDT 2006
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.
>
> 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
More information about the compiz
mailing list