Feedback on GL_EXT_texture_from_pixmap

Kristian Høgsberg krh at bitplanet.net
Wed Feb 8 14:05:53 PST 2006


Deron Johnson wrote:
...
> Another question that I have is whether this extension will be
> supported by other versions of Xorg besides Xgl? Or is Xgl eventually
> going to be mainstreamed into Xorg? If so, in what time frame?

We have an implementation in the accel_indirect_branch of the X.org 
server.  The bulk of the work in this branch deals with teaching the GLX 
module to load a DRI driver an thus accelerate indirect rendering, but 
with that in place a naive implementation is pretty simple, see 
__glXBindTexImageEXT in:

http://cvs.freedesktop.org/xorg/xserver/xorg/GL/glx/glxcmds.c?rev=1.9.2.5&only_with_tag=accel_indirect_glx&view=markup

We have a better implementation in the works that use Damage to track 
changes to the bound pixmap so we can use glTexSubImage2D to update the 
texture.  The current implementation also don't keep the texture updated 
automatically, since it wasn't clear for the spec that that was 
required.  However once the damage tracking is in place this shouldn't 
be hard to do.

I hope that we can get this merged for 7.1, I have to move the code 
around a bit so that I don't stomp on GLcore and Xgl, but I think that's 
just a couple of days work.

cheers,
Kristian



More information about the xorg mailing list