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

James Jones jajones at nvidia.com
Mon Apr 10 19:27:54 PDT 2006


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.

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.

Thanks,
-James Jones

> Thanks,
>
> -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.
-----------------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: screen.c.diff
Type: text/x-diff
Size: 548 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/compiz/attachments/20060410/e19dea7a/screen.c.bin


More information about the compiz mailing list