mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-04 12:10:17 +01:00
Allow fbCompositeSrc_x888x8x8888mmx when destination has alpha
Previously the check for this optimized function would only allow the function to be called if the source and destination had identical formats. But the function doesn't read the destination alpha (if any) so can be used when it exists as well. (Thanks to Jeff Muizelaar for pointing out this problem.)
This commit is contained in:
parent
72b812be8c
commit
fea5336e2d
1 changed files with 7 additions and 1 deletions
|
|
@ -1642,8 +1642,14 @@ pixman_composite (pixman_operator_t op,
|
|||
break;
|
||||
#ifdef USE_MMX
|
||||
case PICT_x8r8g8b8:
|
||||
if ((pDst->format_code == PICT_a8r8g8b8 ||
|
||||
pDst->format_code == PICT_x8r8g8b8) &&
|
||||
pMask->format_code == PICT_a8 && fbHaveMMX())
|
||||
func = fbCompositeSrc_x888x8x8888mmx;
|
||||
break;
|
||||
case PICT_x8b8g8r8:
|
||||
if (pDst->format_code == pSrc->format_code &&
|
||||
if ((pDst->format_code == PICT_a8b8g8r8 ||
|
||||
pDst->format_code == PICT_x8b8g8r8) &&
|
||||
pMask->format_code == PICT_a8 && fbHaveMMX())
|
||||
func = fbCompositeSrc_x888x8x8888mmx;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue