xf86-video-intel: src/sna/sna_damage.c

Chris Wilson ickle at kemper.freedesktop.org
Thu Jun 14 12:24:36 PDT 2012


 src/sna/sna_damage.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 49543522e789a0a8213c164b37a18c0642e60ac4
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Thu Jun 14 20:25:21 2012 +0100

    sna: Fix reversed assertion
    
    Darn the double negative! After adding damage we want to assert that
    the region is not empty, not !not empty.
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/sna_damage.c b/src/sna/sna_damage.c
index bdd6a5e..1957177 100644
--- a/src/sna/sna_damage.c
+++ b/src/sna/sna_damage.c
@@ -503,7 +503,7 @@ static void __sna_damage_reduce(struct sna_damage *damage)
 		pixman_region_fini(region);
 		pixman_region_init_rects(region, boxes, nboxes);
 
-		assert(!pixman_region_not_empty(region));
+		assert(pixman_region_not_empty(region));
 		assert(damage->extents.x1 == region->extents.x1 &&
 		       damage->extents.y1 == region->extents.y1 &&
 		       damage->extents.x2 == region->extents.x2 &&


More information about the xorg-commit mailing list