Bug 4320: Fastpath corner case improvement for Composite.

This commit is contained in:
Matthias Hopf 2006-06-21 17:08:51 +02:00
parent d44b2a0a57
commit ea5e0eabd1

View File

@ -516,7 +516,10 @@ XAAComposite (CARD8 op,
(!pSrc->repeat || (xSrc >= 0 && ySrc >= 0 &&
xSrc+width<=pSrc->pDrawable->width &&
ySrc+height<=pSrc->pDrawable->height)) &&
((op == PictOpSrc && pSrc->format == pDst->format) ||
((op == PictOpSrc &&
((pSrc->format==pDst->format) ||
(pSrc->format==PICT_a8r8g8b8 && pDst->format==PICT_x8r8g8b8) ||
(pSrc->format==PICT_a8b8g8r8 && pDst->format==PICT_x8b8g8r8))) ||
(op == PictOpOver && !pSrc->alphaMap && !pDst->alphaMap &&
pSrc->format==pDst->format &&
(pSrc->format==PICT_x8r8g8b8 || pSrc->format==PICT_x8b8g8r8))))