CheckComposite: Add a few checks

It looks like the driver doesn't support any form of repeating and only
nearest-neighbor interpolation.
This commit is contained in:
Thomas Jaeger
2009-01-30 16:25:07 -05:00
committed by Eric Anholt
parent 8936b17d83
commit 8bd4dc99bb

View File

@@ -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;