mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-22 01:20:26 +00:00
Add a helper for the Component Alpha Over case, which breaks the operation
down into an OutReverse and an Add. Turn off the fallback to software
glyphs when component alpha, now that we expect all (new) drivers to be
able to support it. Also, make Xephyr fall back in the CA Over case to
exercise this code. This speeds up my rgb24text and ls -lR in
gnome-terminal by a factor of 5.
This commit is contained in:
parent
26fa45b642
commit
3d4ca57b69
3 changed files with 80 additions and 13 deletions
|
|
@ -226,6 +226,12 @@ static Bool
|
|||
ephyrCheckComposite(int op, PicturePtr pSrcPicture, PicturePtr pMaskPicture,
|
||||
PicturePtr pDstPicture)
|
||||
{
|
||||
/* Exercise the component alpha helper, so fail on this case like a normal
|
||||
* driver
|
||||
*/
|
||||
if (pMaskPicture && pMaskPicture->componentAlpha && op == PictOpOver)
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue