diff options
author | Thomas Jaeger <ThJaeger@gmail.com> | 2009-01-30 16:25:07 -0500 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-03-06 12:54:17 -0800 |
commit | 8bd4dc99bbaa8bf8c6649dc25fc75859e16e35ec (patch) | |
tree | e2769b9b452b028a4630baf64e4ed268f677423c | |
parent | 8936b17d83c6fa2b67c447ae3cac5159d8d84649 (diff) |
CheckComposite: Add a few checks
It looks like the driver doesn't support any form of repeating and only
nearest-neighbor interpolation.
-rw-r--r-- | src/i128exa.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/i128exa.c b/src/i128exa.c index 84452a8..f4e831f 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; |