[compiz] White Boarders in AIGLX on non-decorated window types

Vasek Potocek vasek.potocek at post.cz
Wed Apr 18 09:49:15 PDT 2007


I haven't seen this problem nor searched the internet for more info on this topic, so I'm sorry if I'm answering too 
impetuously. But talking about restricting texture sizes, this looks to me similar to a problem of some NVIDIA cards 
(say: of my one) I have examined some time ago: when the fbConfig doesn't have its GLX_TEXTURE_2D_BIT_EXT set in 
GLX_BIND_TO_TEXTURE_TARGETS_EXT, the power-of-two textures cause a BadMatch error in glXCreatePixmap instead of being 
treated as rectangle ones as the GLX_EXT_tfp specification states. Couldn't this be related?

Mr. James Jones of NVIDIA said this will be fixed in the driver, so I didn't want to post any temporary workarounds 
here. However, if anybody is interested, it's quite simple:
--- a/src/texture.c
+++ b/src/texture.c
@@ -236,6 +236,7 @@ bindPixmapToTexture (CompScreen  *screen,
      int          attribs[] = {
         GLX_TEXTURE_FORMAT_EXT, config->textureFormat,
         GLX_MIPMAP_TEXTURE_EXT, config->mipmap,
+       GLX_TEXTURE_TARGET_EXT, GLX_TEXTURE_RECTANGLE_EXT,
         None
      };

- Vasek

David Reveman napsal:
> On Wed, 2007-04-18 at 15:45 +0800, Sam Spilsbury wrote:
>> How is it a workaround? It fixes the problem...
> 
> It's pretty obvious if you look at the code. It avoids creating pixmaps
> with certain widths even though that should work perfectly fine.
> 
>> On 4/18/07, David Reveman <davidr at novell.com> wrote:
>>         On Fri, 2007-04-13 at 21:40 +0800, Sam Spilsbury wrote: 
>>         > A patch was submitted to the ML a while ago that cured the
>>         problem
>>         > with white boarders in Gtk-Window-Decorator. Can this patch
>>         be
>>         > commited or be a at least fixed up to work with AIGLX?
>>         
>>         What patch is that? In case you're talking about this patch: 
>>         http://gandalfn.club.fr/ubuntu/compiz-patch/90-fix-no-border-window-shadow.patch
>>         
>>         That patch has not been committed because it's not a fix. It's
>>         a 
>>         workaround for an issue that no one have been able to track
>>         down yet
>>         afaik.
>>         
>>         - David
>>         
>>
> 
> - David
> 
> _______________________________________________
> compiz mailing list
> compiz at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/compiz
> 


More information about the compiz mailing list