mirror of
https://github.com/X11Libre/xf86-video-i128.git
synced 2026-03-24 01:24:54 +00:00
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:
committed by
Eric Anholt
parent
8936b17d83
commit
8bd4dc99bb
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user