xserver: Branch 'master'

Dave Airlie airlied at kemper.freedesktop.org
Sun Nov 16 22:37:33 PST 2008


 exa/exa_accel.c |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 8f8a9c19ad58768b07461a3f4bccea98f7c4f958
Author: Dave Airlie <airlied at redhat.com>
Date:   Mon Nov 17 10:24:39 2008 +1000

    EXA: avoid copy operations if no boxes in use
    
    Simple fix for now, I'm sure damage shouldn't be calling us with nbox = 0.

diff --git a/exa/exa_accel.c b/exa/exa_accel.c
index 522224b..ccef744 100644
--- a/exa/exa_accel.c
+++ b/exa/exa_accel.c
@@ -401,6 +401,10 @@ exaCopyNtoN (DrawablePtr    pSrcDrawable,
     RegionPtr srcregion = NULL, dstregion = NULL;
     xRectangle *rects;
 
+    /* avoid doing copy operations if no boxes */
+    if (nbox == 0)
+	return;
+
     pSrcPixmap = exaGetDrawablePixmap (pSrcDrawable);
     pDstPixmap = exaGetDrawablePixmap (pDstDrawable);
 


More information about the xorg-commit mailing list