diff options
author | Søren Sandmann Pedersen <sandmann@redhat.com> | 2009-02-06 17:30:24 -0500 |
---|---|---|
committer | Søren Sandmann Pedersen <sandmann@redhat.com> | 2009-02-06 17:30:24 -0500 |
commit | 6e6c7ac5e0bce2e1893675eb45a8d98876085794 (patch) | |
tree | d611a6df9bcd4819cf320bf8ecef2ad5d7b0da96 | |
parent | e651118b67111d36193f55a752d13e66df5ca953 (diff) |
Comment out SrcScaledNearest optimization that hasn't been tested much
-rw-r--r-- | pixman/pixman-pict.c | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/pixman/pixman-pict.c b/pixman/pixman-pict.c index 42a0454..6c43208 100644 --- a/pixman/pixman-pict.c +++ b/pixman/pixman-pict.c @@ -1208,18 +1208,18 @@ fbCompositeSrc_8888xx888 (pixman_op_t op, } static void -fbCompositeSrcScaleNearest (pixman_op_t op, - pixman_image_t * pSrc, - pixman_image_t * pMask, - pixman_image_t * pDst, - int16_t xSrc, - int16_t ySrc, - int16_t xMask, - int16_t yMask, - int16_t xDst, - int16_t yDst, - uint16_t width, - uint16_t height) +fbCompositeSrcScaleNearest (pixman_op_t op, + pixman_image_t *pSrc, + pixman_image_t *pMask, + pixman_image_t *pDst, + int16_t xSrc, + int16_t ySrc, + int16_t xMask, + int16_t yMask, + int16_t xDst, + int16_t yDst, + uint16_t width, + uint16_t height) { uint32_t *dst; uint32_t *src; @@ -1941,6 +1941,7 @@ pixman_image_composite (pixman_op_t op, if(op == PIXMAN_OP_DST) return; +#if 0 if (pSrc->type == BITS && srcTransform && !pMask @@ -1961,7 +1962,9 @@ pixman_image_composite (pixman_op_t op, pSrc->common.transform->matrix[2][2] == pixman_fixed_1) { func = fbCompositeSrcScaleNearest; } - } else if ((pSrc->type == BITS || pixman_image_can_get_solid (pSrc)) && (!pMask || pMask->type == BITS) + } else +#endif + if ((pSrc->type == BITS || pixman_image_can_get_solid (pSrc)) && (!pMask || pMask->type == BITS) && !srcTransform && !maskTransform && !maskAlphaMap && !srcAlphaMap && !dstAlphaMap && (pSrc->common.filter != PIXMAN_FILTER_CONVOLUTION) |