[Xorg-driver-geode] [PATCH 4/7] Put the one pixel drawing work to the server to handle

Huang, FrankR FrankR.Huang at amd.com
Thu Jun 10 00:03:22 PDT 2010


From: Frank Huang <frankr.huang at amd.com>

Signed-off-by: Frank Huang <frankr.huang at amd.com>
---
 src/lx_exa.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/lx_exa.c b/src/lx_exa.c
index 29c8056..9fb92c4 100644
--- a/src/lx_exa.c
+++ b/src/lx_exa.c
@@ -586,6 +586,11 @@ lx_check_composite(int op, PicturePtr pSrc, PicturePtr pMsk, PicturePtr pDst)
     if (pSrc->format == PICT_a8 || pDst->format == PICT_a8)
 	return FALSE;
 
+    /* This is one pixel drawing, return it to server to draw it */
+
+    if (pMsk && (!pSrc->repeat))
+	return FALSE;
+
     if (pMsk && op != PictOpClear) {
 	struct blend_ops_t *opPtr = &lx_alpha_ops[op * 2];
 	int direction = (opPtr->channel == CIMGP_CHANNEL_A_SOURCE) ? 0 : 1;
-- 
1.7.1




More information about the Xorg-driver-geode mailing list