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

Chris Wilson ickle at kemper.freedesktop.org
Fri Jul 19 07:27:00 PDT 2013


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

New commits:
commit e386ba86ea487a2db62d80a0e60f176e052d6406
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Fri Jul 19 15:22:08 2013 +0100

    sna: Perform an explicit check against the region extents
    
    RegionNotEmpty() is only valid if we only use the Region API, and as we
    mix direct operations on the region extents, we need to also do our own
    final check.
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 5f6d7df..5859523 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -5582,7 +5582,7 @@ sna_do_copy(DrawablePtr src, DrawablePtr dst, GCPtr gc,
 	     region.extents.x2, region.extents.y2,
 	     (long)RegionNumRects(&region)));
 
-	if (RegionNotEmpty(&region))
+	if (!box_empty(&region.extents))
 		copy(src, dst, gc, &region, sx-dx, sy-dy, bitPlane, closure);
 	RegionUninit(&region);
 


More information about the xorg-commit mailing list