[PATCH] Fall back to software for unsupported repeat modes

Thomas Jaeger ThJaeger at gmail.com
Fri Jan 30 13:18:34 PST 2009


---
 src/mga_exa.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/mga_exa.c b/src/mga_exa.c
index 9321452..524e1b3 100644
--- a/src/mga_exa.c
+++ b/src/mga_exa.c
@@ -332,6 +332,11 @@ mgaCheckSourceTexture(int tmu, PicturePtr pPict)
         return FALSE;
     }
 
+    if (pPict->repeat && pPict->repeatType != RepeatNormal) {
+        DEBUG_MSG(("Unsupported repeat type %d\n", pPict->repeatType));
+        return FALSE;
+    }
+
     if (pPict->repeat && ((w & (w - 1)) != 0 || (h & (h - 1)) != 0)) {
         DEBUG_MSG(("NPOT repeat unsupported (%dx%d)\n", w, h));
         return FALSE;
-- 
1.6.0.6


--------------060507010206060007020105--


More information about the xorg-devel mailing list