uxa: Only use solid_fill for SRC.

This commit is contained in:
Chris Wilson 2010-05-13 15:12:51 +01:00
parent d1bd14e8b6
commit 92e9cf8af7
1 changed files with 10 additions and 6 deletions

View File

@ -1362,12 +1362,16 @@ uxa_composite(CARD8 op,
if (pSrc->pSourcePict) {
SourcePict *source = pSrc->pSourcePict;
if (source->type == SourcePictTypeSolidFill) {
ret = uxa_try_driver_solid_fill(pSrc, pDst,
xSrc, ySrc,
xDst, yDst,
width, height);
if (ret == 1)
goto done;
if (op == PictOpSrc ||
(op == PictOpOver &&
(source->solidFill.color & 0xff000000) == 0xff000000)) {
ret = uxa_try_driver_solid_fill(pSrc, pDst,
xSrc, ySrc,
xDst, yDst,
width, height);
if (ret == 1)
goto done;
}
}
}
} else if (compatible_formats (op, pDst, pSrc)) {