XGL/Compiz: Hack against compiz to suppress pixmap corruption and improve performance

David Reveman davidr at novell.com
Mon Mar 6 08:00:41 PST 2006


I think the real problem was a missing call to glFinish in Xgl. It's now
fixed in CVS. Let me know if it's still not working properly.

-David


On Fri, 2006-03-03 at 16:41 +0100, Erik Andrén wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi all.
> I've hacked up a small patch consisting of a pair of glFlush() calls in
> paint.c of Compiz.
> 
> This resolves my problem of corrupt textures and increases performance
> quite a bit using a radeon 7500 mobility (r100).
> See the attached screenshot for how my display looked before.
> 
> I know that this isn't the long term solution but I figured that someone
> might want a quick-and-dirty (tm) fix.
> 
> Take care
> Erik Andrén
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2.1 (GNU/Linux)
> 
> iD8DBQFECGNdN7qBt+4UG0ERApIIAJ9zvWDTNmDrYMf1sRUePvHSeWZjBgCfSxmf
> uS/37ufTR17IrRag0V06C6E=
> =k5wB
> -----END PGP SIGNATURE-----
> plain text document attachment (glFlush.patch)
> diff -ur compiz/src/paint.c compiz.new/src/paint.c
> --- compiz/src/paint.c	2006-03-01 17:35:49.000000000 +0100
> +++ compiz.new/src/paint.c	2006-03-03 16:08:09.000000000 +0100
> @@ -105,7 +105,7 @@
>  	    glDisable (GL_STENCIL_TEST);
>  
>  	    glPopMatrix ();
> -
> +	    glFlush();
>  	    return;
>  	}
>      } 
> @@ -158,6 +158,9 @@
>  	return TRUE;
>      }
>      else
> +
> +	glFlush();
> +
>  	return FALSE;
>  
>      screenLighting (screen, FALSE);
> _______________________________________________
> xorg mailing list
> xorg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xorg





More information about the xorg mailing list