Here is version 3 of the patches to implement GL_ARB_clear_texture. The main changes are:
• The extension is now only enabled for the i965 driver. I've removed the patch to add a place to enable extensions for all DRI drivers. • It now checks for potential errors that would occur when clearing the layers of a texture upfront instead of checking for each layer while clearing. Without this it would clear some of the layers if only one of them was unsuitable. • The meta implementation no longer requires GL_EXT_framebuffer_object because it doesn't need anything on top of what GL_ARB_framebuffer_object provides. • The meta implementation is no longer disabled for textures with a border. It won't actually work with these textures but the i965 driver strips off the borders from textures anyway so this shouldn't matter. • I've added some comments about how the depth-stencil clear value is used in the meta implementation. • Some coding-style fixes. This time I'm including Ilia's original patch to add the entrypoints which the patches are based on. In a previous discussion about the meta implementation patch I suggested that maybe I should remove all references to texImage->Border in the rest of the patches. However I think this isn't a good idea because the only other references to the border width are in the generic functions and this might be useful to someone who wants to implement the extension in a driver which doesn't strip the border. - Neil _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev