uxa: Undo damage translation before appending

The region is used to paint onto the backing pixmap (and thus
translated) prior to being passed to the damage layer (wrt to the
drawable). So the local translation needs to be undone first.

Identified by Christopher James Halse Rogers.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=33650
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-02-03 09:41:48 +00:00
parent ce1e096905
commit da990536ec
1 changed files with 1 additions and 0 deletions

View File

@ -1090,6 +1090,7 @@ try_solid:
/* XXX xserver-1.8: CompositeRects is not tracked by Damage, so we must
* manually append the damaged regions ourselves.
*/
pixman_region_translate(&region, -dst_x, -dst_y);
DamageRegionAppend(dst->pDrawable, &region);
pixman_region_fini(&region);