SOURCES: Mesa-dri.patch (NEW) - fixes http://bugs.freedesktop.org/...

arekm arekm at pld-linux.org
Thu Feb 28 10:35:15 CET 2008


Author: arekm                        Date: Thu Feb 28 09:35:15 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fixes http://bugs.freedesktop.org/show_bug.cgi?id=13957 for me

---- Files affected:
SOURCES:
   Mesa-dri.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/Mesa-dri.patch
diff -u /dev/null SOURCES/Mesa-dri.patch:1.1
--- /dev/null	Thu Feb 28 10:35:15 2008
+++ SOURCES/Mesa-dri.patch	Thu Feb 28 10:35:10 2008
@@ -0,0 +1,21 @@
+commit 2407e48f2805e27e76e2e1d7083926c4077d9032
+Author: Xiang, Haihao <haihao.xiang at intel.com>
+Date:   Wed Dec 5 10:31:35 2007 +0800
+
+    Don't Swap buffer if a DRIDrawable is entirely obscured
+    by another window.
+
+diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c
+index 2e2e64c..2b378a5 100644
+--- a/src/mesa/drivers/dri/common/dri_util.c
++++ b/src/mesa/drivers/dri/common/dri_util.c
+@@ -336,6 +336,9 @@ static void driSwapBuffers(__DRIdrawable *drawable)
+     __DRIdrawablePrivate *dPriv = drawable->private;
+     drm_clip_rect_t rect;
+ 
++    if (!dPriv->numClipRects)
++        return;
++
+     dPriv->swapBuffers(dPriv);
+ 
+     /* Check that we actually have the new damage report method */
================================================================


More information about the pld-cvs-commit mailing list