From 8f8a9c19ad58768b07461a3f4bccea98f7c4f958 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 17 Nov 2008 10:24:39 +1000 Subject: [PATCH] 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. --- exa/exa_accel.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/exa/exa_accel.c b/exa/exa_accel.c index 522224be6..ccef74422 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);