diff options
author | Thomas Jaeger <ThJaeger@gmail.com> | 2009-01-30 16:18:34 -0500 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-03-06 12:58:20 -0800 |
commit | 669acb55023bce505f4a912bed6f1e9f3efa2856 (patch) | |
tree | 336a5e53558d692e1e0c86b27719b6bc5d5c9993 /src/mga_exa.c | |
parent | 496342b09b7379bff95627ec357d4dd24123dc85 (diff) |
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]
Diffstat (limited to 'src/mga_exa.c')
-rw-r--r-- | 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..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; |