[PATCH] CheckComposite: Add a few checks

Thomas Jaeger ThJaeger at gmail.com
Fri Jan 30 13:25:07 PST 2009


It looks like the driver doesn't support any form of repeating and only
nearest-neighbor interpolation.
---
 src/i128exa.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/i128exa.c b/src/i128exa.c
index 84452a8..5bf0c5d 100644
--- a/src/i128exa.c
+++ b/src/i128exa.c
@@ -476,11 +476,15 @@ i128CheckComposite(int op, PicturePtr pSrcPicture, PicturePtr pMaskPicture,
     if (pMaskPicture) return FALSE;
 
     /* when transforms added, be sure to check for linear/nearest */
-    /* if (pSrcPicture->transform) return FALSE; */
+    if (pSrcPicture->transform && pSrcPicture->filter != PictFilterNearest)
+        return FALSE;
 
     /* no support for external alpha */
     if (pSrcPicture->alphaMap || pDstPicture->alphaMap) return FALSE;
 
+    /* driver currently doesn't support repeating */
+    if (pSrcPicture->repeat) return FALSE;
+
     pI128->source = i128MapSourceFormat(pSrcPicture->format);
     if (!pI128->source)
         return FALSE;
-- 
1.6.0.6


--------------060507010206060007020105
Content-Type: text/x-patch;
 name="mga.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="mga.patch"



More information about the xorg-devel mailing list