From 669acb55023bce505f4a912bed6f1e9f3efa2856 Mon Sep 17 00:00:00 2001 From: Thomas Jaeger Date: Fri, 30 Jan 2009 16:18:34 -0500 Subject: Fall back to software for unsupported repeat modes [anholt: dropped unneded ->repeat check -- it's a misguided compat field for drivers from before repeatType existed] --- src/mga_exa.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mga_exa.c') diff --git a/src/mga_exa.c b/src/mga_exa.c index 9321452..f292327 100644 --- a/src/mga_exa.c +++ b/src/mga_exa.c @@ -332,6 +332,11 @@ mgaCheckSourceTexture(int tmu, PicturePtr pPict) return FALSE; } + if (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; -- cgit v1.2.3