Advertisement
Guest User

uxa-damage.patch

a guest
Feb 3rd, 2011
415
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. From da990536eca09c6de74627541cd56ecfad925eda Mon Sep 17 00:00:00 2001
  2. From: Chris Wilson <chris@chris-wilson.co.uk>
  3. Date: Thu, 3 Feb 2011 09:41:48 +0000
  4. Subject: [PATCH] uxa: Undo damage translation before appending
  5.  
  6. The region is used to paint onto the backing pixmap (and thus
  7. translated) prior to being passed to the damage layer (wrt to the
  8. drawable). So the local translation needs to be undone first.
  9.  
  10. Identified by Christopher James Halse Rogers.
  11.  
  12. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=33650
  13. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
  14. ---
  15. uxa/uxa-render.c | 1 +
  16. 1 files changed, 1 insertions(+), 0 deletions(-)
  17.  
  18. diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c
  19. index cf8b8ea..02bfa03 100644
  20. --- a/uxa/uxa-render.c
  21. +++ b/uxa/uxa-render.c
  22. @@ -1090,6 +1090,7 @@ try_solid:
  23. /* XXX xserver-1.8: CompositeRects is not tracked by Damage, so we must
  24. * manually append the damaged regions ourselves.
  25. */
  26. + pixman_region_translate(&region, -dst_x, -dst_y);
  27. DamageRegionAppend(dst->pDrawable, &region);
  28.  
  29. pixman_region_fini(&region);
  30. --
  31. 1.7.4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement