[PATCH] Track damage for fbTrapezoids() and fbTriangles().

Michel Dänzer michel at daenzer.net
Mon Mar 28 09:24:57 PDT 2011


On Mon, 2011-03-28 at 11:47 -0400, Søren Sandmann wrote: 
> From: Søren Sandmann Pedersen <ssp at redhat.com>
> 
> These calls no longer go through the miComposite(),

I can't seem to find any reference to miComposite() in the Git history.
Do you mean miTriangles()?

> so damage was no longer generated for them. This patch simply damages
> the entire destination clip region.

[...]

> @@ -117,6 +118,8 @@ fbShapes (CompositeShapesFunc	composite,
>      {
>  	pixman_format_code_t format;
>  
> +	DamageRegionAppend (pDst->pDrawable, pDst->pCompositeClip);
> +
>  	if (!maskFormat)
>  	{
>  	    int i;

Don't you also need to call DamageRegionProcessPending() after the
operation?


-- 
Earthling Michel Dänzer           |                http://www.vmware.com
Libre software enthusiast         |          Debian, X and DRI developer


More information about the xorg-devel mailing list